active-group / active-group/sqlosure
Return row / id of newly inserted row.
- Lingua principale
- Clojure
- Stelle
- 7
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Current `insert!` behaviour ([code here](https://github.com/active-group/sqlosure/blob/957fad941c189692a6446c4d6fb6a971db96c724/src/sqlosure/db_connection.clj#L281)):
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.