# toExecutable

fun <T : Any, S : Statement<T>> S.toExecutable(): BlockingExecutable<T, S>

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

IllegalStateException

If the invoking statement does not have a corresponding built-in executable.