class

Miner::Config

Inherits Reference < Object

Constructors

new(values : Hash(String, Int32 | String))

Create an object for storing database configuration

Source

Instance methods

dsn

Build and output a database connection string using the config values

Source
get(key)

Retrieve a config value

Source
key?(key)

Check if a key exists within the config values

Source
set(key, value)

Set a config value

Source
values
Source