SembastMemoryAdapter class

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The database name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear(String name) Future<void>
Clears a partition
inherited
close() Future<void>
Closes all partitions
inherited
count(String name, {Filter? filter}) Future<int>
Counts the number of entries using a optionally provided Filter
inherited
create(String name) Future<void>
Creates a partition
inherited
delete(String name) Future<void>
Deletes a partition from a store or the store itself if a partition is stored individually
inherited
deleteAll() Future<void>
Deletes the store if a store is implemented in a way that puts all the named stashes in one storage, or stores(s) if multiple storages are used
inherited
deleteDatabase(String path) Future<void>
override
exists(String name, String key) Future<bool>
Checks if a entry exists
inherited
find(String name, {Finder? finder}) Future<List<RecordSnapshot<String, Map<String, dynamic>>>>
Finds the list of all RecordSnapshot's according with the provided Finder
inherited
getByKeys(String name, Iterable<String> keys) Future<List<Map<String, dynamic>?>>
Returns the json maps of the provided keys
inherited
keys(String name, {Finder? finder}) Future<List<String>>
Returns all the keys using a optionally provided Finder
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
partitionValue(String name, String key) Future<Map<String, dynamic>?>
Returns the json map associated with the provided key
inherited
put(String name, String key, Map<String, dynamic> value, {bool? merge}) Future<void>
Adds a value to the partition
inherited
remove(String name, String key) Future<void>
Removes a entry by key
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

build(String name, {int? version, OnVersionChangedFunction? onVersionChanged, DatabaseMode? mode, SembastCodec? sembastCodec}) Future<SembastAdapter>
Builds SembastMemoryAdapter.