Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jan 16, 2025

When we're running in a context where workers haven't been set up (like e.g. the Test Run environment from FlutterFlow), fall back to hosting the SQLite database in the main JavaScript context. This also requires setting up the powersync extension, which is normally initialized by the worker.

The new sqlite_async / sqlite3_web package versions will use our database controller when workers are unavailable.

@simolus3 simolus3 force-pushed the feat/enable-controller-without-workers branch from 4ba63ab to a7e0b43 Compare January 23, 2025 09:20
@simolus3 simolus3 marked this pull request as ready for review January 24, 2025 15:23
@simolus3 simolus3 merged commit 52dc8ef into main Jan 27, 2025
4 checks passed
@simolus3 simolus3 deleted the feat/enable-controller-without-workers branch January 27, 2025 08: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.

2 participants