Update web.md

Following this depreciated change [1af6bb78d9#:~:text=%40Deprecated(%27Use%20the,this(executor)%3B], the documentation for the web.md needs to be updated. This PR updates the documentation to reflect the changes.
This commit is contained in:
Isaac Adeni Adariku 2022-10-11 12:14:52 +01:00 committed by GitHub
parent 3d969c787f
commit a0f3f3d801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ void main() {
final db = WebDatabase.withStorage(DriftWebStorage.indexedDb('worker',
migrateFromLocalStorage: false, inWebWorker: true));
final server = DriftServer(DatabaseConnection.fromExecutor(db));
final server = DriftServer(DatabaseConnection(db));
self.onConnect.listen((event) {
final msg = event as MessageEvent;
@ -294,4 +294,4 @@ With this setup, sqlite3 can be used on the web without an external library:
This snippet also works in a service worker.
If you're running into any issues with the new backend, please post them [here](https://github.com/simolus3/sqlite3.dart/issues).
If you're running into any issues with the new backend, please post them [here](https://github.com/simolus3/sqlite3.dart/issues).