Skip to content

Conversation

@stevensJourney
Copy link
Collaborator

Overview

The Capacitor community SQLite API has a few SQLite execution functions:

  • db.run(..)
  • db.query(..)
  • db.executeSet(..)

The db.run and db.executeSet methods do not work on read-only connections. An error not allowed in read-only mode is thrown when attempting to access these with a read-only connection.

Previously we used db.run() for PowerSync Transaction execute calls in iOS. For Android we either used db.query or db.executeSet for mutations and db.query for SELECT queries.

This PR updates the logic to use db.query for all Read only operations.

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

🦋 Changeset detected

Latest commit: 67ba862

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@powersync/common Patch
@powersync/adapter-sql-js Patch
@powersync/node Patch
@powersync/op-sqlite Patch
@powersync/react-native Patch
@powersync/tanstack-react-query Patch
@powersync/web Patch
@powersync/diagnostics-app Patch

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

@stevensJourney stevensJourney marked this pull request as ready for review November 13, 2025 13:13
@stevensJourney stevensJourney merged commit 4c66487 into main Nov 13, 2025
9 checks passed
@stevensJourney stevensJourney deleted the capacitor-android-read branch November 13, 2025 14:17
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.

3 participants