method
resolve

resolve(config_or_env, pool_name = nil)
public
Returns a hash with database connection information.
Examples
Full hash Configuration.
configurations = { "production" => { "host" => "localhost", "database" => "foo", "adapter" => "sqlite3" } } Resolver.new(configurations).resolve(:production) # => { "host" => "localhost", "database" => "foo", "adapter" => "sqlite3"}
Initialized with URL configuration strings.
configurations = { "production" => "postgresql://localhost/foo" } Resolver.new(configurations).resolve(:production) # => { "host" => "localhost", "database" => "foo", "adapter" => "postgresql" }