db9010 / com.jovial.db9010 / GenericStatement / Builder

Builder

class Builder : TextStatementBuilder<Key>

A builder for a generic statement. See Database.statement.

Constructors

<init>

A builder for a generic statement. See Database.statement.

Builder(db: Database)

Functions

getReusable

Gives a reference to a reusable statement object. This allows clients to avoid the (small) lookup overhead for a frequently-used statement.

fun getReusable(): ReusableGenericStatement

run

Call setBody to set any statement Parameter values, then call PreparedStatement.execute to run the SQL statement. If setBody sets a value for GenericStatement.resultHandler, call that with the result of PreparedStatement.execute.

infix fun run(setBody: (GenericStatement) -> Unit): Unit