class Miner::Config

Defined in:

miner/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(values : Hash(String, Int32 | String)) #

Create an object for storing database configuration


[View source]

Instance Method Detail

def dsn : String #

Build and output a database connection string using the config values


[View source]
def get(key) #

Retrieve a config value


[View source]
def key?(key) #

Check if a key exists within the config values


[View source]
def set(key, value) #

Set a config value


[View source]
def values : Hash(String, Int32 | String | Nil) #

[View source]