capturingLastInsertId

fun Database.capturingLastInsertId(block: Database.() -> Unit): Long

Runs block, typically an insert, and returns the id of the last inserted row.

Sources

Link copied to clipboard