insertAndGetId

inline fun <Key : Any, T : IdTable<Key>> T.insertAndGetId(crossinline body: T.(InsertStatement<EntityID<Key>>) -> Unit): EntityID<Key>

Represents the SQL statement that inserts a new row into a table.

Return

The generated ID for the new row.

Samples

org.jetbrains.exposed.sql.tests.shared.dml.InsertTests.testGeneratedKey04