DBProvider class

Provides database.

Constructors

DBProvider()

Properties

describer DatabaseDescriber
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
open() Future<DBProvider>
Opens a database. Returns future expecting this provider.
printTables() → void
Print all tables in database.
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

batch Batch
Returns database batch.
read-only
transaction Future<T> Function<T>(Future<T> (Transaction), {bool exclusive})
Returns transaction from database.
read-only

Static Methods

columnIn(String column, Set values) String
SQL in operator.
delete(Model model) Future<void>
Deletes model from database.
fetch(String table, {Set<int> ids, int id, String where, List whereArgs}) Future<List<Map<String, dynamic>>>
Fetch rows in given table either for specific id and ids or all.
merge(Model model) Future<void>
Merges model from database.
printTable(String table) Future<void>
Print table in database.
save(Model model) Future<void>
Saves the model.