class Data::Config
- Data::Config
- TOML::Config
- Reference
- Object
Defined in:
data/config.crConstant Summary
-
INFINITE =
-1_i64
Constructors
- .from(cmd : Cmds::Cmd) : Config
- .load(path : String, dryrun : Bool, logger : Logger) : Config
- .new(toml, dryrun : Bool | Nil, logger : Logger | Nil = nil)
Instance Method Summary
- #build_logger(v : Nil) : Logger
- #build_logger(hash : Hash) : Logger
- #build_logger(ary : Array) : Logger
- #build_logger(v) : NoReturn
- #build_logger : Logger
- #ch_allow_errors_num
- #ch_allow_errors_num=(v : Int64)
- #ch_allow_errors_num=(v : Nil)
- #ch_allow_errors_num?
- #ch_client : Ch::Client
- #ch_db
- #ch_db=(v : String)
- #ch_db=(v : Nil)
- #ch_db?
- #ch_engine
- #ch_engine=(v : String)
- #ch_engine=(v : Nil)
- #ch_engine?
- #ch_host
- #ch_host=(v : String)
- #ch_host=(v : Nil)
- #ch_host?
- #ch_password
- #ch_password=(v : String)
- #ch_password=(v : Nil)
- #ch_password?
- #ch_port
- #ch_port=(v : Int64)
- #ch_port=(v : Nil)
- #ch_port?
- #ch_replace_query
- #ch_replace_query=(v : String)
- #ch_replace_query=(v : Nil)
- #ch_replace_query?
- #ch_ttl_data : Int64
- #ch_ttl_data=(v : Int64)
- #ch_ttl_data=(v : Nil)
- #ch_ttl_data?
- #ch_user
- #ch_user=(v : String)
- #ch_user=(v : Nil)
- #ch_user?
- #clickhouse_client(*args, **options)
- #clickhouse_client(*args, **options, &)
- #dryrun(msg : String)
- #dryrun : Bool
- #dryrun=(v : Bool) : Bool
-
#dryrun=(v : Nil)
nil
assignments are always ignored - #dryrun? : Bool
- #logger : Logger
- #logger=(v : Logger) : Logger
-
#logger=(v : Nil)
nil
assignments are always ignored - #logger? : Logger | Nil
- #path : String
- #path=(v : String) : String
-
#path=(v : Nil)
nil
assignments are always ignored - #path? : String | Nil
- #pg_before_sql : String
- #pg_before_sql=(v : String)
- #pg_before_sql=(v : Nil)
- #pg_before_sql?
- #pg_client : Pg::Client
- #pg_db
- #pg_db=(v : String)
- #pg_db=(v : Nil)
- #pg_db?
- #pg_host
- #pg_host=(v : String)
- #pg_host=(v : Nil)
- #pg_host?
- #pg_ignore_pg_catalog : Bool
- #pg_ignore_pg_catalog=(v : Bool)
- #pg_ignore_pg_catalog=(v : Nil)
- #pg_ignore_pg_catalog?
- #pg_max_record_size : Int64
- #pg_max_record_size=(v : Int64)
- #pg_max_record_size=(v : Nil)
- #pg_max_record_size?
- #pg_port
- #pg_port=(v : Int64)
- #pg_port=(v : Nil)
- #pg_port?
- #pg_psql : String
- #pg_psql=(v : String)
- #pg_psql=(v : Nil)
- #pg_psql?
- #pg_ttl_count : Int64
- #pg_ttl_count=(v : Int64)
- #pg_ttl_count=(v : Nil)
- #pg_ttl_count?
- #pg_ttl_data : Int64
- #pg_ttl_data=(v : Int64)
- #pg_ttl_data=(v : Nil)
- #pg_ttl_data?
- #pg_ttl_meta : Int64
- #pg_ttl_meta=(v : Int64)
- #pg_ttl_meta=(v : Nil)
- #pg_ttl_meta?
- #pg_user
- #pg_user=(v : String)
- #pg_user=(v : Nil)
- #pg_user?
- #psql(*args, **options)
- #psql(*args, **options, &)
- #resolve(tmpl : String, group : String)
-
#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"
-
#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? : 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"
- #to_toml : String
Instance methods inherited from class Object
to_toml : String
to_toml
Constructor Detail
Instance Method Detail
var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"
var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"
var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"