mirror of https://github.com/AMT-Cheif/drift.git
24 lines
639 B
Dart
24 lines
639 B
Dart
// GENERATED CODE, DO NOT EDIT BY HAND.
|
|
//@dart=2.12
|
|
import 'package:drift/drift.dart';
|
|
import 'package:drift_dev/api/migrations.dart';
|
|
import 'schema_v2.dart' as v2;
|
|
import 'schema_v3.dart' as v3;
|
|
import 'schema_v1.dart' as v1;
|
|
|
|
class GeneratedHelper implements SchemaInstantiationHelper {
|
|
@override
|
|
GeneratedDatabase databaseForVersion(QueryExecutor db, int version) {
|
|
switch (version) {
|
|
case 2:
|
|
return v2.DatabaseAtV2(db);
|
|
case 3:
|
|
return v3.DatabaseAtV3(db);
|
|
case 1:
|
|
return v1.DatabaseAtV1(db);
|
|
default:
|
|
throw MissingSchemaException(version, const {2, 3, 1});
|
|
}
|
|
}
|
|
}
|