Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
66
def
get_connection() -> sqlite3.Connection:
67
if
CONNECTION is None:
68
raise
NoConnection()
69
return
CONNECTION
70
71
72
def
gen_columns_sql(fields: FieldMap) -> Iterator[ColumnSchema]:
Callers
6
create_table
Function · 0.85
read_columns_sql
Function · 0.85
insert_record
Function · 0.85
fetch_record
Function · 0.85
update_record
Function · 0.85
delete_record
Function · 0.85
Calls
1
NoConnection
Class · 0.85
Tested by
no test coverage detected