-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sqlite3): add support for nested transactions using SAVEPOINT
It's possible to provide nested transaction semantics when using SQLite3 by using SAVEPOINT statements to manage transactions deeper than 1 level. The implementation starts a transaction when transBegin() is first called as before. But then all nested transactions will be managed by creating, releasing (commiting) or rolling back savepoint. Only when the outermost transaction is completed a COMMIT or ROLLBACK will be executed, either committing the transaction and all inner _committed_ transactions, or rolling everything back. - SQLite Transaction: https://sqlite.org/lang_transaction.html - SQLite Savepoints: https://sqlite.org/lang_savepoint.html
- Loading branch information
Moritz Küttel
committed
Apr 27, 2024
1 parent
c346098
commit 753765d
Showing
1 changed file
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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