On Monday, February 25, 2013 5:47:26 AM UTC-8, Tom Demeyer wrote: > > Thanks, all. > I do seem to have some success calling database.disconnect, but I am > unsure where exactly to call it.. > Excuse my inexperience with things sinatra and sequel; now disconnecting > in the SInatra 'after' call, but this feels not right somehow. > And I do get the occasional database disconnected error.. > best,t. >
That's definitely not right. You want to call it before forking. Maybe call it after loading all of your model classes? Jeremy -- 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 http://groups.google.com/group/sequel-talk?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
