pub enum Value {
Show 33 variants
Null(LogicalType),
Bool(bool),
Int64(i64),
Int32(i32),
Int16(i16),
Int8(i8),
UInt64(u64),
UInt32(u32),
UInt16(u16),
UInt8(u8),
Int128(i128),
Double(f64),
Float(f32),
Date(Date),
Interval(Duration),
Timestamp(OffsetDateTime),
TimestampTz(OffsetDateTime),
TimestampNs(OffsetDateTime),
TimestampMs(OffsetDateTime),
TimestampSec(OffsetDateTime),
InternalID(InternalID),
String(String),
Blob(Vec<u8>),
List(LogicalType, Vec<Value>),
Array(LogicalType, Vec<Value>),
Struct(Vec<(String, Value)>),
Node(NodeVal),
Rel(RelVal),
RecursiveRel {
nodes: Vec<NodeVal>,
rels: Vec<RelVal>,
},
Map((LogicalType, LogicalType), Vec<(Value, Value)>),
Union {
types: Vec<(String, LogicalType)>,
value: Box<Value>,
},
UUID(Uuid),
RDFVariant(RDFVariant),
}
Expand description
Data types supported by Kùzu
Also see https://kuzudb.com/docusaurus/cypher/data-types/overview.html
Variants§
Null(LogicalType)
Bool(bool)
Int64(i64)
Int32(i32)
Int16(i16)
Int8(i8)
UInt64(u64)
UInt32(u32)
UInt16(u16)
UInt8(u8)
Int128(i128)
Double(f64)
Float(f32)
Date(Date)
Stored internally as the number of days since 1970-01-01 as a 32-bit signed integer, which allows for a wider range of dates to be stored than can be represented by time::Date
Interval(Duration)
May be signed or unsigned.
Nanosecond precision of time::Duration (if available) will not be preserved when passed to queries, and results will always have at most microsecond precision.
https://kuzudb.com/docusaurus/cypher/data-types/interval.html
Timestamp(OffsetDateTime)
Stored internally as the number of microseconds since 1970-01-01 Nanosecond precision of SystemTime (if available) will not be preserved when used.
https://kuzudb.com/docusaurus/cypher/data-types/timestamp.html
TimestampTz(OffsetDateTime)
TimestampNs(OffsetDateTime)
TimestampMs(OffsetDateTime)
TimestampSec(OffsetDateTime)
InternalID(InternalID)
String(String)
Blob(Vec<u8>)
List(LogicalType, Vec<Value>)
These must contain elements which are all the given type. https://kuzudb.com/docusaurus/cypher/data-types/list.html
Array(LogicalType, Vec<Value>)
These must contain elements which are all the same type. https://kuzudb.com/docusaurus/cypher/data-types/list.html