mirror of
https://github.com/immich-app/drift.git
synced 2026-09-30 13:22:57 +08:00
Revert unintended change to example
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import 'package:moor/moor.dart';
|
||||
import 'package:moor/src/ffi/vm_database.dart';
|
||||
|
||||
part 'example.g.dart';
|
||||
|
||||
@@ -68,15 +67,3 @@ class Database extends _$Database {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void main() async {
|
||||
final db = Database(VmDatabase.memory(logStatements: true));
|
||||
await db.transaction(() async {
|
||||
final names = ['foo', 'bar', 'baz'];
|
||||
names.forEach((element) async {
|
||||
await db
|
||||
.into(db.categories)
|
||||
.insert(CategoriesCompanion.insert(description: Value(element)));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user