Module: Sequel::TemporarilyReleaseConnection::DatabaseMethods
- Defined in:
- lib/sequel/extensions/temporarily_release_connection.rb
Instance Method Summary collapse
-
#temporarily_release_connection(conn, server = :default, &block) ⇒ Object
Temporarily release the connection back to the connection pool for the duration of the block.
Instance Method Details
#temporarily_release_connection(conn, server = :default, &block) ⇒ Object
Temporarily release the connection back to the connection pool for the duration of the block.
58 59 60 |
# File 'lib/sequel/extensions/temporarily_release_connection.rb', line 58 def temporarily_release_connection(conn, server=:default, &block) pool.temporarily_release_connection(conn, server, &block) end |