MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / get_connection

Function get_connection

scripts/clear_database.py:59–61  ·  view source on GitHub ↗

Open a SQLite connection.

(db_path: Path = DB_PATH)

Source from the content-addressed store, hash-verified

57
58
59def get_connection(db_path: Path = DB_PATH) -> sqlite3.Connection:
60 """Open a SQLite connection."""
61 return sqlite3.connect(db_path)
62
63
64def get_table_counts(conn: sqlite3.Connection) -> Dict[str, int]:

Callers 3

full_resetFunction · 0.70
benchmark_resetFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected