#![allow(dead_code, unused_imports, unused_variables)]
#![allow(
clippy::too_many_arguments, // complex DB operations legitimately need many params
clippy::type_complexity, // internal types with nested generics
clippy::result_large_err, // tonic::Status is 176 bytes, can't box it
clippy::should_implement_trait, // from_str() returns Option, not Result — different semantics
clippy::new_without_default, // some constructors have side effects
clippy::enum_variant_names, // JoinPhase variants all end in Start by design
clippy::wrong_self_convention, // to_bytes on Copy types in our serialization
clippy::len_without_is_empty // segment structs don't need is_empty
)]
pub mod ai;
pub mod api;
pub mod application;
pub mod auth;
pub mod backup_bootstrap;
pub mod catalog;
pub mod cli;
pub mod config;
pub mod crypto;
pub mod ec;
pub mod engine;
pub mod geo;
pub mod grpc;
pub mod health;
pub mod index;
pub mod json;
pub mod json_field;
pub mod log;
pub mod mcp;
pub mod modules;
pub mod physical;
pub(crate) mod presentation;
pub mod regress;
pub mod replication;
pub(crate) mod reserved_fields;
pub mod rpc_stdio;
pub mod runtime;
pub mod serde_json;
pub mod server;
pub mod service_cli;
mod service_router;
pub mod sqlstate;
pub mod storage;
pub mod telemetry;
pub mod utils;
pub mod wire;
pub use reddb_wire as wire_proto;
pub mod prelude {
pub use crate::api::{
Capability, CapabilitySet, CatalogService, CatalogSnapshot, CollectionStats, DataOps,
QueryPlanner, RedDBError, RedDBOptions, RedDBResult, SchemaManifest, StorageMode,
DEFAULT_EXPORT_RETENTION, DEFAULT_SNAPSHOT_RETENTION, REDDB_FORMAT_VERSION,
REDDB_PROTOCOL_VERSION,
};
pub use crate::application::{
AdminUseCases, CatalogUseCases, EntityUseCases, GraphUseCases, NativeUseCases,
QueryUseCases, RuntimeAdminPort, RuntimeCatalogPort, RuntimeEntityPort, RuntimeGraphPort,
RuntimeNativePort, RuntimeQueryPort, RuntimeSchemaPort, SchemaUseCases,
};
pub use crate::auth::store::AuthStore;
pub use crate::auth::{AuthConfig, AuthError, Role as AuthRole};
pub use crate::catalog::{
snapshot_store, CatalogModelSnapshot, CollectionDescriptor, CollectionModel, SchemaMode,
};
pub use crate::engine::{EngineInfo, EngineStats, RedDBEngine};
pub use crate::grpc::{GrpcServerOptions, GrpcTlsOptions, RedDBGrpcServer};
pub use crate::health::{HealthIssue, HealthProvider, HealthReport, HealthState};
pub use crate::index::{
IndexCatalog, IndexCatalogSnapshot, IndexConfig, IndexKind, IndexMetric, IndexRuntime,
IndexStats,
};
pub use crate::physical::{
ArtifactState, BlockReference, CompactionPolicy, ExportDescriptor, GridLayout,
ManifestEvent, ManifestEventKind, ManifestPointers, PhysicalAnalyticsJob,
PhysicalGraphProjection, PhysicalIndexState, PhysicalLayout, PhysicalMetadataFile,
SnapshotDescriptor, SuperblockHeader, WalPolicy, DEFAULT_MANIFEST_EVENT_HISTORY,
PHYSICAL_METADATA_PROTOCOL_VERSION,
};
pub use crate::runtime::{
ConnectionPoolConfig, RedDBRuntime, RuntimeConnection, RuntimeFilter, RuntimeFilterValue,
RuntimeGraphCentralityAlgorithm, RuntimeGraphCentralityResult, RuntimeGraphCentralityScore,
RuntimeGraphClusteringResult, RuntimeGraphCommunity, RuntimeGraphCommunityAlgorithm,
RuntimeGraphCommunityResult, RuntimeGraphComponent, RuntimeGraphComponentsMode,
RuntimeGraphComponentsResult, RuntimeGraphCyclesResult, RuntimeGraphDegreeScore,
RuntimeGraphDirection, RuntimeGraphEdge, RuntimeGraphHitsResult,
RuntimeGraphNeighborhoodResult, RuntimeGraphNode, RuntimeGraphPath,
RuntimeGraphPathAlgorithm, RuntimeGraphPathResult, RuntimeGraphPattern,
RuntimeGraphProjection, RuntimeGraphTopologicalSortResult, RuntimeGraphTraversalResult,
RuntimeGraphTraversalStrategy, RuntimeGraphVisit, RuntimeIvfMatch, RuntimeIvfSearchResult,
RuntimeQueryResult, RuntimeQueryWeights, RuntimeStats, ScanCursor, ScanPage,
};
pub use crate::server::{RedDBServer, ServerOptions, ServerReplicationState};
}
pub use crate::api::{
tier_wiring, Capability, CapabilitySet, CatalogService, CatalogSnapshot, CollectionStats,
DataOps, QueryPlanner, RedDBError, RedDBOptions, RedDBResult, SchemaManifest, StorageMode,
DEFAULT_EXPORT_RETENTION, DEFAULT_SNAPSHOT_RETENTION, REDDB_FORMAT_VERSION,
REDDB_PROTOCOL_VERSION,
};
pub use crate::application::{
AdminUseCases, CatalogUseCases, EntityUseCases, GraphUseCases, NativeUseCases, QueryUseCases,
RuntimeAdminPort, RuntimeCatalogPort, RuntimeEntityPort, RuntimeGraphPort, RuntimeNativePort,
RuntimeQueryPort, RuntimeSchemaPort, SchemaUseCases,
};
pub use crate::catalog::{
snapshot_store, CatalogModelSnapshot, CollectionDescriptor, CollectionModel, SchemaMode,
};
pub use crate::engine::{EngineInfo, EngineStats, RedDBEngine};
pub use crate::grpc::{GrpcServerOptions, GrpcTlsOptions, RedDBGrpcServer};
pub use crate::health::{HealthIssue, HealthProvider, HealthReport, HealthState};
pub use crate::index::{
IndexCatalog, IndexCatalogSnapshot, IndexConfig, IndexKind, IndexMetric, IndexRuntime,
IndexStats,
};
pub use crate::physical::{
fold_dwb_into_wal_enabled, fold_pager_meta_enabled, meta_json_sidecar_enabled,
provision_shm, read_shm_header, seqn_journal_enabled, seqn_journal_retention,
set_fold_dwb_into_wal_enabled, set_fold_pager_meta_enabled,
set_meta_json_sidecar_enabled, set_seqn_journal_enabled,
set_seqn_journal_retention, set_shm_provisioning_enabled, shm_path_for,
shm_provisioning_enabled, ArtifactState, BlockReference, CompactionPolicy, ExportDescriptor,
GridLayout, ManifestEvent, ManifestEventKind, ManifestPointers, PhysicalAnalyticsJob,
PhysicalGraphProjection, PhysicalIndexState, PhysicalLayout, PhysicalMetadataFile,
ShmHandle, ShmHeader, ShmProvisionState, SnapshotDescriptor, SuperblockHeader, WalPolicy,
DEFAULT_MANIFEST_EVENT_HISTORY, DEFAULT_METADATA_JOURNAL_RETENTION,
OPT_IN_METADATA_JOURNAL_RETENTION, PHYSICAL_METADATA_PROTOCOL_VERSION, SHM_FILE_SIZE,
SHM_HEADER_SIZE, SHM_MAGIC, SHM_VERSION,
};
pub use crate::replication::{ReplicationConfig, ReplicationRole};
pub use crate::runtime::{
ConnectionPoolConfig, RedDBRuntime, RuntimeConnection, RuntimeFilter, RuntimeFilterValue,
RuntimeGraphCentralityAlgorithm, RuntimeGraphCentralityResult, RuntimeGraphCentralityScore,
RuntimeGraphClusteringResult, RuntimeGraphCommunity, RuntimeGraphCommunityAlgorithm,
RuntimeGraphCommunityResult, RuntimeGraphComponent, RuntimeGraphComponentsMode,
RuntimeGraphComponentsResult, RuntimeGraphCyclesResult, RuntimeGraphDegreeScore,
RuntimeGraphDirection, RuntimeGraphEdge, RuntimeGraphHitsResult,
RuntimeGraphNeighborhoodResult, RuntimeGraphNode, RuntimeGraphPath, RuntimeGraphPathAlgorithm,
RuntimeGraphPathResult, RuntimeGraphPattern, RuntimeGraphProjection,
RuntimeGraphTopologicalSortResult, RuntimeGraphTraversalResult, RuntimeGraphTraversalStrategy,
RuntimeGraphVisit, RuntimeIvfMatch, RuntimeIvfSearchResult, RuntimeQueryResult,
RuntimeQueryWeights, RuntimeStats, ScanCursor, ScanPage,
};
pub use crate::server::{RedDBServer, ServerOptions, ServerReplicationState};
pub use crate::storage::*;