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));
  });
}
