Hi there. Iβm trying to delete a row in a POSTGRESQL table with
(-> (helpers/delete-from :current-user)
(helpers/where [:= :user/id id] [:= :user/token token])
(sql/format :quoting :ansi))
but it seems that the default behaviour when used with next.jdbc/execute-one!
is to return {:update count 1}
. Is there a way for me to return the deleted row instead?Seek and ye shall find <https://github.com/seancorfield/honeysql/blob/24b87ebd69e756d910d38bece954f3e1d2de864d/test/honey/sql/postgres_test.cljc#L141>
(mind you, that is v2 of honeysql)
Thanks. I may upgrade to v2 if itβs stable enough.
I've been using it for a while (in admittingly non-production, but near to production) code. Works just like v1 π