On May 6, 11:17 pm, deepak <[email protected]> wrote: > hi, > i have a mysql connection with a connection pool size of one. > how would DB.synchronize help, how is it used?
Sequel's designed with thread safety in mind, and DB.synchronize handles access to the connection pool. Even if you have a connection pool size of 1, you still need to use the thread safe methods. It's used just like I showed in the previous message. The block's argument is the underlying connection. > i was hoping for something like Dataset.import but with prepared > statement and returning the result/id of each insert. Sequel doesn't come with a method that does that. You can either use Dataset.import without prepared statements, or build something yourself with Sequel that does that, maybe starting with the code I gave in my initial response. 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.
