Enum klickhouse::Type
source · pub enum Type {
Show 37 variants
Int8,
Int16,
Int32,
Int64,
Int128,
Int256,
UInt8,
UInt16,
UInt32,
UInt64,
UInt128,
UInt256,
Float32,
Float64,
Decimal32(usize),
Decimal64(usize),
Decimal128(usize),
Decimal256(usize),
String,
FixedString(usize),
Uuid,
Date,
DateTime(Tz),
DateTime64(usize, Tz),
Ipv4,
Ipv6,
Point,
Ring,
Polygon,
MultiPolygon,
Enum8(Vec<(String, i8)>),
Enum16(Vec<(String, i16)>),
LowCardinality(Box<Type>),
Array(Box<Type>),
Tuple(Vec<Type>),
Nullable(Box<Type>),
Map(Box<Type>, Box<Type>),
}
Expand description
A raw Clickhouse type.
Variants§
Int8
Int16
Int32
Int64
Int128
Int256
UInt8
UInt16
UInt32
UInt64
UInt128
UInt256
Float32
Float64
Decimal32(usize)
Decimal64(usize)
Decimal128(usize)
Decimal256(usize)
String
FixedString(usize)
Uuid
Date
DateTime(Tz)
DateTime64(usize, Tz)
Ipv4
Ipv6
Point
Ring
Polygon
MultiPolygon
Enum8(Vec<(String, i8)>)
Not supported
Enum16(Vec<(String, i16)>)
Not supported
LowCardinality(Box<Type>)
Array(Box<Type>)
Tuple(Vec<Type>)
Nullable(Box<Type>)
Map(Box<Type>, Box<Type>)
Implementations§
source§impl Type
impl Type
pub fn unwrap_array(&self) -> &Type
pub fn unarray(&self) -> Option<&Type>
pub fn unwrap_map(&self) -> (&Type, &Type)
pub fn unmap(&self) -> Option<(&Type, &Type)>
pub fn unwrap_tuple(&self) -> &[Type]
pub fn untuple(&self) -> Option<&[Type]>
pub fn unnull(&self) -> Option<&Type>
pub fn strip_null(&self) -> &Type
pub fn is_nullable(&self) -> bool
pub fn default_value(&self) -> Value
pub fn strip_low_cardinality(&self) -> &Type
Trait Implementations§
source§impl PartialEq for Type
impl PartialEq for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.