mirror of https://github.com/AMT-Cheif/drift.git
Update wasm snippet for docs
This commit is contained in:
parent
9e2e9c47be
commit
f971d4ce91
|
@ -9,7 +9,7 @@ QueryExecutor connect() {
|
|||
final response = await http.get(Uri.parse('sqlite3.wasm'));
|
||||
// Create a virtual file system backed by IndexedDb with everything in
|
||||
// `/drift/my_app/` being persisted.
|
||||
final fs = await IndexedDbFileSystem.load('/drift/my_app/');
|
||||
final fs = await IndexedDbFileSystem.open(dbName: 'my_app');
|
||||
final sqlite3 = await WasmSqlite3.load(
|
||||
response.bodyBytes,
|
||||
SqliteEnvironment(fileSystem: fs),
|
||||
|
|
|
@ -15,7 +15,7 @@ dependencies:
|
|||
js: ^0.6.3
|
||||
meta: ^1.3.0
|
||||
stream_channel: ^2.1.0
|
||||
sqlite3: ^1.6.2
|
||||
sqlite3: ^1.7.0
|
||||
|
||||
dev_dependencies:
|
||||
build_test: ^2.0.0
|
||||
|
|
Loading…
Reference in New Issue