# buildStatement

fun <S> buildStatement(body: StatementBuilder.() -> S): S

Builder block for generating instances representing SQl statements, without the statement being sent to the database for execution.

    val insertTaskStatement = buildStatement {
        Tasks.insert {
            it[title] = "Follow Exposed tutorial"
            it[isComplete] = false
        }
    }

Content copied to clipboard