On Oct 7, 11:49 pm, coolesting <[email protected]> wrote:
> For example, how do you end up a ruby script with operating of database.

In general, you don't need to worry about this if your ruby script
only creates a single Database object, as the connection is
automatically closed when the ruby process exits.  If you are creating
multiple Database objects, you can use the block form of
Sequel.connect:

  Sequel.connect('connection_string') do |db|
    ...
  end

In this case, the database is automatically disconnected after the
block closes.

Jeremy

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