executeReturnKey

fun executeReturnKey(query: String, block: Execute.() -> Unit = {}): Long

Executes the given SQL query and returns the generated key.

Return

The generated key as a Long.

Parameters

query

The SQL query to execute.

block

Lambda function to configure the execution parameters and result validation.

Samples