struct DB::Pool::Options

Defined in:

db/pool.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(initial_pool_size : Int32 = 1, max_pool_size : Int32 = 0, max_idle_pool_size : Int32 = 1, checkout_timeout : Float64 = 5.0, retry_attempts : Int32 = 1, retry_delay : Float64 = 0.2) #

[View source]

Class Method Detail

def self.from_http_params(params : HTTP::Params, default = Options.new) #

[View source]

Instance Method Detail

def checkout_timeout : Float64 #

def clone #

[View source]
def copy_with(initial_pool_size _initial_pool_size = @initial_pool_size, max_pool_size _max_pool_size = @max_pool_size, max_idle_pool_size _max_idle_pool_size = @max_idle_pool_size, checkout_timeout _checkout_timeout = @checkout_timeout, retry_attempts _retry_attempts = @retry_attempts, retry_delay _retry_delay = @retry_delay) #

[View source]
def initial_pool_size : Int32 #

def max_idle_pool_size : Int32 #

def max_pool_size : Int32 #

def retry_attempts : Int32 #

def retry_delay : Float64 #