Merge pull request #292 from devurandom/ds/fix-3ed1f4b99c975b556327d1abb9b387db8a6d93a6
Fix documentation of next.jdbc/execute-batch!
This commit is contained in:
commit
d71a3b6423
1 changed files with 4 additions and 4 deletions
|
|
@ -117,8 +117,8 @@ will use `execute-batch!` under the hood, instead of `execute!`, as follows:
|
|||
{:batch true})
|
||||
;; equivalent to
|
||||
(jdbc/execute-batch! ds
|
||||
["INSERT INTO address (name,email) VALUES (?,?)"
|
||||
["Stella" "stella@artois.beer"]
|
||||
"INSERT INTO address (name,email) VALUES (?,?)"
|
||||
[["Stella" "stella@artois.beer"]
|
||||
["Waldo" "waldo@lagunitas.beer"]
|
||||
["Aunt Sally" "sour@lagunitas.beer"]]
|
||||
{:return-keys true :return-generated-keys true})
|
||||
|
|
@ -131,8 +131,8 @@ will use `execute-batch!` under the hood, instead of `execute!`, as follows:
|
|||
{:batch true})
|
||||
;; equivalent to
|
||||
(jdbc/execute-batch! ds
|
||||
["INSERT INTO address (name,email) VALUES (?,?)"
|
||||
["Stella" "stella@artois.beer"]
|
||||
"INSERT INTO address (name,email) VALUES (?,?)"
|
||||
[["Stella" "stella@artois.beer"]
|
||||
["Waldo" "waldo@lagunitas.beer"]
|
||||
["Aunt Sally" "sour@lagunitas.beer"]]
|
||||
{:return-keys true :return-generated-keys true})
|
||||
|
|
|
|||
Loading…
Reference in a new issue