mirror of https://github.com/AMT-Cheif/drift.git
12 lines
326 B
Dart
12 lines
326 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:drift/web/worker.dart';
|
|
|
|
class Approach1 {
|
|
// #docregion approach1
|
|
Future<DatabaseConnection> connectToWorker() async {
|
|
return await connectToDriftWorker('/database_worker.dart.js',
|
|
mode: DriftWorkerMode.dedicatedInShared);
|
|
}
|
|
// #enddocregion approach1
|
|
}
|