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.
disconnect
method to be class method BTW. – DesirableDB
is aDatabase
, not aConnection
. Sequel's connection pools havedisconnect
method as well. – Desirable