DBConnection

Functions

Link copied to clipboard
fun execute(query: String, block: Execute.() -> Unit = {})
Link copied to clipboard
fun <T> executeBatch(query: String, elements: Iterable<T>, block: ExecuteBatch<T>.() -> Unit = {})
Link copied to clipboard
fun executeReturnKey(query: String, block: Execute.() -> Unit = {}): Long

Executes the given SQL query and returns the generated key.

Link copied to clipboard
fun executeReturnKeys(query: String, block: Execute.() -> Unit = {}): List<Long>
Link copied to clipboard
Link copied to clipboard
fun <T : Any> queryFirst(query: String, block: Query<T>.() -> Unit): T

Executes a query and retrieves the first result.

Link copied to clipboard
fun <T> queryFirstOrNull(query: String, block: Query<T>.() -> Unit): T?
Link copied to clipboard
fun <T : Any> queryList(query: String, block: Query<T>.() -> Unit): List<T>
Link copied to clipboard
fun <T : Any> querySet(query: String, block: Query<T>.() -> Unit): Set<T>