hi,
i have a mysql connection with a connection pool size of one.
how would DB.synchronize help, how is it used?

i was hoping for something like Dataset.import but with prepared
statement and returning the result/id of each insert.

thanks,
deepak


On May 5, 10:25 am, Jeremy Evans <[email protected]> wrote:
> On May 4, 9:52 pm, deepak kannan <[email protected]> wrote:
>
> > hi,
> > ok that is possible but really wanted to make a prepared statement with
> > multiple tuples and the result for each of them. need this for a bulk import
> > functionality.
>
> > would it help if i try the jdbc apapter?
>
> On all adapters, you can get the underlying connection via
> DB.synchronize:
>
>   DB.synchronize do |conn|
>
>   end
>
> So if you have code that works directly against a JDBC connection, you
> can basically just reuse it inside that block.
>
> 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 
> athttp://groups.google.com/group/sequel-talk?hl=en.

-- 
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.

Reply via email to