14 lines
509 B
Dart
14 lines
509 B
Dart
import 'package:drift/drift.dart';
|
|
|
|
/// Fallback for platforms without a drift backend.
|
|
///
|
|
/// This branch is never selected at runtime on the supported targets: native
|
|
/// platforms compile to `native.dart` (SQLCipher) and the web compiler picks
|
|
/// `web.dart` (WASM) through the conditional import in `app_database.dart`.
|
|
QueryExecutor openDatabaseConnection() {
|
|
throw UnimplementedError(
|
|
'Local persistence is only implemented for native (SQLCipher) '
|
|
'and web (WASM SQLite) platforms.',
|
|
);
|
|
}
|