On Apr 9, 2:42 am, ivanb <[email protected]> wrote:
> DB.run ("insert into test (x,y) values(?,?)",3,4)
DB["insert into test (x,y) values(?,?)",3,4].insert
> DB.run ("insert into test (x,y) values(?,?)",a)
a = [1, 2]
DB["insert into test (x,y) values(?,?)", *a].insert
> DB.run ("insert into test (x,y) values(:x,:y)",a)
a = {:x=>1, :y=>2}
DB["insert into test (x,y) values(:x,:y)", a].insert
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.