https://kotlinlang.org logo
j

Jacob Richards

09/15/2019, 10:21 PM
is it possible to return the entire row you’ve just inserted with .insert? I know there’s insertAndGetId, but I want to return the entire row.
s

spand

09/16/2019, 7:08 AM
I guess the reason why you need the roundtrip is that the database might have default values.
k

kushalp

09/16/2019, 8:00 AM
You could write it as raw SQL with
RETURNING ( ... )
t

tapac

09/16/2019, 9:35 AM
@Jacob Richards, try to check
resultedValues
of
InsertStatement
returned from
insert
function
❤️ 1
2 Views