execute

abstract fun execute()

Executes the final UPDATE statement.

This is a terminal operation that compiles and runs the UPDATE query constructed through the fluent API. It applies the changes to the database but does not return any data from the affected rows.

For operations that require retrieving data from the updated rows, use executeReturning instead.

Example

// Update the status for all pending orders.
Orders
.update {
it.status.bind("processing")
}.where {
it.status EQ "pending"
}.execute()

Author

MOHAMMAD AZIM ANSARI

See also