DeleteStatement<Row extends Object, RS extends GeneratedTable<Row, RS>> class final

A DELETE statement in SQL.

Inheritance

Constructors

DeleteStatement(DatabaseConnectionUser _database, GeneratedTable<Row, RS> resultSet)
This constructor should be called by DatabaseConnectionUser.delete for you.

Properties

dialectSpecificOptions → Map<Symbol, Object?>
A map of dialect-specific options.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
resultSet → GeneratedTable<Row, RS>
The table from which rows should be deleted.
final
returning ↔ ReturningClause?
An optional RETURNING clause part of this statement.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
whereClause ↔ WhereClause?
The WhereClause filtering rows for this statement.
getter/setter pairinherited

Methods

asSelf() → DeleteStatement<Row, RS>
Returns this as Self.
compileWith(StatementCompiler compiler) → void
Compiles this component with the given StatementCompiler by invoking the relevant add method on it.
override
delete(Insertable<Row> entity) → Future<int>
Deletes just this entity. May not be used together with where.
deleteReturning(Insertable<Row> entity) → Future<Row?>
Like delete, but returns the deleted row from the database.
go() → Future<int>
Deletes all rows matched by the set where clause and the optional limit.
goAndReturn() → Future<List<Row>>
Like go, but it also returns all rows affected by this delete operation.
goAndReturnOnly(List<Expression<Object>> expressions) → Future<List<DriftRow>>
Like go, but it also returns expressions of all rows affected by this delete operation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
where(Expression<bool> filter(RS tbl)) → DeleteStatement<Row, RS>
Makes this statement only include rows that match the filter.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited