-
Notifications
You must be signed in to change notification settings - Fork 11
[Feature] Web Support #26
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
Merged
Changes from 10 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
96400b3
[Alpha WIP] Web Support (#25)
stevensJourney 79b0ff9
[Alpha WIP] Open Factory SqliteConnections (#30)
stevensJourney 922e11c
[Alpha] Fix mutex reuse (#32)
stevensJourney ce6cd3d
chore: merge master (#41)
DominicGBauer 761baa4
update from master
stevensJourney b5fc3c9
qoutes
stevensJourney d8d92f9
Merge pull request #44 from powersync-ja/update-alpha-master
stevensJourney e4a1464
Release/0.7.0 alpha.4 (#45)
stevensJourney 31c2fad
Sqlite Prototype (#43)
stevensJourney c40bcda
Bump version (#49)
mugikhan daf9331
cleanup
stevensJourney 10f430b
update from main
stevensJourney 382c481
added releases action
stevensJourney d95edd2
added changelog, fix linting warnings
stevensJourney 7a1ebdb
update all references to Drift
stevensJourney e8af175
chore: version bump
stevensJourney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Developing Instructions | ||
|
||
## Testing | ||
|
||
Running tests for the `web` platform requires some preparation to be executed. The `sqlite3.wasm` and `db_worker.js` files need to be available in the Git ignored `./assets` folder. | ||
|
||
See the [test action](./.github/workflows/test.yaml) for the latest steps. | ||
|
||
On your local machine run the commands from the `Install SQLite`, `Compile WebWorker` and `Run Tests` steps. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// Re-exports [sqlite3 WASM](https://pub.dev/packages/sqlite3) to expose sqlite3 without | ||
/// adding it as a direct dependency. | ||
library; | ||
|
||
export 'package:sqlite3/wasm.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// Re-exports [sqlite3_web](https://pub.dev/packages/sqlite3_web) to expose sqlite3_web without | ||
/// adding it as a direct dependency. | ||
library; | ||
|
||
export 'package:sqlite3_web/sqlite3_web.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Items required for extending custom web workers | ||
export './src/web/worker/worker_utils.dart'; | ||
export './src/web/protocol.dart'; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export 'stub_isolate_connection_factory.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.io) '../native/native_isolate_connection_factory.dart'; | ||
if (dart.library.io) '../native/native_isolate_connection_factory.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.html) '../web/web_isolate_connection_factory.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export 'stub_mutex.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.io) '../native/native_isolate_mutex.dart'; | ||
if (dart.library.io) '../native/native_isolate_mutex.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.html) '../web/web_mutex.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export 'stub_sqlite_open_factory.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.io) '../native/native_sqlite_open_factory.dart'; | ||
if (dart.library.io) '../native/native_sqlite_open_factory.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.html) '../web/web_sqlite_open_factory.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export 'stub_sqlite_database.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.io) '../native/database/native_sqlite_database.dart'; | ||
if (dart.library.io) '../native/database/native_sqlite_database.dart' | ||
// ignore: uri_does_not_exist | ||
if (dart.library.html) '../web/database/web_sqlite_database.dart'; |
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.