Skip to content

Remove unused get_connection() - #23

Merged
matthewberry merged 1 commit into
mainfrom
mjberry/remove-get-connection
Oct 22, 2026
Merged

matthewberry merged 1 commit into
mainfrom
mjberry/remove-get-connection

Conversation

@matthewberry

Copy link
Copy Markdown
Contributor

Removes get_connection() from app/db/database.py. Nothing calls it: all DB access goes through the pool via Database/get_db.

How I checked that nothing calls it:

git grep -n "get_connection\b" <ref> -- . ':!app/db/database.py'   # origin/main + all 18 remote branches: no hits
grep -rn "get_connection\b" --include='*.py' --include='*.ipynb' .  # untracked local files: definition only

Verified: pytest (2 passed) and ruff check app/db/database.py pass.

@matthewberry
matthewberry merged commit 3a14dcf into main Oct 22, 2026
1 check passed
@matthewberry
matthewberry deleted the mjberry/remove-get-connection branch October 22, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant