db9010 / com.jovial.db9010 / ReusableDeleteStatement

ReusableDeleteStatement

class ReusableDeleteStatement

A delete statement that can be stored in a variable, and used multipe times. This saves the (small) overhead of a hash table lookup that's incurred when using Database.deleteFrom every time the same statement is run.

Constructors

<init>

A delete statement that can be stored in a variable, and used multipe times. This saves the (small) overhead of a hash table lookup that's incurred when using Database.deleteFrom every time the same statement is run.

ReusableDeleteStatement(statement: PreparedStatement, parameters: List<Parameter<*>>)

Functions

run

Run setBody to set any needed Parameter values on the delete statement, then execute the statement. See Database.deleteFrom.

infix fun run(setBody: (DeleteStatement) -> Unit): Int