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 no longer re-exports this
vocabulary; every server, test, and driver call site names this crate
directly.
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 table::ColumnDef;pub use table::Constraint;pub use table::ConstraintType;pub use table::IndexDef;pub use table::IndexType;pub use table::TableDef;pub use table::TableDefError;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).
- document_
body_ codec - Native binary container for document bodies (PRD-1398, ADR-0063).
- duration
- Duration-string parsing — the leaf
parse_duration_nshelper. - encoding
- function_
catalog - Function catalog — static table of built-in scalar / aggregate
function signatures used by the Fase 3 expression typer to
resolve
Expr::FunctionCallnodes to a concrete return type. - index_
hint - Optimizer index-hint AST leaf (ADR 0053, RQL Phase 2 S4b).
- json
- key_
dictionary - Per-collection field-name key dictionary (PRD-1398, ADR-0063).
- knowledge
- Agent-facing type & multi-model knowledge reference — generated from the engine’s own type-system authorities (ADR 0061, “Agent-Facing Knowledge & MCP Surface”).
- 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 - table
- Logical SQL table definitions.
- types
- RedDB Type System
- utils
- value_
codec - On-disk codec registry for
Value. - value_
compare - Cross-type
Valuecomparison (ADR 0053, RQL Phase 2 S4b). - value_
json - vector_
metadata - Vector-metadata AST leaves (ADR 0053, RQL Phase 2 S4b).