-
Notifications
You must be signed in to change notification settings - Fork 15
add executeMultiple for multi-statement strings #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
simolus3
merged 7 commits into
powersync-ja:main
from
stevenctl:stevenctl/execute-multiple
Jan 15, 2026
Merged
add executeMultiple for multi-statement strings #123
simolus3
merged 7 commits into
powersync-ja:main
from
stevenctl:stevenctl/execute-multiple
Jan 15, 2026
Conversation
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
simolus3
reviewed
Dec 6, 2025
packages/sqlite_async/lib/src/common/connection/sync_sqlite_connection.dart
Show resolved
Hide resolved
simolus3
reviewed
Dec 11, 2025
simolus3
reviewed
Dec 12, 2025
simolus3
previously approved these changes
Dec 15, 2025
Contributor
simolus3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution 👍
simolus3
approved these changes
Jan 15, 2026
stevensJourney
approved these changes
Jan 15, 2026
Contributor
stevensJourney
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy from my side with the changes
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.
fixes #122
This PR adds a new method that allows executing all statements in a given string. More context is in the issue.
Based on feedback, I've updated the PR to just use
executewhich doesn't require any changes to the coresqlite3package. However, I still believe this functionality needs a new API. It is valid to expect aResultSetfrom the vanillaexecute. I don't think there is a way to modify that signature to add settings here. The only way to avoid adding an API hereAlso, using
executemeans that it is valid after all to pass parameters. Usingparams.isEmpty/isNotEmptyis probably not a good way to decide whether the user can expect a result back (it's perfectly valid to expect a result fromINSERT INTO mytable (something) RETURNING id.This is implemented using prepareMultiple from thesqlite3package.For web support, an additional PR (simolus3/sqlite3.dart#337) was required in that repo/package. For now I left a dependency override that should be removed before merging.