We want to use DB.synchronize to make multiple requests using the same 
connection. How do you use the `conn` variable passed to the synchronize 
block? Or do calls to DB inside the block automatically use the connection?

If it's the second (requests just automatically use the reserved 
connection), is there any to get access to the regular connection pool 
while inside that block? (We have some messy stuff where we want to make 
some queries outside of a transaction while the transaction is running.)

Related, given an instance of a Sequel::Model, how can we be sure that an 
`update` or `save` command uses a specific database connection?


(I think this sort of functionality would also be super useful for writing 
tests to check for race-conditions.)

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to