IdbFactorySembast class abstract
IndexedDB factory on top of sembast
- Implemented types
- Available extensions
Constructors
- IdbFactorySembast(DatabaseFactory databaseFactory, [String? path])
-
Create a sembast-based factory on a given top path.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
idb_shim specific
no setterinherited
- persistent → bool
-
whether the changes are persistent (i.e. not in memory)
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdbFactory → DatabaseFactory
-
The underlying sembast factory (compat)
no setter
- sembastFactory → DatabaseFactory
-
The underlying factory.
no setter
- supportsDatabaseNames → bool
-
if getDatabaseNames can be called
no setterinherited
- supportsDoubleKey → bool
-
Whether key as double are supported
no setterinherited
Methods
-
checkOpenArguments(
{int? version, OnUpgradeNeededFunction? onUpgradeNeeded}) → void -
Check open arguments
inherited
-
cmp(
Object first, Object second) → int -
compares two values as keys to determine equality and ordering for
IndexedDB operations, such as storing and iterating.
inherited
-
debugWrapInLogger(
{IdbFactoryLoggerType type = IdbFactoryLoggerType.all, int? maxLogCount}) → IdbFactory -
Available on IdbFactory, provided by the IdbFactoryLoggerDebugExt extension
Quick logger wrapper, useful in unit test. -
deleteDatabase(
String name, {OnBlockedFunction? onBlocked}) → Future< IdbFactory> -
performs the deletion operation asynchronously.
inherited
-
getDatabaseNames(
) → Future< List< String> > -
list of database names (only available if supportsDatabaseNames returns
true).
inherited
-
getDbPath(
String dbName) → String - The path of a named Sembast database.
-
getSdbDatabase(
Database db) → Database? - Get the underlying sembast database for a given database (compat)
-
getSembastDatabase(
Database db) → Database? - Get the underlying sembast database for a given database
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
String dbName, {int? version, OnUpgradeNeededFunction? onUpgradeNeeded, OnBlockedFunction? onBlocked}) → Future< Database> -
requests opening a connection to a database.
inherited
-
openFromSdbDatabase(
Database sdbDb) → Future< Database> - Create a database from an existing sembast database. (compat)
-
openFromSembastDatabase(
Database sdbDb) → Future< Database> - Create a database from an existing sembast database.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited