Delete Statement
Represents a builder for constructing and executing a SQL DELETE statement.
This interface provides a fluent API to build a DELETE query by chaining methods like where(), orderBy(), and limit(). The query is executed by calling either execute() or executeReturning().
Instances of this interface are created via the KQLiteTable.delete() extension function.
Example:
// Create a DELETE statement
val statement = MyTable.delete()
// Build the query and execute it
statement
.where { it.status EQ "inactive" }
.orderBy(MyTable.lastLogin, Sort.ASC)
.limit(100)
.execute()Content copied to clipboard
Author
MOHAMMAD AZIM ANSARI
Type Parameters
T
The type of the KQLiteTable from which rows will be deleted.
See also
Functions
Link copied to clipboard
Executes the DELETE statement and returns a KQLiteCursor containing the data from the deleted rows, as specified by the RETURNING clause.
Link copied to clipboard
Same as calling orderBy(column, null)
Adds an ORDER BY clause to the DELETE statement, which is used in conjunction with LIMIT.