Method: Sequel::SingleThreadedPool#initialize
- Defined in:
- lib/sequel_core/connection_pool.rb
#initialize(opts = {}, &block) ⇒ SingleThreadedPool
Initializes the instance with the supplied block as the connection_proc.
The single threaded pool takes the following options:
-
:pool_convert_exceptions - Whether to convert non-StandardError based exceptions to RuntimeError exceptions (default true)
171 172 173 174 |
# File 'lib/sequel_core/connection_pool.rb', line 171 def initialize(opts={}, &block) @connection_proc = block @convert_exceptions = opts.include?(:pool_convert_exceptions) ? opts[:pool_convert_exceptions] : true end |