Make save operation transactional #3

Merged
mdaleo404 merged 1 commits from transaction_patch into main 2025-12-23 16:15:46 +00:00
Owner

Make the save operation fully transactional to prevent partial or inconsistent database state.

  • Wrap save logic in a SQLite transaction
  • Ensure permission checks occur before committing
  • Prevent orphaned or partially written states records

Patch sent by

mig5 ( website | Forgejo )


  • Update README
  • Version bump 0.2.2
Make the save operation fully transactional to prevent partial or inconsistent database state. - Wrap save logic in a SQLite transaction - Ensure permission checks occur before committing - Prevent orphaned or partially written states records ### Patch sent by **mig5** ( [website](https://www.mig5.net) | [Forgejo](https://git.mig5.net) ) --- - Update README - Version bump 0.2.2
mdaleo404 added 1 commit 2025-12-23 16:14:25 +00:00
Run save inside a single transaction to avoid partial writes when permission checks fail or state creation errors occur
All checks were successful
Lint & Security / precommit-and-security (pull_request) Successful in 59s
9658f534ea
mdaleo404 merged commit aafad81bb6 into main 2025-12-23 16:15:46 +00:00
mdaleo404 deleted branch transaction_patch 2025-12-23 16:15:47 +00:00
Sign in to join this conversation.