XTDB Data Types
XTDB data types are implemented using Apache Arrow.
Scalar Types
XTDB Type | Description | SQL Example | Clojure Example |
---|---|---|---|
|
64-bit Signed Integer |
|
|
|
3-Value Boolean: true, false, or null |
|
|
|
Date Without Time |
|
|
|
64-bit Floating Point Number |
|
|
|
32-bit Floating Point Number |
|
|
|
32-bit Signed Integer |
|
|
|
Month-Day-Nano Interval |
|
|
|
Year-Month Interval |
|
|
|
<a pair of TIMESTAMPs> |
|
|
|
16-bit Signed Integer |
|
|
|
Timestamp without a Timezone offset |
|
|
|
Timestamp with a Timezone offset |
|
|
|
Time of day with nanosecond precision |
|
|
|
Universally Unique Identifier |
|
|
|
Universal Resource Identifier |
|
TBD |
|
Variable-Length Binary String (Byte Array) |
|
TBD |
|
Variable-Length String with UTF8 character encoding |
|
|
|
EDN Keyword |
|
|
|
Duration of time |
|
|
Collection Types
XTDB supports arbitrarily nested data.
XTDB Type | Description | SQL Example | Clojure Example |
---|---|---|---|
|
Array/List/Vector of Values |
|
|
|
Object/Struct/Map of key-value pairs |
|
|
|
Set of distinct, unordered values |
TBD |
|