Method: Sequel::Database#disconnect

Defined in:
lib/sequel/database/connecting.rb

#disconnect(opts = OPTS) ⇒ Object

Disconnects all available connections from the connection pool. Any connections currently in use will not be disconnected. Options:

:server

Should be a symbol specifing the server to disconnect from,

or an array of symbols to specify multiple servers.

Example:

DB.disconnect # All servers
DB.disconnect(server: :server1) # Single server
DB.disconnect(server: [:server1, :server2]) # Multiple servers

206
207
208
# File 'lib/sequel/database/connecting.rb', line 206

def disconnect(opts = OPTS)
  pool.disconnect(opts)
end