From a0f3f3d8016846cec0784bbeede3474e59fc9ac9 Mon Sep 17 00:00:00 2001 From: Isaac Adeni Adariku Date: Tue, 11 Oct 2022 12:14:52 +0100 Subject: [PATCH] Update web.md Following this depreciated change [https://github.com/simolus3/drift/commit/1af6bb78d98ee7b57f099624619a323eafd67576#:~: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. --- docs/pages/docs/Other engines/web.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/docs/Other engines/web.md b/docs/pages/docs/Other engines/web.md index 34bf1d77..7842e96c 100644 --- a/docs/pages/docs/Other engines/web.md +++ b/docs/pages/docs/Other engines/web.md @@ -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). \ No newline at end of file +If you're running into any issues with the new backend, please post them [here](https://github.com/simolus3/sqlite3.dart/issues).