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).