class

Data::Config

Inherits TOML::Config < Reference < Object

Constants

INFINITE = -1_i64

Constructors

from(cmd : Cmds::Cmd) : Config
Source
load(path : String, dryrun : Bool, logger : Logger) : Config
Source
new(toml, dryrun : Bool | Nil, logger : Logger | Nil = nil)
Source

Instance methods

build_logger(v : Nil) : Logger
Source
build_logger(hash : Hash) : Logger
Source
build_logger(ary : Array) : Logger
Source
build_logger(v) : NoReturn
Source
build_logger
Source
ch_allow_errors_num
Source
ch_allow_errors_num=(v : Int64)
Source
ch_allow_errors_num=(v : Nil)
Source
ch_allow_errors_num?
Source
ch_client
Source
ch_db
Source
ch_db=(v : String)
Source
ch_db=(v : Nil)
Source
ch_db?
Source
ch_engine
Source
ch_engine=(v : String)
Source
ch_engine=(v : Nil)
Source
ch_engine?
Source
ch_host
Source
ch_host=(v : String)
Source
ch_host=(v : Nil)
Source
ch_host?
Source
ch_password
Source
ch_password=(v : String)
Source
ch_password=(v : Nil)
Source
ch_password?
Source
ch_port
Source
ch_port=(v : Int64)
Source
ch_port=(v : Nil)
Source
ch_port?
Source
ch_replace_query
Source
ch_replace_query=(v : String)
Source
ch_replace_query=(v : Nil)
Source
ch_replace_query?
Source
ch_ttl_data
Source
ch_ttl_data=(v : Int64)
Source
ch_ttl_data=(v : Nil)
Source
ch_ttl_data?
Source
ch_user
Source
ch_user=(v : String)
Source
ch_user=(v : Nil)
Source
ch_user?
Source
clickhouse_client(*args, **options)
Source
clickhouse_client(*args, **options, &)
Source
dryrun(msg : String)
Source
dryrun
dryrun=(v : Bool) : Bool
dryrun=(v : Nil)

nil assignments are always ignored

dryrun?
logger
logger=(v : Logger) : Logger
logger=(v : Nil)

nil assignments are always ignored

logger?
path
path=(v : String) : String
path=(v : Nil)

nil assignments are always ignored

path?
pg_before_sql
Source
pg_before_sql=(v : String)
Source
pg_before_sql=(v : Nil)
Source
pg_before_sql?
Source
pg_client
Source
pg_db
Source
pg_db=(v : String)
Source
pg_db=(v : Nil)
Source
pg_db?
Source
pg_host
Source
pg_host=(v : String)
Source
pg_host=(v : Nil)
Source
pg_host?
Source
pg_ignore_pg_catalog
Source
pg_ignore_pg_catalog=(v : Bool)
Source
pg_ignore_pg_catalog=(v : Nil)
Source
pg_ignore_pg_catalog?
Source
pg_max_record_size
Source
pg_max_record_size=(v : Int64)
Source
pg_max_record_size=(v : Nil)
Source
pg_max_record_size?
Source
pg_port
Source
pg_port=(v : Int64)
Source
pg_port=(v : Nil)
Source
pg_port?
Source
pg_psql
Source
pg_psql=(v : String)
Source
pg_psql=(v : Nil)
Source
pg_psql?
Source
pg_ttl_count
Source
pg_ttl_count=(v : Int64)
Source
pg_ttl_count=(v : Nil)
Source
pg_ttl_count?
Source
pg_ttl_data
Source
pg_ttl_data=(v : Int64)
Source
pg_ttl_data=(v : Nil)
Source
pg_ttl_data?
Source
pg_ttl_meta
Source
pg_ttl_meta=(v : Int64)
Source
pg_ttl_meta=(v : Nil)
Source
pg_ttl_meta?
Source
pg_user
Source
pg_user=(v : String)
Source
pg_user=(v : Nil)
Source
pg_user?
Source
psql(*args, **options)
Source
psql(*args, **options, &)
Source
resolve(tmpl : String, group : String)
Source
table_recipes

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

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"

table_recipes=(v : Nil)

nil assignments are always ignored

table_recipes?

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

to_toml
Source