Expand description
RedDB Type System
Defines the core data types supported by RedDB, including:
- Primitive types (Integer, Float, Text, Blob, Boolean)
- Network types (IpAddr, MacAddr)
- Temporal types (Timestamp, Duration)
- Vector types (for similarity search)
All types support efficient binary serialization for storage.
Structs§
- Row
- A row of values (tuple)
- SqlType
Name - Structured SQL type name used by the parser/analyzer boundary.
Enums§
- Data
Type - Type identifier for column definitions
- Type
Category - Type categories used by the Fase 3 coercion resolver. Mirrors
PostgreSQL’s
pg_type.htypcategoryvalues. Types in the same category are candidates for implicit coercion; the preferred flag breaks ties when multiple candidates match an operator / function signature. - Type
Modifier - Type modifiers used by SQL types like
DECIMAL(10)orARRAY(TEXT). - Value
- A typed value that can be stored in RedDB
- Value
Error - Errors that can occur during value operations