sql

Andrew 2023-10-27T00:03:50.241089Z

Is there a way to setup jdbc or honeySql so that when retrieving columns from the database with :select [:*] it automatically translates all column names from foo_bar to foo-bar?

Andrew 2023-10-28T17:19:59.578469Z

thanks, I have used

rs/as-unqualified-kebab-maps

lukasz 2023-10-27T00:05:43.389749Z

Yes, something like this:

(require '[next.jdbc :as jdbc]) 

(defn execute-one! [conn sql-vec]
  (jdbc/execute-one! conn sql-vec
                     jdbc/unqualified-snake-kebab-opts))