Skip to main content

reddb_server/storage/schema/
mod.rs

1//! RedDB Schema System
2//!
3//! This module provides a complete schema system for RedDB including:
4//! - Type system with primitive and network-specific types
5//! - Table definitions with columns, constraints, and indexes
6//! - Schema registry for storing and managing table definitions
7//!
8//! The schema system is designed to support security-focused data types
9//! like IP addresses, MAC addresses, and vectors for similarity search.
10
11pub mod canonical_key;
12pub mod cast_catalog;
13pub mod coerce;
14pub mod coercion_spine;
15pub mod function_catalog;
16pub mod operator_catalog;
17pub mod parametric;
18pub mod polymorphic;
19pub mod registry;
20pub mod row_slot;
21pub mod table;
22pub mod types;
23pub mod value_codec;
24
25// Re-export common types
26pub use canonical_key::{value_to_canonical_key, CanonicalKey, CanonicalKeyFamily};
27pub use coerce::coerce;
28pub use registry::{SchemaError, SchemaRegistry};
29pub use table::{ColumnDef, Constraint, ConstraintType, IndexDef, IndexType, TableDef};
30pub use types::{DataType, Row, SqlTypeName, TypeModifier, Value, ValueError};