Skip to content

add execute batch sync - #461

Merged
ospfranco merged 2 commits into
mainfrom
execut-bach-sync
Sep 20, 2026
Merged

ospfranco merged 2 commits into
mainfrom
execut-bach-sync

Conversation

@ospfranco

Copy link
Copy Markdown
Contributor

closes #459

ospfranco and others added 2 commits September 20, 2026 11:45
opsqlite_libsql_execute_batch caught exceptions from failing statements
and returned a BatchResult with only a message field, which nothing on
the JS side ever read. The batch promise resolved successfully even
though a statement failed, so the wrapping COMMIT in functions.ts
persisted a partial write instead of the expected ROLLBACK. Let the
exception propagate like the plain sqlite backend does, so the promise
rejects and the transaction rolls back.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ospfranco
ospfranco merged commit 08c6913 into main Sep 20, 2026
10 checks passed
@ospfranco
ospfranco deleted the execut-bach-sync branch September 20, 2026 16:24
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.

[Request]: executeBatch runs BEGIN/COMMIT with executeSync on the JS thread — the COMMIT of a large batch blocks JS for 200–450 ms

1 participant