drift/examples/app/lib/database/connection/unsupported.dart

18 lines
444 B
Dart

import 'package:drift/drift.dart';
Never _unsupported() {
throw UnsupportedError(
'No suitable database implementation was found on this platform.');
}
// Depending on the platform the app is compiled to, the following stubs will
// be replaced with the methods in native.dart or web.dart
DatabaseConnection connect() {
_unsupported();
}
Future<void> validateDatabaseSchema(GeneratedDatabase database) async {
_unsupported();
}