Skip to main content

Module types

Module types 

Source
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)
SqlTypeName
Structured SQL type name used by the parser/analyzer boundary.

Enums§

DataType
Type identifier for column definitions
TypeCategory
Type categories used by the Fase 3 coercion resolver. Mirrors PostgreSQL’s pg_type.h typcategory values. Types in the same category are candidates for implicit coercion; the preferred flag breaks ties when multiple candidates match an operator / function signature.
TypeModifier
Type modifiers used by SQL types like DECIMAL(10) or ARRAY(TEXT).
Value
A typed value that can be stored in RedDB
ValueError
Errors that can occur during value operations