MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / create_table

Function create_table

24-class-metaprog/persistent/dblib.py:93–95  ·  view source on GitHub ↗
(table_name: str, fields: FieldMap)

Source from the content-addressed store, hash-verified

91
92
93def create_table(table_name: str, fields: FieldMap) -> None:
94 con = get_connection()
95 con.execute(make_schema_sql(table_name, fields))
96
97
98def read_columns_sql(table_name: str) -> list[ColumnSchema]:

Callers 1

ensure_tableFunction · 0.85

Calls 3

get_connectionFunction · 0.85
make_schema_sqlFunction · 0.85
executeMethod · 0.80

Tested by

no test coverage detected