SqlliteDatabase class
- Implemented types
- Implementers
- Available extensions
Constructors
Properties
-
future
→ Future<
void> ? -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialised → bool
-
no setter
- metaTable → DbTable
-
no setter
-
onBeforeMigration
↔ Future<
void> Function(SqlliteDatabase db)? -
getter/setter pair
- path → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema ↔ Schema
-
getter/setter pair
-
tableChangeStream
→ Stream<
Table> -
Returns a stream of any table change
no setter
-
tableDeleteStream
→ Stream<
TableDelete> -
no setter
-
tableInsertStream
→ Stream<
TableInsert> -
no setter
-
tables
↔ Map<
String, DbTable> -
getter/setter pair
-
tableUpdateStream
→ Stream<
TableUpdate> -
no setter
-
user
→ DbTableWithConverter<
int, UserCache> -
Available on SqlliteDatabase, provided by the UserDatabase extension
no setter
Methods
-
addTable(
Table table) → Future< void> -
backup(
) → Future< void> - Creates .bak version of this db
-
batch(
void executor(Batch batch)) → Future< List< Object?> > -
override
-
clone(
String newPath) → Future< void> -
close(
) → Future< void> -
delete(
Table table, Query query) → Future< int> -
Returns number of rows affected
override
-
deleteDatabase(
) → Future< void> -
execute(
String sql) → Future< void> -
executeBuilder(
StatementBuilder builder(StatementBuilder builder)) → Future< void> -
getRawBatch(
) → Batch -
getTable<
Key> (String name) → DbTable< Key> -
getTableWithConverter<
Key, Value> (String name, Converter< Value> converter) → DbTableWithConverter<Key, Value> -
init(
) → Future< void> -
Available on SqlliteDatabase, provided by the UserDatabase extension
-
insert<
KeyType> (Table< KeyType> table, Map<String, Object?> values, {ConflictAlgorithm conflictAlgorithm = ConflictAlgorithm.abort}) → Future<KeyType> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
Schema schema, {String dbPath = 'default.db', bool nukeDb = false, Future< void> onBeforeMigration(SqlliteDatabase db)?}) → Future<void> -
query(
Table table, Query query) → Future< List< Map< >String, Object?> > -
override
-
rawQuery(
String query) → Future< List< Map< >String, Object?> > -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Table table, Map< String, Object?> values, Query query) → Future<int> -
Convenience method for updating rows in the database. Returns the number of changes made
override
-
watchQuery(
Table table, Query query) → Stream< List< Map< >String, Object?> > -
override
-
watchUpdates(
) → Stream< Table> -
when<
T> (Stream< List< builder(SqlliteDatabase db)) → Stream<T> >List< T> > - Provides a safe builder access for querying the database when you are unsure of the initialisation status
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- metaTableName → const String