Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added support for returning keys from batch insert
  • Loading branch information
ibarrick committed Jun 14, 2018
commit 0758c1091d1d1fb0e0ba288c8a38184ea1f6d23c
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/java.jdbc "0.5.8"]
[org.clojure/java.jdbc "0.7.6"]
[instaparse "1.4.1" :exclusions [org.clojure/clojure]]]
:pedantic? :abort
:scm {:name "git"
Expand Down
2 changes: 1 addition & 1 deletion src/yesql/generate.clj
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
(defn insert-handler
[db statement-and-params call-options]
(if (vector? (second statement-and-params))
(apply jdbc/db-do-prepared db statement-and-params)
(jdbc/execute! db statement-and-params {:multi? true :return-keys true})
(jdbc/db-do-prepared-return-keys db statement-and-params)))

(defn query-handler
Expand Down