mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Rename Driver#connection_pool_options to pool_options
This commit is contained in:
parent
b3683283d2
commit
0a08eace7a
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue