mirror of https://github.com/AMT-Cheif/drift.git
14 lines
332 B
Dart
14 lines
332 B
Dart
import 'dart:html';
|
|
|
|
import 'package:drift/web.dart';
|
|
import 'package:drift/web/worker.dart';
|
|
|
|
void main() {
|
|
WorkerGlobalScope.instance.importScripts('sql-wasm.js');
|
|
|
|
driftWorkerMain(() {
|
|
return WebDatabase.withStorage(DriftWebStorage.indexedDb('worker',
|
|
migrateFromLocalStorage: false, inWebWorker: true));
|
|
});
|
|
}
|