generatedValues

abstract fun generatedValues(vararg columns: String): Map<String, Any>(source)

Executes the statement and returns one row of values generated on the database side, such as an auto-increment ID. The map keys and value types are those reported by the configured driver and may differ from the requested column names.

Fails with an exception if the driver returns no generated-value row or more than one row.

Parameters

columns

generated columns to request from the driver; when empty, the driver's default set is requested