db9010 / com.jovial.db9010 / ReusableSelectQuery

ReusableSelectQuery

class ReusableSelectQuery

A select query 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.select every time the same statement is run.

Functions

run

Run the query, in the same was as is done by SelectQuery.Builder.run for non-reusable query objects.

infix fun <T> run(body: (SelectQuery) -> T): T