mirror of https://github.com/AMT-Cheif/drift.git
17 lines
383 B
Dart
17 lines
383 B
Dart
import 'package:moor/moor.dart';
|
|
|
|
part 'custom_tables.g.dart';
|
|
|
|
@UseMoor(
|
|
include: {'tables.moor'},
|
|
queries: {'writeConfig': 'REPLACE INTO config VALUES (:key, :value)'},
|
|
)
|
|
class CustomTablesDb extends _$CustomTablesDb {
|
|
CustomTablesDb(QueryExecutor e) : super(e) {
|
|
moorRuntimeOptions.dontWarnAboutMultipleDatabases = true;
|
|
}
|
|
|
|
@override
|
|
int get schemaVersion => 1;
|
|
}
|