TableOrViewStatements<Row extends Object, RS extends ResultSet<Row, RS> > class
final
Methods to compose common queries and statements on tables or views.
To obtain an instance of this, use GetTableOrViewStatements.statements on a generated table or view instance.
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all(
) → Selectable< Row> - Selects all rows that are in this table.
-
count(
{Expression< bool> where(RS row)?}) → Selectable<int> - Counts the rows in this table.
-
delete(
) → DeleteStatement< Row, RS> -
Available on TableOrViewStatements<
Creates a statement to compose aRow, RS> , provided by the TableStatements extensionDELETEfrom the database. -
deleteAll(
) → Future< int> -
Available on TableOrViewStatements<
Deletes ALL rows from the table.Row, RS> , provided by the TableStatements extension -
deleteOne(
Insertable< Row> row) → Future<bool> -
Available on TableOrViewStatements<
Deletes theRow, RS> , provided by the TableStatements extensionrowfrom the captured table. -
deleteWhere(
Expression< bool> filter(RS tbl)) → Future<int> -
Available on TableOrViewStatements<
Deletes all rows matching theRow, RS> , provided by the TableStatements extensionfilterfrom the table. -
insert(
) → InsertStatement< Row, RS> -
Available on TableOrViewStatements<
Creates an insert statment to be used to compose an insert on the table.Row, RS> , provided by the TableStatements extension -
insertAll(
Iterable< Insertable< rows, {UpsertClause<Row> >Row, RS> ? onConflict}) → Future<void> -
Available on TableOrViewStatements<
Atomically inserts allRow, RS> , provided by the TableStatements extensionrowsinto the table. -
insertOnConflictUpdate(
Insertable< Row> row) → Future<int> -
Available on TableOrViewStatements<
Inserts one row into this table table, replacing an existing row if it exists already.Row, RS> , provided by the TableStatements extension -
insertOne(
Insertable< Row> row, {UpsertClause<Row, RS> ? onConflict}) → Future<int> -
Available on TableOrViewStatements<
Inserts one row into this table.Row, RS> , provided by the TableStatements extension -
insertReturning(
Insertable< Row> row, {UpsertClause<Row, RS> ? onConflict}) → Future<Row> -
Available on TableOrViewStatements<
Inserts one row into this table and returns it, along with auto-generated fields.Row, RS> , provided by the TableStatements extension -
insertReturningOrNull(
Insertable< Row> row, {UpsertClause<Row, RS> ? onConflict}) → Future<Row?> -
Available on TableOrViewStatements<
Inserts one row into this table and returns it, along with auto-generated fields.Row, RS> , provided by the TableStatements extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replaceOne(
Insertable< Row> row) → Future<void> -
Available on TableOrViewStatements<
Replaces a single row with an update statement.Row, RS> , provided by the TableStatements extension -
select(
{bool distinct = false}) → SingleTableSelectStatement< Row, RS> -
Composes a
SELECTstatement on the captured table or view. -
selectOnly(
{bool distinct = false}) → SelectStatement -
Composes a
SELECTstatement only selecting a subset of columns. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → UpdateStatement< Row, RS> -
Available on TableOrViewStatements<
Creates a statement to compose anRow, RS> , provided by the TableStatements extensionUPDATEinto the database.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited