pub enum ClickHouseTypeSystem {
Show 38 variants
Int8(bool),
Int16(bool),
Int32(bool),
Int64(bool),
UInt8(bool),
UInt16(bool),
UInt32(bool),
UInt64(bool),
Float32(bool),
Float64(bool),
Decimal(bool),
String(bool),
FixedString(bool),
Date(bool),
Date32(bool),
Time(bool),
Time64(bool),
DateTime(bool),
DateTime64(bool),
Enum8(bool),
Enum16(bool),
UUID(bool),
IPv4(bool),
IPv6(bool),
Bool(bool),
ArrayBool(bool),
ArrayString(bool),
ArrayInt8(bool),
ArrayInt16(bool),
ArrayInt32(bool),
ArrayInt64(bool),
ArrayUInt8(bool),
ArrayUInt16(bool),
ArrayUInt32(bool),
ArrayUInt64(bool),
ArrayFloat32(bool),
ArrayFloat64(bool),
ArrayDecimal(bool),
}Expand description
Column types of the ClickHouse source. The bool is true when the column is nullable.
Variants§
Int8(bool)
ClickHouse Int8, read as i8.
Int16(bool)
ClickHouse Int16, read as i16.
Int32(bool)
ClickHouse Int32, read as i32.
Int64(bool)
ClickHouse Int64, read as i64.
UInt8(bool)
ClickHouse UInt8, read as u8.
UInt16(bool)
ClickHouse UInt16, read as u16.
UInt32(bool)
ClickHouse UInt32, read as u32.
UInt64(bool)
ClickHouse UInt64, read as u64.
Float32(bool)
ClickHouse Float32, read as f32.
Float64(bool)
ClickHouse Float64, read as f64.
Decimal(bool)
ClickHouse Decimal(P, S), read as Decimal.
String(bool)
ClickHouse String, read as String. Also the fallback for types not listed here.
FixedString(bool)
ClickHouse FixedString(N), read as Vec<u8>.
Date(bool)
ClickHouse Date, read as NaiveDate.
Date32(bool)
ClickHouse Date32, read as NaiveDate.
Time(bool)
ClickHouse Time, read as NaiveTime.
Time64(bool)
ClickHouse Time64(P), read as NaiveTime.
DateTime(bool)
ClickHouse DateTime, read as DateTime<Utc>.
DateTime64(bool)
ClickHouse DateTime64(P), read as DateTime<Utc>.
Enum8(bool)
ClickHouse Enum8, read as the variant name (String).
Enum16(bool)
ClickHouse Enum16, read as the variant name (String).
UUID(bool)
ClickHouse UUID, read as Uuid.
IPv4(bool)
ClickHouse IPv4, read as IpAddr.
IPv6(bool)
ClickHouse IPv6, read as IpAddr.
Bool(bool)
ClickHouse Bool, read as bool.
ArrayBool(bool)
ClickHouse Array(Bool), read as Vec<Option<bool>>.
ArrayString(bool)
ClickHouse Array(String), read as Vec<Option<String>>.
ArrayInt8(bool)
ClickHouse Array(Int8), read as Vec<Option<i8>>.
ArrayInt16(bool)
ClickHouse Array(Int16), read as Vec<Option<i16>>.
ArrayInt32(bool)
ClickHouse Array(Int32), read as Vec<Option<i32>>.
ArrayInt64(bool)
ClickHouse Array(Int64), read as Vec<Option<i64>>.
ArrayUInt8(bool)
ClickHouse Array(UInt8), read as Vec<Option<u8>>.
ArrayUInt16(bool)
ClickHouse Array(UInt16), read as Vec<Option<u16>>.
ArrayUInt32(bool)
ClickHouse Array(UInt32), read as Vec<Option<u32>>.
ArrayUInt64(bool)
ClickHouse Array(UInt64), read as Vec<Option<u64>>.
ArrayFloat32(bool)
ClickHouse Array(Float32), read as Vec<Option<f32>>.
ArrayFloat64(bool)
ClickHouse Array(Float64), read as Vec<Option<f64>>.
ArrayDecimal(bool)
ClickHouse Array(Decimal), read as Vec<Option<Decimal>>.
Implementations§
Source§impl ClickHouseTypeSystem
impl ClickHouseTypeSystem
Sourcepub fn from_type_str_with_metadata(type_str: &str) -> (Self, TypeMetadata)
pub fn from_type_str_with_metadata(type_str: &str) -> (Self, TypeMetadata)
Parse a ClickHouse type string such as Nullable(Decimal(18, 4)) into a type and its metadata.
Sourcepub fn from_type_str(type_str: &str) -> Self
pub fn from_type_str(type_str: &str) -> Self
Parse a ClickHouse type string, discarding the metadata.
Sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
Whether the column is nullable.
Trait Implementations§
Source§impl Clone for ClickHouseTypeSystem
impl Clone for ClickHouseTypeSystem
impl Copy for ClickHouseTypeSystem
Auto Trait Implementations§
impl Freeze for ClickHouseTypeSystem
impl RefUnwindSafe for ClickHouseTypeSystem
impl Send for ClickHouseTypeSystem
impl Sync for ClickHouseTypeSystem
impl Unpin for ClickHouseTypeSystem
impl UnsafeUnpin for ClickHouseTypeSystem
impl UnwindSafe for ClickHouseTypeSystem
Blanket Implementations§
impl<T> Allocation for T
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.impl<T> PlanCallbackArgs for T
impl<T> PlanCallbackOut for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<Source> Sculptor<HNil, HNil> for Source
impl<Source> Sculptor<HNil, HNil> for Source
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.