class

DB::Pool(T)

Inherits Reference / Object

Constructors

new(pool_options : Options = Options.new, &factory : -> T)
Source
new(initial_pool_size = 1, max_pool_size = 0, max_idle_pool_size = 1, checkout_timeout = 5.0, retry_attempts = 1, retry_delay = 0.2, &factory : -> T)

DEPRECATED Use #new with DB::Pool::Options instead

Source

Instance methods

checkout
Source
checkout
Source
close

close all resources in the pool

Source
release(resource : T) : Nil
Source
stats

Returns stats of the pool

Source

Nested types