Skip to content

fix(db): transaction context manager + fixed parameterized updates (CORR-10) - #8

Open
KARLalpha4768 wants to merge 1 commit into
mainfrom
fix/db
Open

KARLalpha4768 wants to merge 1 commit into
mainfrom
fix/db

Conversation

@KARLalpha4768

Copy link
Copy Markdown
Owner

Changes

  • CORR-10: get_db() is now a commit/rollback/close context manager used by all helpers; the dynamically built UPDATE clause is replaced with fixed parameterized statements.

Tests

  • tests/test_db_lifecycle.py: rollback and close on error, task state update persists with completed_at.

Not verified

  • Large diff in db.py (mostly re-indentation into with-blocks); worth a careful read of callers outside the test suite.

Verification

Drafted by Codex from the medium/low review findings; split and re-verified per branch.

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