Add atomic transaction API#28
Conversation
|
Warning Review limit reached
More reviews will be available in 51 minutes and 40 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1653cc5 to
c959ab8
Compare
c959ab8 to
0f66c72
Compare

Dependent PRs
1586a5973882b6acb72c2677c29ad23c4c6f85effor the submodule commit that narrows Alloy features so the latest float crate compiles with sqlite-web.Motivation
Consumers that pass
SQLiteWasmDatabase.query.bind(localDb)into SDK transaction batches currently express logical transactions as separatequery()calls:BEGIN TRANSACTION, individual statements, thenCOMMIT. sqlite-web serializes individual worker messages, but it does not hold a transaction-level lock across multiplequery()calls. With multiple handles/tabs sharing a database, those split transaction calls can interleave and SQLite can returncannot start a transaction within a transaction.Solution
SQLiteWasmDatabase.transaction(statements)JS API that accepts{ sql, params? }[].BEGIN,COMMIT,END,ROLLBACK,SAVEPOINT,RELEASE) so the worker owns transaction scope.BEGINinterleaving failure.wipeAndRecreatehandles Chrome briefly retaining OPFS handles.revm 36.build-submodulesbefore runningforge build.Checks
By submitting this for review, I am confirming I have done the following:
Validation run:
cargo fmt --allcargo check --tests -p sqlite-web-corecargo check --tests -p sqlite-web./scripts/local-bundle.shbun run test(158 passed | 4 skipped)npm run lint-format-checkinsvelte-testnix develop -c rustc --version(rustc 1.94.0)nix develop -c build-submodulesnix develop -c local-bundleNO_HEADLESSwasm browser test forsqlite-web-core(98 passed; 0 failed)NO_HEADLESSwasm browser test forsqlite-web(38 passed; 0 failedbefore OPFS retry; CI rerun pending)git diff --check