Name
QBit::Application::Model::DB::clickhouse::Field - Class for ClickHouse fields.
Description
Implements work with ClickHouse fields.
Field types
Supported types
Date
UInt8
UInt32
UInt64
Enum8
Enum16
FixedString
Package methods
create_sql
Generate and returns a sql for field.
No arguments.
Return values:
$sql - string
quote
Arguments:
$value - scalar
Return values:
$value - scalar
Example:
my $value = $field->quote("it's ok"); # "'it\'s ok'"
$value = $field->quote(12); # 12
$value = $field->quote(undef); # 'NULL'
init_check
Check options for field.
No arguments.