TableStatements<Tbl extends Table, Row> extension
Easily-accessible methods to compose common operations or statements on tables.
- on
-
- TableInfo<
Tbl, Row>
- TableInfo<
Methods
-
delete(
) → DeleteStatement< Tbl, Row> -
Available on TableInfo<
Creates a statement to compose aTbl, Row> , provided by the TableStatements extensionDELETE
from the database. -
deleteAll(
) → Future< int> -
Available on TableInfo<
Deletes ALL rows from the table.Tbl, Row> , provided by the TableStatements extension -
deleteOne(
Insertable< Row> row) → Future<bool> -
Available on TableInfo<
Deletes theTbl, Row> , provided by the TableStatements extensionrow
from the captured table. -
deleteWhere(
Expression< bool> filter(Tbl tbl)) → Future<int> -
Available on TableInfo<
Deletes all rows matching theTbl, Row> , provided by the TableStatements extensionfilter
from the table. -
insert(
) → InsertStatement< Tbl, Row> -
Available on TableInfo<
Creates an insert statment to be used to compose an insert on the table.Tbl, Row> , provided by the TableStatements extension -
insertAll(
Iterable< Insertable< rows, {InsertMode? mode, UpsertClause<Row> >Tbl, Row> ? onConflict}) → Future<void> -
Available on TableInfo<
Atomically inserts allTbl, Row> , provided by the TableStatements extensionrows
into the table. -
insertOnConflictUpdate(
Insertable< Row> row) → Future<int> -
Available on TableInfo<
Inserts one row into this table table, replacing an existing row if it exists already.Tbl, Row> , provided by the TableStatements extension -
insertOne(
Insertable< Row> row, {InsertMode? mode, UpsertClause<Tbl, Row> ? onConflict}) → Future<int> -
Available on TableInfo<
Inserts one row into this table.Tbl, Row> , provided by the TableStatements extension -
insertReturning(
Insertable< Row> row, {InsertMode? mode, UpsertClause<Tbl, Row> ? onConflict}) → Future<Row> -
Available on TableInfo<
Inserts one row into this table and returns it, along with auto-generated fields.Tbl, Row> , provided by the TableStatements extension -
insertReturningOrNull(
Insertable< Row> row, {InsertMode? mode, UpsertClause<Tbl, Row> ? onConflict}) → Future<Row?> -
Available on TableInfo<
Inserts one row into this table and returns it, along with auto-generated fields.Tbl, Row> , provided by the TableStatements extension -
replaceOne(
Insertable< Row> row) → Future<void> -
Available on TableInfo<
Replaces a single row with an update statement.Tbl, Row> , provided by the TableStatements extension -
update(
) → UpdateStatement< Tbl, Row> -
Available on TableInfo<
Creates a statement to compose anTbl, Row> , provided by the TableStatements extensionUPDATE
into the database.