Skip to main content

Crate nodedb

Crate nodedb 

Source
Expand description

NodeDB server core: pgwire / HTTP / native transports, the SQL planner integration, the SPSC bridge to the Data Plane, all storage engines, and the Event Plane (triggers / CDC / scheduler).

This crate is the heart of the Origin (cloud and single-node) deployment mode. The binary entry point is src/main.rs; the library entry point exposes the modules below for embedding scenarios that want to drive the server from another process. Most external users should depend on nodedb-client instead.

Re-exports§

pub use config::EngineConfig;
pub use config::ServerConfig;
pub use error::Error;
pub use error::Result;
pub use types::ReadConsistency;

Modules§

bootstrap
bridge
config
control
ctl
Operator subcommands for the nodedb binary (L.4).
data
engine
error
event
fail_point
Minimal feature-gated fail-point framework for crash-injection tests.
memory
query
storage
types
util
Shared utility functions.
version
NodeDB version and compatibility information.
wal

Macros§

fail_point
Inject a fail point. Expands to nothing without the failpoints feature.

Structs§

DocumentId
Identifies a document/row across all engines.
ErrorCode
Stable numeric error codes for programmatic error handling.
Lsn
Log Sequence Number.
NodeDbError
Public error type returned by all NodeDb trait methods.
RequestId
Globally unique request identifier. Monotonic per connection, unique for >= 24h.
TenantId
Identifies a tenant. All data is tenant-scoped by construction.
VShardId
Identifies a virtual shard (0..1023). Data is hashed to vShards by shard key.

Type Aliases§

NodeDbResult
Result alias for NodeDb operations.