mirror of https://github.com/AMT-Cheif/drift.git
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:
parent
3d969c787f
commit
a0f3f3d801
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue