Repository navigation
Conversation
🦋 Changeset detectedLatest commit: b20c509 The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
tim-smart
merged commit Oct 30, 2026
db739ec
into
agent/nelson-effect-bot/634621d8d78f
10 checks passed
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.
Implements
Connection.executeBatchfor@effect/sql-libsql, soSqlClient.batchruns as one libSQL batch instead of falling back to one statement at a time. Against a remote libSQL or Turso database that is one round trip instead of one per statement.Stacked on #10147, which adds
SqlClient.batchand theConnection.executeBatchhook. This PR targets #10147's branch so the diff shows only the libsql change; retarget it tov4/next-minoronce #10147 merges.Behavior
executeBatchcallssdk.batch(statements, "write")and returns each statement'sResultSet.rows. Core still applies each statement's row transforms, the current transformer, tracing and transaction routing.withTransaction, libSQL runs the batch as one write transaction. A failing statement fails the batch and nothing from it is kept. The"write"mode matchesbeginTransaction, so a batch with writes takes the write lock up front instead of upgrading partway through.withTransactionthe connection holds a libSQLTransaction, whosebatchruns in the open transaction and ignores the mode. A failing statement fails the batch, and the enclosingwithTransactionrolls back as usual.Tests
packages/sql/libsql/test/Client.integration.test.tsgets a newbatchblock that runs on:memory:clients:batchcall.Closes EFF-3161