class Data::Config

Defined in:

data/config.cr

Constant Summary

INFINITE = -1_i64

Constructors

Instance Method Summary

Instance methods inherited from class Object

to_toml : String to_toml

Constructor Detail

def self.from(cmd : Cmds::Cmd) : Config #

[View source]
def self.load(path : String, dryrun : Bool, logger : Logger) : Config #

[View source]
def self.new(toml, dryrun : Bool | Nil, logger : Logger | Nil = nil) #

[View source]

Instance Method Detail

def build_logger(v : Nil) : Logger #

[View source]
def build_logger(hash : Hash) : Logger #

[View source]
def build_logger(ary : Array) : Logger #

[View source]
def build_logger(v) : NoReturn #

[View source]
def build_logger : Logger #

[View source]
def ch_allow_errors_num #

[View source]
def ch_allow_errors_num=(v : Int64) #

[View source]
def ch_allow_errors_num=(v : Nil) #

[View source]
def ch_allow_errors_num? #

[View source]
def ch_client : Ch::Client #

[View source]
def ch_db #

[View source]
def ch_db=(v : String) #

[View source]
def ch_db=(v : Nil) #

[View source]
def ch_db? #

[View source]
def ch_engine #

[View source]
def ch_engine=(v : String) #

[View source]
def ch_engine=(v : Nil) #

[View source]
def ch_engine? #

[View source]
def ch_host #

[View source]
def ch_host=(v : String) #

[View source]
def ch_host=(v : Nil) #

[View source]
def ch_host? #

[View source]
def ch_password #

[View source]
def ch_password=(v : String) #

[View source]
def ch_password=(v : Nil) #

[View source]
def ch_password? #

[View source]
def ch_port #

[View source]
def ch_port=(v : Int64) #

[View source]
def ch_port=(v : Nil) #

[View source]
def ch_port? #

[View source]
def ch_replace_query #

[View source]
def ch_replace_query=(v : String) #

[View source]
def ch_replace_query=(v : Nil) #

[View source]
def ch_replace_query? #

[View source]
def ch_ttl_data : Int64 #

[View source]
def ch_ttl_data=(v : Int64) #

[View source]
def ch_ttl_data=(v : Nil) #

[View source]
def ch_ttl_data? #

[View source]
def ch_user #

[View source]
def ch_user=(v : String) #

[View source]
def ch_user=(v : Nil) #

[View source]
def ch_user? #

[View source]
def clickhouse_client(*args, **options) #

[View source]
def clickhouse_client(*args, **options, &) #

[View source]
def dryrun(msg : String) #

[View source]
def dryrun : Bool #

def dryrun=(v : Bool) : Bool #

def dryrun=(v : Nil) #

nil assignments are always ignored


def dryrun? : Bool #

def logger : Logger #

def logger=(v : Logger) : Logger #

def logger=(v : Nil) #

nil assignments are always ignored


def logger? : Logger | Nil #

def path : String #

def path=(v : String) : String #

def path=(v : Nil) #

nil assignments are always ignored


def path? : String | Nil #

def pg_before_sql : String #

[View source]
def pg_before_sql=(v : String) #

[View source]
def pg_before_sql=(v : Nil) #

[View source]
def pg_before_sql? #

[View source]
def pg_client : Pg::Client #

[View source]
def pg_db #

[View source]
def pg_db=(v : String) #

[View source]
def pg_db=(v : Nil) #

[View source]
def pg_db? #

[View source]
def pg_host #

[View source]
def pg_host=(v : String) #

[View source]
def pg_host=(v : Nil) #

[View source]
def pg_host? #

[View source]
def pg_ignore_pg_catalog : Bool #

[View source]
def pg_ignore_pg_catalog=(v : Bool) #

[View source]
def pg_ignore_pg_catalog=(v : Nil) #

[View source]
def pg_ignore_pg_catalog? #

[View source]
def pg_max_record_size : Int64 #

[View source]
def pg_max_record_size=(v : Int64) #

[View source]
def pg_max_record_size=(v : Nil) #

[View source]
def pg_max_record_size? #

[View source]
def pg_port #

[View source]
def pg_port=(v : Int64) #

[View source]
def pg_port=(v : Nil) #

[View source]
def pg_port? #

[View source]
def pg_psql : String #

[View source]
def pg_psql=(v : String) #

[View source]
def pg_psql=(v : Nil) #

[View source]
def pg_psql? #

[View source]
def pg_ttl_count : Int64 #

[View source]
def pg_ttl_count=(v : Int64) #

[View source]
def pg_ttl_count=(v : Nil) #

[View source]
def pg_ttl_count? #

[View source]
def pg_ttl_data : Int64 #

[View source]
def pg_ttl_data=(v : Int64) #

[View source]
def pg_ttl_data=(v : Nil) #

[View source]
def pg_ttl_data? #

[View source]
def pg_ttl_meta : Int64 #

[View source]
def pg_ttl_meta=(v : Int64) #

[View source]
def pg_ttl_meta=(v : Nil) #

[View source]
def pg_ttl_meta? #

[View source]
def pg_user #

[View source]
def pg_user=(v : String) #

[View source]
def pg_user=(v : Nil) #

[View source]
def pg_user? #

[View source]
def psql(*args, **options) #

[View source]
def psql(*args, **options, &) #

[View source]
def resolve(tmpl : String, group : String) #

[View source]
def table_recipes : Hash(String, Recipe) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def table_recipes=(v : Hash(String, Recipe)) : Hash(String, Recipe) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def table_recipes=(v : Nil) #

nil assignments are always ignored


def table_recipes? : Hash(String, Recipe) | Nil #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def to_toml : String #

[View source]