mirror of https://github.com/AMT-Cheif/drift.git
13 lines
317 B
Dart
13 lines
317 B
Dart
import 'package:drift/drift.dart';
|
|
|
|
import 'accessor.drift.dart';
|
|
import 'database.dart';
|
|
|
|
@DriftAccessor(
|
|
include: {'src/user_queries.drift'},
|
|
queries: {'addUser': r'INSERT INTO users $user;'},
|
|
)
|
|
class MyAccessor extends DatabaseAccessor<Database> with $MyAccessorMixin {
|
|
MyAccessor(super.attachedDatabase);
|
|
}
|