Add connection factories to src/conf/ — duckdb, trino, nessie, polaris, bib, zotero #72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every notebook hand-rolls 5-10 lines of connection boilerplate. The same patterns repeat across acodb_explorer, pfs_calcs, bib_explorer, nessie_tutorial, etc.
Solution
Add connection factories to
src/conf/__init__.py(or a newsrc/conf/connect.py):Each factory:
stack.tomlviacfgq()helper for DuckDB/Trino that returns Polars DataFramesImplementation:
Files
src/conf/connect.py(new)src/conf/__init__.py(re-export connect)tests/conf/test_connect.py