🚑 Able to use database on web
This commit is contained in:
@ -20,7 +20,13 @@ class AppDatabase extends _$AppDatabase {
|
||||
int get schemaVersion => 1;
|
||||
|
||||
static QueryExecutor _openConnection() {
|
||||
return driftDatabase(name: 'solar_network_local_db');
|
||||
return driftDatabase(
|
||||
name: 'solar_network_local_db',
|
||||
web: DriftWebOptions(
|
||||
sqlite3Wasm: Uri.parse('sqlite3.wasm'),
|
||||
driftWorker: Uri.parse('drift_worker.dart.js'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
static Future<int> getDatabaseSize() async {
|
||||
|
Reference in New Issue
Block a user