DatabaseFactoryJdb class

Jdb implementation

Implemented types
Available extensions

Constructors

DatabaseFactoryJdb(JdbFactory jdbFactory)
Constructor.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasStorage → bool
True if it has an associated storage (fs, idb).
no setteroverride
jdbFactory → JdbFactory
File system used.
final
pathContext → Context
Path context
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

databaseExists(String path) → Future<bool>
Check if a database exists
override
deleteDatabase(String path) → Future<Object?>
Delete a database if existing
inheritedoverride
doDeleteDatabase(String path) → Future
Delete a database.
flush() → Future
Flush all opened databases
inherited
getDatabaseOpenHelper(String path, DatabaseOpenOptions options) → Future<DatabaseOpenHelper>
Get or create the open helper for a given path.
inherited
getExistingDatabaseOpenHelper(String path) → DatabaseOpenHelper?
Get existing open helper for a given path.
inherited
newDatabase(DatabaseOpenHelper openHelper) → SembastDatabase
The actual implementation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDatabase(String path, {int? version, OnVersionChangedFunction? onVersionChanged, DatabaseMode? mode, SembastCodec? codec}) → Future<Database>
Open a new or existing database.
inherited
openDatabaseWithOptions(String path, DatabaseOpenOptions options) → Future<Database>
Open a database with a given set of options.
inherited
removeDatabaseOpenHelper(String path) → void
Remove the helper for a given path.
inherited
sandbox({required String path}) → DatabaseFactory

Available on DatabaseFactory, provided by the SembastDatabaseFactorySandboxExtension extension

Database factory sandboxing.
setDatabaseOpenHelper(String path, DatabaseOpenHelper? helper) → void
Set the helper for a given path.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited