示例#1
0
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
示例#2
0
文件: dump2csv.py 项目: SANDAG/SRF
def set_tr(connect):
    querier = Querier(connect, debug_log=Logger())
    return querier.transaction(cursor_factory=curfact)