open abstract method
- WasmStorageImplementation implementation,
- String name, {
- FutureOr<
Uint8List?> initializeDatabase()?, - WasmDatabaseSetup? localSetup,
Opens a connection to a database via the chosen implementation
.
When this database doesn't exist, initializeDatabase
is invoked to
optionally return the initial bytes of the database.
Implementation
Future<DatabaseConnection> open(
WasmStorageImplementation implementation,
String name, {
FutureOr<Uint8List?> Function()? initializeDatabase,
WasmDatabaseSetup? localSetup,
});