Rename Driver#connection_pool_options to pool_options

This commit is contained in:
Brian J. Cardiff 2023-05-29 13:37:34 -03:00
parent b3683283d2
commit 0a08eace7a
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ module DB
def initialize(@driver : Driver, @uri : URI) def initialize(@driver : Driver, @uri : URI)
params = HTTP::Params.parse(uri.query || "") params = HTTP::Params.parse(uri.query || "")
@connection_options = @driver.connection_options(params) @connection_options = @driver.connection_options(params)
pool_options = @driver.connection_pool_options(params) pool_options = @driver.pool_options(params)
@setup_connection = ->(conn : Connection) {} @setup_connection = ->(conn : Connection) {}
factory = @driver.connection_builder(@uri) factory = @driver.connection_builder(@uri)

View file

@ -36,7 +36,7 @@ module DB
Connection::Options.from_http_params(params) Connection::Options.from_http_params(params)
end end
def connection_pool_options(params : HTTP::Params) : Pool::Options def pool_options(params : HTTP::Params) : Pool::Options
Pool::Options.from_http_params(params) Pool::Options.from_http_params(params)
end end
end end