def _get_table_loader(schema, condition=None): if condition is not None: condition = [text(condition)] loader = SATableDataStore(schema, mimic_login.get_engine(), condition) return loader
def _get_sql_loader(sql): loader = SAQueryDataStore(PartialSchema('query'), mimic_login.get_engine(), text(sql)) return loader