How to disconnect an existing ruby sequel connection to a database?

Posted by MG on Stack Overflow See other posts from Stack Overflow or by MG
Published on 2010-05-06T18:08:16Z Indexed on 2010/05/06 18:48 UTC
Read the original article Hit count: 172

Filed under:
|

I mean the one which was previously established as

DB = Sequel.sqlite('my_blog.db')

or

DB = Sequel.connect('postgres://user:password@localhost/my_db')

or

DB = Sequel.postgres('my_db', :user => 'user', :password => 'password', :host => 'localhost')

or etcetera.

The Sequel::Database class has no public instance method called "disconnect" or so though it has "connect" one.

Maybe somebody already faced that problem. I would appreciate any idea.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about sequel