open abstract method
Future<Database>
open(
- String dbName, {
- int? version,
- OnUpgradeNeededFunction? onUpgradeNeeded,
- OnBlockedFunction? onBlocked,
requests opening a connection to a database.
performs he open operation asynchronously. If the operation is successful, it returns a new Database object for the connection.
If an error occurs while the database connection is being opened, then an error event is fired on the request object returned from this method.
May trigger upgradeneeded, blocked or versionchange events.
Implementation
Future<Database> open(String dbName,
{int? version,
OnUpgradeNeededFunction? onUpgradeNeeded,
OnBlockedFunction? onBlocked});