Skip to main content

nodedb/
lib.rs

1// SPDX-License-Identifier: BUSL-1.1
2
3//! NodeDB server core: pgwire / HTTP / native transports, the SQL planner
4//! integration, the SPSC bridge to the Data Plane, all storage engines,
5//! and the Event Plane (triggers / CDC / scheduler).
6//!
7//! This crate is the heart of the Origin (cloud and single-node) deployment
8//! mode. The binary entry point is `src/main.rs`; the library entry point
9//! exposes the modules below for embedding scenarios that want to drive the
10//! server from another process. Most external users should depend on
11//! `nodedb-client` instead.
12
13pub mod bootstrap;
14pub mod bridge;
15pub mod config;
16pub mod control;
17pub mod ctl;
18pub mod data;
19pub mod engine;
20pub mod error;
21mod error_from;
22pub mod event;
23pub mod fail_point;
24pub mod memory;
25pub mod query;
26pub mod storage;
27pub mod types;
28pub mod util;
29pub mod version;
30pub mod wal;
31
32pub use config::{EngineConfig, ServerConfig};
33pub use error::{Error, Result};
34pub use nodedb_types::error::{ErrorCode, NodeDbError, NodeDbResult};
35pub use types::{DocumentId, Lsn, ReadConsistency, RequestId, TenantId, VShardId};