Example #1
0
 def process_row_dict(row: asyncpg.Record) -> Dict[str, Any]:
     d = dict(row)
     del d[list(row.keys())[remove]]
     return d
Example #2
0
 def process_row_single(row: asyncpg.Record) -> Any:
     return row[0 if next(iter(row.keys())) != remove else 1] if len(
         row) > 1 else None