DatabaseClient<T> class abstract

Constructors

DatabaseClient(DatabaseSettings _settings)

Properties

collections List<DataCollection>
no setter
enabled bool
no setter
hashCode int
The hash code for this object.
no setterinherited
instance → T
no setter
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings DatabaseSettings
no setter
syncCollections List<DataCollection>
no setter
syncInterval Duration
no setter
syncToServer bool
no setter
type DatabaseType
no setter

Methods

clear(String collection) Future<void>
connect() Future<void>
createCollection(String collection) Future<void>
dispose() Future<void>
get<Y>(String collection, String key) Future<Y?>
getAll<Y>(String collection) Future<List<Y>?>
getCollectionMetadata(String collection) DataCollection?
getStatistics() Future<DatabaseStatistic>
getWhere<Y>(String collection, bool predicate(Y key)) Future<List<Y>?>
initialise(DatabaseSettings settings) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String collection, String key, dynamic value) Future<void>
registerCollection<Y>(String collection, {bool syncCollectionToServer = false, Duration cacheLifespan = const Duration(hours: 6)}) → void
remove(String collection, String key) Future<void>
removeByKey(String collection, List<String> keys) Future<void>
removeCollection(String collection) Future<void>
removeWhere<Y>(String collection, bool predicate(Y item)) Future<void>
setCollectionRowCount(String collection, int value) → void
toString() String
A string representation of this object.
inherited
updateStatistic(String collection) Future<void>

Operators

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