pub enum Type {
Show 62 variants
UInt8,
UInt16,
UInt32,
UInt64,
UInt128,
UInt256,
Int8,
Int16,
Int32,
Int64,
Int128,
Int256,
Float32,
Float64,
Decimal(u8, u8),
Decimal32(u8),
Decimal64(u8),
Decimal128(u8),
Decimal256(u8),
Bool,
String,
FixedString(u8),
UUID,
Date,
Date32,
DateTime,
DateTime64(u8),
Enum8(BTreeMap<String, i8>),
Enum16(BTreeMap<String, i16>),
Array(Box<Type>),
Tuple(Vec<Type>),
Map(Box<Type>, Box<Type>),
Nested(Vec<(String, Type)>),
NullableUInt8,
NullableUInt16,
NullableUInt32,
NullableUInt64,
NullableUInt128,
NullableUInt256,
NullableInt8,
NullableInt16,
NullableInt32,
NullableInt64,
NullableInt128,
NullableInt256,
NullableFloat32,
NullableFloat64,
NullableDecimal(u8, u8),
NullableDecimal32(u8),
NullableDecimal64(u8),
NullableDecimal128(u8),
NullableDecimal256(u8),
NullableBool,
NullableString,
NullableFixedString(u8),
NullableUUID,
NullableDate,
NullableDate32,
NullableDateTime,
NullableDateTime64(u8),
NullableEnum8(BTreeMap<String, i8>),
NullableEnum16(BTreeMap<String, i16>),
}Expand description
Data type
Variants§
UInt8
u8
UInt16
u16
UInt32
u32
UInt64
u64
UInt128
u128
UInt256
u256
Int8
i8
Int16
i16
Int32
i32
Int64
i64
Int128
i128
Int256
i256
Float32
f32
Float64
f64
Decimal(u8, u8)
Decimal(P,S) (precision ∈ [1:76], scale ∈ [0:P], range ( -1 * 10^(P - S), 1 * 10^(P - S) )
Decimal32(u8)
Decimal(P ∈ [1:9])
Decimal64(u8)
Decimal(P ∈ [19:18])
Decimal128(u8)
Decimal(P ∈ [19:38])
Decimal256(u8)
Decimal(P ∈ [39:76])
Bool
Boolean
String
String
FixedString(u8)
Fixed string
UUID
UUID (16 bytes)
Date
Date (number of days since 1970-01-01, 2 bytes)
Date32
Date32 (number of days since 1970-01-01, signed i32)
DateTime
DateTime (seconds since EPOCH, [1970-01-01 00:00:00, 2106-02-07 06:28:15])
DateTime64(u8)
Ticks since since epoch start (1970-01-01 00:00:00 UTC)
Precision [0:9] defines the resolution, eg 3=ms, 6=us, 9=ns
Enum8(BTreeMap<String, i8>)
Enum (256 values, i8)
Keys and indices must be unique
Enum16(BTreeMap<String, i16>)
Enum (65536 values, i16)
Keys and indices must be unique
Array(Box<Type>)
Array
An array element can have any type
Tuple(Vec<Type>)
Tuple
Each element can have a different type
Map(Box<Type>, Box<Type>)
Map
- key: String, Integer, LowCardinality, FixedString, UUID, Date, DateTime, Date32, Enum
- value: any type
Nested(Vec<(String, Type)>)
Nested
A nested structure is a table inside a cell.
Each type can have a name (optional)
NullableUInt8
Nullable u8
NullableUInt16
Nullable u16
NullableUInt32
Nullable u32
NullableUInt64
Nullable u64
NullableUInt128
Nullable u128
NullableUInt256
Nullable u256
NullableInt8
Nullable i8
NullableInt16
Nullable i16
NullableInt32
Nullable i32
NullableInt64
Nullable i64
NullableInt128
Nullable i128
NullableInt256
Nullable i256
NullableFloat32
Nullable f32
NullableFloat64
Nullable f64
NullableDecimal(u8, u8)
Nullable decimal
NullableDecimal32(u8)
Nullable decimal32
NullableDecimal64(u8)
Nullable decimal64
NullableDecimal128(u8)
Nullable decimal128
NullableDecimal256(u8)
Nullable decimal256
NullableBool
Nullable bool
NullableString
Nullable string
NullableFixedString(u8)
Nullable fixed string
NullableUUID
Nullbale UUID
NullableDate
Nullable date
NullableDate32
Nullable date32
NullableDateTime
Nullable datetime
NullableDateTime64(u8)
Nullable datetime64
NullableEnum8(BTreeMap<String, i8>)
Nullable Enum8
NullableEnum16(BTreeMap<String, i16>)
Nullable Enum16