Skip to main content

nodedb_physical/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! Shared physical-plan layer for NodeDB.
4//!
5//! Owns the `PhysicalTask` IR and the `SqlPlan → PhysicalPlan` converter.
6//! Origin (server) and Lite (embedded) both consume the same `PhysicalTask`;
7//! per-deployment executors implement `PhysicalTaskVisitor` against their own
8//! storage backends. Origin-specific concerns (vShard routing, MessagePack
9//! pre-serialisation, cross-plane envelope fields) live in an Origin-side
10//! wrapper that contains a `PhysicalTask`, not in this crate.
11
12pub mod convert_context;
13pub mod error;
14pub mod physical_plan;
15pub mod physical_task;
16pub mod surrogate;
17pub mod visitor;
18
19pub use convert_context::SharedConvertContext;
20pub use error::ConvertError;
21pub use surrogate::{SurrogateAssignError, SurrogateAssigner};
22pub use visitor::{PhysicalTaskVisitor, dispatch};