MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / fetch_source_rows

Function fetch_source_rows

scripts/migrate_sqlite_to_postgres.py:131–134  ·  view source on GitHub ↗
(connection: Connection, plan: TablePlan)

Source from the content-addressed store, hash-verified

129
130
131def fetch_source_rows(connection: Connection, plan: TablePlan) -> list[dict]:
132 stmt = select(*(plan.source_table.c[column_name] for column_name in plan.columns))
133 result = connection.execute(stmt)
134 return [dict(row._mapping) for row in result]
135
136
137def copy_table(

Callers 1

copy_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected