On Fri, Apr 19, 2013 at 4:33 AM, mynomoto <mynom...@gmail.com> wrote:
> I also like the new api design. You can just jdbc/execute! and jdbc/query
> everything. Or almost. I was trying:

Thanx.

> (jdbc/execute!
>   ["INSERT INTO fruits (name, color, flavor) VALUES (?, ?, ?)" ["apple"
> "red" "sweet"] ["pear" "yellow" "sweet"]])
>
> But that doesn't work. Should it? I know that jdbc/insert! works but it's
> not the same.

No, I would not expect that to work because execute! expects a vector
whose first element is a SQL string and whose remaining elements are
the individual parameters for that single operation. insert!
specifically runs multiple operations. It might be an interesting
enhancement to allow that form tho'...

One of the things that is not currently supported by the new API which
I'm still looking at is the multi-row insert (returning counts instead
of keys) that is possible with the original API.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to