JdbDatabaseIdb class

In memory database.

Constructors

JdbDatabaseIdb(JdbFactoryIdb _factory, Database _idbDatabase, int _id, String _path, DatabaseOpenOptions? _options)
New in memory database.

Properties

entries Stream<JdbEntry>
Read all entries.
no setter
hashCode int
The hash code for this object.
no setterinherited
openOptions → DatabaseOpenOptions
Codec to use.
no setter
revisionUpdate Stream<int>
Get revision update from the database
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEntries(List<JdbWriteEntry> entries) Future
Add entries in the database.
addRevision(int revision) → void
Will notify.
clearAll() Future
Clear all data (testing only)
close() → void
Close the database
compact() Future
Compact the database
entriesAfterRevision(int revision) Stream<JdbEntry>
Read delta entries since current revision
exportToMap() Future<Map<String, Object?>>
Read all context (re-open if needed). Test only.
generateUniqueIntKeys(String store, int count) Future<List<int>>
Generate unique int keys.
generateUniqueStringKeys(String store, int count) Future<List<String>>
Generate unique String keys.
getDeltaMinRevision() Future<int>
Delta min revision
getInfoEntry(String id) Future<JdbInfoEntry>
Get info.
getRevision() Future<int>
Read revision stored
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyRevision(int revision) → void
Notify other clients of the new revision
sdbExportDatabase() Future<Map>
Export the database using sdb format
setInfoEntry(JdbInfoEntry entry) Future
Set info.
toString() String
A string representation of this object.
override
writeIfRevision(StorageJdbWriteQuery query) Future<StorageJdbWriteResult>
Safe transaction write of multiple infos.

Operators

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