I need to do some database insert operation and there are cases when that the db connection was not used for the period that's set as wait_timeout at the mysql server. I don't want to change that timeout but I want my write to succeed at the same time. Is there a way to put the DB.insert statement in begin...rescue...end block so that the insert is guaranteed to succeed. "rescue Sequel::DatabaseDisconnectError" I assume should be the rescue statement but I am not sure of the complete block.
Thanks -Azitabh -- 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/-/OcaSwWfvtUUJ. 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.
