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.
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
executeUpdateexecuteQuery?In function
run-query, theresult-setis used as proposed.