On Friday, April 27, 2012 10:07:34 AM UTC-7, Rodrigo Rosenfeld Rosas wrote: > > > So would the DB.disconnect be called in an at_exit hook? I guess it would > automatically close the connections on program exit without automatically > committing changes, right? So I might just ignore the 'DB.disconnect' code > I guess... >
The sockets should automatically be closed on process exit, and since the transactions weren't committed, they should automatically be rolled back. If you want to be manually send the rollback queries before exiting, you can add at_exit hooks inside after_connect that do that. The only issue there is if a connection was disconnected before process exit. I don't think sending the rollback queries manually is necessary, though. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/w9Fr9IHx5IUJ. 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.
