pub enum ColumnDef {
Show 39 variants
String(&'static str),
FixedString(&'static str),
UInt8(&'static str),
UInt16(&'static str),
UInt32(&'static str),
UInt64(&'static str),
UInt128(&'static str),
UInt256(&'static str),
Int8(&'static str),
Int16(&'static str),
Int32(&'static str),
Int64(&'static str),
Int128(&'static str),
Int256(&'static str),
Float32(&'static str),
Float64(&'static str),
Date(&'static str),
Date32(&'static str),
DateTime(&'static str),
DateTime64(&'static str),
Boolean(&'static str),
UUID(&'static str),
ArrayString(&'static str),
ArrayUInt8(&'static str),
ArrayUInt16(&'static str),
ArrayUInt32(&'static str),
ArrayUInt64(&'static str),
ArrayInt8(&'static str),
ArrayInt16(&'static str),
ArrayInt32(&'static str),
ArrayInt64(&'static str),
ArrayFloat32(&'static str),
ArrayFloat64(&'static str),
Enum8(&'static str),
Enum16(&'static str),
IPv4(&'static str),
IPv6(&'static str),
Decimal(&'static str),
JSON(&'static str),
}
Expand description
ColumnDef enum represents different ClickHouse column types
This is used to provide type-aware filtering and ensure correct SQL is generated for different data types.
Variants§
String(&'static str)
FixedString(&'static str)
UInt8(&'static str)
UInt16(&'static str)
UInt32(&'static str)
UInt64(&'static str)
UInt128(&'static str)
UInt256(&'static str)
Int8(&'static str)
Int16(&'static str)
Int32(&'static str)
Int64(&'static str)
Int128(&'static str)
Int256(&'static str)
Float32(&'static str)
Float64(&'static str)
Date(&'static str)
Date32(&'static str)
DateTime(&'static str)
DateTime64(&'static str)
Boolean(&'static str)
UUID(&'static str)
ArrayString(&'static str)
ArrayUInt8(&'static str)
ArrayUInt16(&'static str)
ArrayUInt32(&'static str)
ArrayUInt64(&'static str)
ArrayInt8(&'static str)
ArrayInt16(&'static str)
ArrayInt32(&'static str)
ArrayInt64(&'static str)
ArrayFloat32(&'static str)
ArrayFloat64(&'static str)
Enum8(&'static str)
Enum16(&'static str)
IPv4(&'static str)
IPv6(&'static str)
Decimal(&'static str)
JSON(&'static str)
Implementations§
Source§impl ColumnDef
Placeholder implementation (to be expanded)
impl ColumnDef
Placeholder implementation (to be expanded)
pub fn get_column_name(&self) -> String
pub fn to_filter_condition( &self, operator: &str, value: &str, ) -> Result<FilterCondition>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColumnDef
impl RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnwindSafe for ColumnDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more