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

Function get_connection

24-class-metaprog/persistent/dblib.py:66–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def get_connection() -> sqlite3.Connection:
67 if CONNECTION is None:
68 raise NoConnection()
69 return CONNECTION
70
71
72def gen_columns_sql(fields: FieldMap) -> Iterator[ColumnSchema]:

Callers 6

create_tableFunction · 0.85
read_columns_sqlFunction · 0.85
insert_recordFunction · 0.85
fetch_recordFunction · 0.85
update_recordFunction · 0.85
delete_recordFunction · 0.85

Calls 1

NoConnectionClass · 0.85

Tested by

no test coverage detected