reddb-io-server 1.0.1

RedDB server-side engine: storage, runtime, replication, MCP, AI, and the gRPC/HTTP/RedWire/PG-wire dispatchers. Re-exported by the umbrella `reddb` crate.
Documentation
// reddb persistent storage core
//
// This module exposes the unified RedDB storage engine for tables, documents,
// graphs, and vectors with a single API surface.

// Low-level primitives (bloom filters, encoding, mmap, serialization)
pub mod primitives;

// Cross-structure index abstraction (trait + bloom segment helper)
pub mod index;

// RedDB Storage Engine (page-based, B-tree indexed)
pub mod engine;

// B+ Tree with MVCC (Concurrent Storage)
pub mod btree;

// Transaction Management (ACID)
pub mod transaction;

// Page Cache (SIEVE Algorithm)
pub mod cache;

// Foreign Data Wrappers (Phase 3.2 PG parity)
pub mod fdw;

// SQLite Import/Compatibility Layer
pub mod import;

// Write-ahead log - serializer is now integrated into storage primitives

// Write-Ahead Log (Durability)
pub mod wal;

// Encryption Layer (Security)
pub mod encryption;

// Remote Storage Backend Abstraction (S3, R2, GCS, Turso, D1)
pub mod backend;

// Keyring integration for secure password storage
pub mod keyring;

// Schema System (Types, Tables, Registry)
pub mod schema;

// Time-Series Storage
pub mod timeseries;

// Queue / Deque Storage
pub mod queue;

// Machine Learning registry + async job queue (ML Sprint 1 — scaffold).
// Feature 5 (classifier), Feature 6 (symbolic regression), and the other
// five ML capabilities all publish models/versions and submit training
// jobs through this module.
pub mod ml;

// Query Engine (Filters, Sorting, Similarity Search)
pub mod query;

// Unified Storage Layer (Tables + Graphs + Vectors)
pub(crate) mod unified;

// Per-collection disk usage accounting for runtime catalog views.
pub(crate) mod disk_accountant;

// Public surface re-used by the rest of the codebase.
pub use backend::{BackendError, LocalBackend, RemoteBackend};
pub use keyring::{
    clear_keyring, has_keyring_password, resolve_password, save_to_keyring, PasswordSource,
};
pub use unified::RedDB;

// =============================================================================
// UNIFIED STORAGE INTERFACE (PRIMARY API)
// =============================================================================
//
// The unified storage layer is THE primary interface for all storage operations.
// Use `storage::Store` and `storage::Query` for all new code.
//
// Use `storage::Store` and `storage::Query` for all new code.

pub use unified::{
    AdjacencyEntry,
    CrossRef,
    DslFilter,
    DslQueryResult as QueryResult,
    EdgeData,
    EdgeDirection,
    EmbeddingSlot,
    EntityData,
    // Entity types - Universal data model
    EntityId,
    EntityKind,
    FilterOp,
    FilterValue,
    // Graph adjacency index
    GraphAdjacencyIndex,
    GraphQueryBuilder,
    HybridQueryBuilder,
    IndexEvent,
    IndexEventKind,

    IndexStats,
    IndexStatus,
    // Index lifecycle management
    IndexType,
    IntegratedIndexConfig as IndexConfig,
    IntegratedIndexConfig,

    // Index Manager - Unified indexing (HNSW + Inverted + B-tree + Graph)
    IntegratedIndexManager as IndexManager,
    IntegratedIndexManager,
    InvertedIndex,
    LifecycleEvent,

    ManagerConfig,
    ManagerStats,
    MatchComponents,

    // Metadata
    Metadata,
    MetadataQueryFilter,
    MetadataStorage,
    MetadataType,

    MetadataValue,
    // =========================================================================
    // PRIMARY INTERFACE - Use these for all new code
    // =========================================================================
    NativeHeaderRepairPolicy,
    NodeData,
    QueryResultItem,
    RefQueryBuilder,
    RefType,

    RowData,
    ScanQueryBuilder,
    ScoredMatch,
    SegmentConfig as UnifiedSegmentConfig,
    SegmentError,

    SegmentId as UnifiedSegmentId,
    // Manager
    SegmentManager,
    SegmentState,
    SegmentStats,
    SimilarResult,
    SortOrder,
    SparseVector,
    StoreError,

    StoreStats,
    TableQueryBuilder,
    TextSearchBuilder,
    TextSearchResult,
    TimeSeriesData,
    TimeSeriesPointKind,
    TraversalDirection,
    UnifiedEntity,
    UnifiedEntity as Entity,
    UnifiedMetadataFilter,
    // Segments
    UnifiedSegment,
    // Store - THE primary storage interface
    UnifiedStore,
    UnifiedStore as Store,
    UnifiedStoreConfig,
    VectorData,
    // Query builders (for advanced use)
    VectorQueryBuilder,
    VectorSearchResult,
    WhereClause,
    // Query DSL - Entry point for all queries
    Q as Query,
};