db9010 / com.jovial.db9010 / InsertStatement / Builder

Builder

class Builder : StatementBuilder<Key>

A builder for an insert statement where the client code is interested in the ResultSet generated by the PreparedStatement. See Database.insertInto.

Constructors

<init>

A builder for an insert statement where the client code is interested in the ResultSet generated by the PreparedStatement. See Database.insertInto.

Builder(db: Database, table: Table, setBody: (InsertStatement) -> Unit)

Functions

run

Execute the underlying PreparedStatement, then call resultBody with a Result object containing the ResultSet generated by PreparedStatement.getGeneratedKeys

infix fun <T> run(resultBody: (Result) -> T): T