toExecutable
Returns the associated BlockingExecutable that accepts this Statement type as an argument, allowing the provided statement to be then sent to the database for execution.
transaction {
val insertTaskStatement = buildStatement {
Tasks.insert {
it[title] = "Follow Exposed tutorial"
it[isComplete] = false
}
}
exec(insertTask.toExecutable())
}
Content copied to clipboard
Throws
If the invoking statement does not have a corresponding built-in executable.