def aa_querier(ps=_ps): if ps.sql_system == ps.postgres: return Querier(lambda: connect_to_aa(ps=ps), sch=ps.aa_schema) else: # When we need to work with other database systems, we'll implement this raise NotImplementedError
def set_tr(connect): querier = Querier(connect, debug_log=Logger()) return querier.transaction(cursor_factory=curfact)