Data types reference

ScopeDB is strongly typed, and each value has a specific data type. The data type of a value determines how it can be used in queries and what operations can be performed on it.

List of data types

TypeDescription
int64-bit integer
uint64-bit unsigned integer
float64-bit IEEE 754 floating point number 1
stringUTF-8 encoded string
binarybinary data (byte array)
intervalduration stored as 64-bit nanoseconds
timestampUNIX epoch stored as 64-bit nanoseconds
booleantrue or false
arraysemi-structured array
objectsemi-structured key-value pairs
anyvalue in any type

For more information about ScopeDB data types, see the following topics:

Footnotes

  1. ScopeDB's float has a total order. This is in contradiction with the IEEE standard. See comparison operators for more details.