Sorry for yet more questions, but I can't figure put how to get
transactions to work on a shard.

I retrieve two models from (say) :server1, modify them and want to
save them in a transaction.

DB.transaction do
  client.save
  address.save
end

The BEGIN TRANSACTION and COMMIT of course are issued against
the :default database not :server1, while the two models are updated
in :server1 correctly, but independently.

I figure there must be a straightforward way of doing this as it's a
bit fundamental, but I'm missing it at the moment.

I would issue a DB.run('BEGIN TRANSACTION') in the right database as a
workaround, but I can't seem to do that either (previous post).

Again, any help appreciated and thanks for your patience.

Regards,
Gary.

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