Skip to main content

Crate reddb_types

Crate reddb_types 

Source
Expand description

reddb-io-types — the neutral keystone crate for RedDB’s logical type system (ADR 0052).

This crate sits at the bottom of the workspace crate graph: every authority crate (reddb-io-file, reddb-io-wire, the planned reddb-io-rql and reddb-io-crypto) may depend on it, but it depends on no other workspace crate. It owns the core type vocabulary — Value, DataType, SqlTypeName, TypeModifier, TypeCategory, ValueError, and Row — together with the value_codec serialization that Value::to_bytes/from_bytes delegate to.

The reddb-server storage::schema module keeps a re-export shim so the ~180 existing call-sites across the workspace stay untouched.

Re-exports§

pub use canonical_key::value_to_canonical_key;
pub use canonical_key::CanonicalKey;
pub use canonical_key::CanonicalKeyFamily;
pub use operator::BinOp;
pub use types::DataType;
pub use types::Row;
pub use types::SqlTypeName;
pub use types::TypeCategory;
pub use types::TypeModifier;
pub use types::Value;
pub use types::ValueError;

Modules§

canonical_key
cast_catalog
Cast catalog — Fase 3 foundation for explicit / implicit type coercion.
catalog
Catalog AST-leaf descriptors (ADR 0053, RQL Phase 2 S4b).
coerce
Type coercion and validation for rich types.
coercion_spine
Coercion spine — the single owner of “given these argument types, which catalog overload applies and what implicit casts does the engine need to insert?”
distance
Vector distance-metric AST leaf (ADR 0053, RQL Phase 2 S4b).
duration
Duration-string parsing — the leaf parse_duration_ns helper.
function_catalog
Function catalog — static table of built-in scalar / aggregate function signatures used by the Fase 3 expression typer to resolve Expr::FunctionCall nodes to a concrete return type.
index_hint
Optimizer index-hint AST leaf (ADR 0053, RQL Phase 2 S4b).
json
operator
Binary-operator vocabulary.
operator_catalog
Operator catalog — static table of built-in operator signatures, Fase 3 type-system extension.
parametric
Parametric type validators — Phase 4 partial drop.
polymorphic
Polymorphic pseudo-types — Fase 3 extension.
queue_mode
Queue-mode AST leaf (ADR 0053, RQL Phase 2 S4b).
serde_json
types
RedDB Type System
utils
value_codec
On-disk codec registry for Value.
value_compare
Cross-type Value comparison (ADR 0053, RQL Phase 2 S4b).
vector_metadata
Vector-metadata AST leaves (ADR 0053, RQL Phase 2 S4b).

Macros§

json