Class: ClickhouseRuby::Types::Boolean
- Includes:
- NullSafe
- Defined in:
- lib/clickhouse_ruby/types/boolean.rb
Overview
Type handler for ClickHouse Bool type
ClickHouse Bool is internally stored as UInt8 (0 or 1) but can accept various truthy/falsy values.
Constant Summary collapse
- TRUE_VALUES =
Values that represent true
[true, 1, "1", "true", "TRUE", "True", "t", "T", "yes", "YES", "Yes", "y", "Y", "on", "ON", "On",].freeze
- FALSE_VALUES =
Values that represent false
[false, 0, "0", "false", "FALSE", "False", "f", "F", "no", "NO", "No", "n", "N", "off", "OFF", "Off",].freeze
Instance Attribute Summary
Attributes inherited from Base
Method Summary
Methods included from NullSafe
#cast, #deserialize, #serialize
Methods inherited from Base
#==, #cast, #deserialize, #hash, #initialize, #nullable?, #serialize, #to_s
Constructor Details
This class inherits a constructor from ClickhouseRuby::Types::Base