Skip to content

Allow calling disconnect() on closed databases - #449

Merged
simolus3 merged 1 commit into
mainfrom
allow-disconnect-on-closed-databases
Jul 28, 2026
Merged

Allow calling disconnect() on closed databases#449
simolus3 merged 1 commit into
mainfrom
allow-disconnect-on-closed-databases

Conversation

@simolus3

Copy link
Copy Markdown
Contributor

In #441, we've started calling the powersync_offline_sync_status() SQL function after disconnecting to fetch the updated sync status which is disconnected, but still contains current sync streams. That broke the ability to call disconnect() on closed databases, which worked before.

We disconnect in close() and a closed database can't be connected, so doing nothing restores the old behavior.

Closes #448

@simolus3
simolus3 marked this pull request as draft July 28, 2026 09:52
Base automatically changed from update-core-extension to main July 28, 2026 10:00
@simolus3
simolus3 force-pushed the allow-disconnect-on-closed-databases branch from 515257c to 427ab27 Compare July 28, 2026 10:02
@simolus3
simolus3 marked this pull request as ready for review July 28, 2026 10:02
@simolus3
simolus3 requested a review from Chriztiaan July 28, 2026 10:02
@simolus3
simolus3 merged commit 13c5a0c into main Jul 28, 2026
13 checks passed
@simolus3
simolus3 deleted the allow-disconnect-on-closed-databases branch July 28, 2026 10:16
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.

Minor behavior change from powersync 2.3.2 and 2.3.1

2 participants