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 factory name
no setterinherited
pathContext → Context
Path context
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
underlyingSembastFactoryOrNull → DatabaseFactory?

Available on IdbFactory, provided by the IdbFactorySembastExtension extension

Cast to Sembast factory
no setter

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 or dev mode.
deleteDatabase(String name, {OnBlockedFunction? onBlocked}) → Future<IdbFactory>
performs the deletion operation asynchronously.
inherited
fullPath(String path) → String

Available on IdbFactory, provided by the IdbFactorySandboxExtension extension

full path of a database path
getDatabaseFullPath(String name) → Future<String>
Default implementation should be overriden Mainly use for debugging purpose
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
isImmutableDatabaseName(String name) → bool
Allow overriding (for sqflite for example)
inherited
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.
openOnDowngradeDelete(String name, {int? version, OnUpgradeNeededFunction? onUpgradeNeeded, OnBlockedFunction? onBlocked}) → Future<Database>

Available on IdbFactory, provided by the IdbFactoryExt extension

Open a database and delete in case of downgrade.
sandbox({required String path}) → IdbFactory

Available on IdbFactory, provided by the IdbFactorySandboxExtension extension

Factory sandboxing.
toString() → String
A string representation of this object.
inherited

Operators

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