v4: add direct SQLite storage core - #43
Merged
Merged
Conversation
Phloraxx
marked this pull request as ready for review
September 1, 2026 05:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
First PayGate v4 implementation slice. This is isolated code under
internal/v4/storage; it is not wired into the production runtime.Adds
database/sql+modernc.org/sqliteopen/configurationsynchronous=FULL, foreign keys, bounded busy timeout, DQS disabledWithImmediateTxfor payment-critical writes only; ordinary read transactions do not acquire the writer lock(profile,payable_amount)reservation uniqueness while retaining historyname/eventexternal_idValidation
Focused unit tests, race tests and
go vetpass locally. Added a regression proving an ordinary read transaction can remain open while an explicit immediate write transaction proceeds under WAL.Safety
No existing PocketBase service, route, migration or production DB path is changed.