Database class

Database.

The database object and client for the store and record operations

Inheritance
Implemented types

Constructors

Database()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
mainStore Store
@deprecated v2 [...]
read-only, inherited
path String
Database path.
read-only
records Stream<Record>
@deprecated v2 [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
store Store
@deprecated v2
read-only, inherited
storeNames Iterable<String>
@deprecated v2 [...]
read-only, inherited
stores Iterable<Store>
@deprecated v2 [...]
read-only, inherited
version int
Version of the database.
read-only

Methods

clear() Future
@deprecated v2 [...]
inherited
close() Future
Closes the database.
containsKey(dynamic key) Future<bool>
@deprecated v2
inherited
count([Filter filter]) Future<int>
@deprecated v2 [...]
inherited
delete(dynamic key) Future
@deprecated v2 [...]
inherited
deleteAll(Iterable keys) Future
@deprecated v2 [...]
inherited
deleteRecord(Record record) Future
@deprecated v2 [...]
inherited
deleteStore(String storeName) Future
@deprecated v2 [...]
inherited
findKey(Finder finder) Future
@deprecated v2
inherited
findKeys(Finder finder) Future<List>
@deprecated v2
inherited
findRecord(Finder finder) Future<Record>
@deprecated v2 [...]
inherited
findRecords(Finder finder) Future<List<Record>>
@deprecated v2 [...]
inherited
findStore(String storeName) Store
@deprecated v2 [...]
inherited
get(dynamic key) Future
@deprecated v2 [...]
inherited
getRecord(dynamic key) Future<Record>
@deprecated v2 [...]
inherited
getRecords(Iterable keys) Future<List<Record>>
@deprecated v2 [...]
inherited
getStore(String storeName) Store
@deprecated v2 [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
put(dynamic value, [dynamic key]) Future
@deprecated v2 [...]
inherited
putRecord(Record record) Future<Record>
@deprecated v2 [...]
inherited
putRecords(List<Record> records) Future<List<Record>>
@deprecated v2 [...]
inherited
toString() String
A string representation of this object. [...]
inherited
transaction<T>(FutureOr<T> action(Transaction transaction)) Future<T>
Executes the action in a transaction.
update(dynamic value, dynamic key) Future
@deprecated v2 [...]
inherited

Operators

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