DualDataStore class
Data can optionally be encrypted. Plaintext vs encrypted data is managed in two different stores, which is abstracted transparently to the data store manager through this implementation.
Constructors
- DualDataStore(String name, {required DataStoreFactory factory, required DataStoreEncrypter encrypter})
Properties
Methods
-
delete(
) → Future< void> -
extract(
[String path = '']) → Map< String, dynamic> - Returns a map of the subset of documents in the store under the given path. Data for the given path can exist in two different places:
-
get(
String resolverPath, String path) → dynamic -
graft(
String resolverPath, String otherResolverPath, String? dataPath, DualDataStore other) → void -
Grafts the data in the given
other
data store under resolver pathotherResolverPath
and data pathdataPath
into this data store under resolver pathresolverPath
at data pathdataPath
. -
hasPath(
String resolverPath, String path) → bool -
hasValue(
String resolverPath, String path) → bool -
hydrate(
) → Future< void> -
inspect(
) → Map -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persist(
) → Future< void> -
recursiveDelete(
String path) → void - Deletes the given path from the data store recursively. Documents under the given path could be stored in one of two places:
-
sync(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
writePath(
String? resolverPath, String path, dynamic value, bool encrypted) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited