StorageMapper class abstract

Generic interface to define the common methods between databases.

@author Sacha

Implementers

Constructors

StorageMapper()

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

add(Node node) Future<void>
Add a non existing node to the storage backend.
close() Future<void>
closes the database backend and flushes all data.
delete(String path) Future<Node>
Remove the named node.
flush() Future<void>
Flushes all data possible to the disk.
get(String path) Future<Node>
Get a node by node name from the storage backend.
getValue(String path, String key) Future<NodeValue?>
Fetch a value from a node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rename(String oldPath, String newPathOrName) Future<void>
Renames or moves an existing node.
Search all nodes matching the provided search criteria.
setController(StorageController controller) → void
Sets the controller to be used when creating skeletons.
toString() String
A string representation of this object.
inherited
update(Node node) Future<void>
Update an already existing node with the current values.
zap() Future<void>
Zaps the current database and discards all values.

Operators

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

Static Properties

preferCurrentDirectory bool
getter/setter pair

Static Methods

expandDbFileName(String name) String
Extend database path name with writeable base dir if no base dir is specified
initDatabaseExpander() Future<void>
isWriteable([String path = "."]) bool