exposed
Toggle table of contents
1.0.0-rc-1
jvm
Platform filter
jvm
Switch theme
Search in API
exposed
exposed-jdbc
/
org.jetbrains.exposed.v1.jdbc
/
insertAndGetId
insert
And
Get
Id
fun
<
Key
:
Any
,
T
:
IdTable
<
Key
>
>
T
.
insertAndGetId
(
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.v1.tests.shared.dml.InsertTests.testGeneratedKey04