active-group/sqlosure

Return row / id of newly inserted row.

kaaninho opened this issue · 0 comments

Current insert! behaviour (code here):
After an insert happens, an integer ("the row count for SQL Data Manipulation Language (DML) statements" see here https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String) ) is returned.

What would be nice to be returned: The inserted row itself.

Maybe use instead of executeUpdate executeQuery?
In function run-query, the result-set is used as proposed.