Skip to content

feat: support START TRANSACTION and END TRANSACTION (#70)#73

Merged
erans merged 3 commits intomainfrom
feat/start-transaction-support
Mar 28, 2026
Merged

feat: support START TRANSACTION and END TRANSACTION (#70)#73
erans merged 3 commits intomainfrom
feat/start-transaction-support

Conversation

@erans
Copy link
Copy Markdown
Owner

@erans erans commented Mar 28, 2026

Summary

  • Recognize START TRANSACTION as BEGIN and END/END TRANSACTION as COMMIT in QueryTypeDetector (both fast path and fallback)
  • Add START/END to extended query protocol transaction dispatch and handler in extended.rs
  • Enables postgres_fdw to connect (it sends START TRANSACTION ISOLATION LEVEL REPEATABLE READ)

Test Plan

  • Unit tests for START TRANSACTION (upper, lower, mixed case, with isolation level clause)
  • Unit tests for END / END TRANSACTION (upper, lower case)
  • Word boundary guard tests (ENDLESS, ENDTABLE do NOT match)
  • is_transaction() helper verifies all synonyms
  • Full test suite passes (486 tests, 0 failures)
  • cargo clippy — no new warnings

Closes #70

🤖 Generated with Claude Code

erans and others added 3 commits March 27, 2026 16:39
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erans erans merged commit 085c34d into main Mar 28, 2026
1 check passed
@erans erans deleted the feat/start-transaction-support branch March 28, 2026 00:48
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.

Support for START TRANSACTION

1 participant