SembastAdapter class abstract
The SembastAdapter provides a bridge between the store and the Sembast backend
- Implementers
Constructors
- SembastAdapter(Database _db)
- SembastAdapter constructor
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
String name) → Future< void> - Clears a partition
-
close(
) → Future< void> - Closes all partitions
-
count(
String name, {Filter? filter}) → Future< int> -
Counts the number of entries using a optionally provided
Filter
-
create(
String name) → Future< void> - Creates a partition
-
delete(
String name) → Future< void> - Deletes a partition from a store or the store itself if a partition is stored individually
-
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
-
deleteDatabase(
String path) → Future< void> -
exists(
String name, String key) → Future< bool> - Checks if a entry exists
-
find(
String name, {Finder? finder}) → Future< List< RecordSnapshot< >String, Map< >String, dynamic> > -
Finds the list of all
RecordSnapshot
's according with the providedFinder
-
getByKeys(
String name, Iterable< String> keys) → Future<List< Map< >String, dynamic> ?> - Returns the json maps of the provided keys
-
keys(
String name, {Finder? finder}) → Future< List< String> > -
Returns all the keys using a optionally provided
Finder
-
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
-
put(
String name, String key, Map< String, dynamic> value, {bool? merge}) → Future<void> - Adds a value to the partition
-
remove(
String name, String key) → Future< void> - Removes a entry by key
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited