Skip to content

Use public transaction connections when available - #87

Merged
lesnik512 merged 1 commit into
mainfrom
use-public-transaction-connections
Nov 4, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
use-public-transaction-connections

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Transaction entry now checks the root transaction's public connections accessor, added in SQLAlchemy 2.1.7, when detecting invalidated connections. Older SQLAlchemy versions continue to use the private _connections fallback.

Integration coverage checks recovery after a second bind's connection is invalidated, with and without an active savepoint. It exercises the native API, a public-only transaction view, and the legacy fallback.

Validation passed on PostgreSQL with SQLAlchemy 2.1.7 and 2.0.52. Both runs passed all 79 tests with 100% coverage. Ruff, formatting, and ty checks also passed.

@lesnik512
lesnik512 merged commit 0254494 into main Nov 4, 2026
16 checks passed
@lesnik512
lesnik512 deleted the use-public-transaction-connections branch November 4, 2026 09:15
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