@@ -51,7 +51,9 @@ databases. The [hook options page](./doc/hook.md) describe this setup.
5151When binding parameters to queries, the supported types are ` ìnt ` ,
5252` double ` , ` String ` , ` List<int> ` (for ` BLOB ` ) and ` null ` .
5353Result sets will use the same set of types.
54- On the web (but only on the web), ` BigInt ` is supported as well.
54+
55+ On the web (when compiled with ` dart2js ` ), ` BigInt ` is supported as well to represent 64bit integers.
56+ Support for this can be disabled with ` -Dsqlite3.dartbigints=false ` .
5557
5658## WASM (web support)
5759
@@ -85,7 +87,7 @@ import 'package:sqlite3/common.dart';
8587import 'package:sqlite3/wasm.dart';
8688
8789Future<WasmSqlite3> loadSqlite() async {
88- final sqlite = await WasmSqlite3.loadFromUrl(Uri.parse( 'sqlite3.wasm') );
90+ final sqlite = await WasmSqlite3.loadFromUrlString( 'sqlite3.wasm');
8991 final fileSystem = await IndexedDbFileSystem.open(dbName: 'my_app');
9092 sqlite.registerVirtualFileSystem(fileSystem, makeDefault: true);
9193 return sqlite;
@@ -123,7 +125,7 @@ To test the encryption integration, download `sqlite3mc.wasm` from the [releases
123125of this package and use that as a URL to load sqlite3 on the web:
124126
125127``` dart
126- final sqlite3 = await WasmSqlite3.loadFromUrl(Uri.parse( 'sqlite3mc.wasm') );
128+ final sqlite3 = await WasmSqlite3.loadFromUrlString( 'sqlite3mc.wasm');
127129sqlite3.registerVirtualFileSystem(InMemoryFileSystem(), makeDefault: true);
128130
129131final database = sqlite3.open('/database')
0 commit comments