<s> dict_of = lambda o : { k : getattr ( o , k ) for k in dir ( o ) if '<STR_LIT>' not in k and not callable ( getattr ( o , k ) ) } <EOL> from django . db import connections <EOL> def fetch ( query , params = [ ] , db = '<STR_LIT:default>' ) : <EOL> cursor = connections [ db ] . cursor ( ) <EOL> cursor . execute ( query , params ) <EOL> return cursor . fetchall ( ) </s>
