Use assoc instead of merge
This commit is contained in:
parent
e85f627a00
commit
f4751f91e5
1 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@
|
|||
(rs/execute! connectable
|
||||
(sql/for-insert table key-map opts)
|
||||
(partial into {})
|
||||
(merge {:return-keys true} opts))))
|
||||
(assoc opts :return-keys true))))
|
||||
|
||||
(defn insert-multi!
|
||||
"Syntactic sugar over execute! to make inserting columns/rows easier.
|
||||
|
|
@ -223,7 +223,7 @@
|
|||
(rs/execute! connectable
|
||||
(sql/for-insert-multi table cols rows opts)
|
||||
(partial into {})
|
||||
(merge {:return-keys true} opts))))
|
||||
(assoc opts :return-keys true))))
|
||||
|
||||
(defn query
|
||||
"Syntactic sugar over execute! to provide a query alias.
|
||||
|
|
|
|||
Loading…
Reference in a new issue