openDatabase function

Future<Database> openDatabase({
  1. String? databasePath,
  2. required String databaseName,
})

Open a database - stub implementation that throws

Implementation

Future<sembast.Database> openDatabase({
  String? databasePath,
  required String databaseName,
}) {
  throw UnsupportedError(
    'Cannot open Sembast database without dart:io or dart:js_interop. '
    'Use sembast_cache_manager_platform.dart for platform-specific imports.',
  );
}