class Miner::Config
- Miner::Config
- Reference
- Object
Defined in:
miner/config.crConstructors
-
.new(values : Hash(String, Int32 | String))
Create an object for storing database configuration
Instance Method Summary
-
#dsn : String
Build and output a database connection string using the config values
-
#get(key)
Retrieve a config value
-
#key?(key)
Check if a key exists within the config values
-
#set(key, value)
Set a config value
- #values : Hash(String, Int32 | String | Nil)
Constructor Detail
def self.new(values : Hash(String, Int32 | String))
#
Create an object for storing database configuration