pub struct GenerationPlan {
pub input_dialect: Option<SqlDialect>,
pub output: CompiledOutput,
pub tables: Vec<PlannedTable>,
pub phases: Vec<ExecutionPhase>,
pub diagnostics: Vec<Diagnostic>,
pub estimates: PlanEstimates,
pub family_budget_bytes: u64,
}Expand description
A fully compiled generation plan: the immutable contract every downstream stage reads.
Fields§
§input_dialect: Option<SqlDialect>Dialect the source dump was parsed with, if the model recorded one.
output: CompiledOutputResolved output/rendering configuration.
tables: Vec<PlannedTable>The selected tables, in dependency order (parents before children).
phases: Vec<ExecutionPhase>Generation phases, in execution order, for individual tables or correlated table families.
diagnostics: Vec<Diagnostic>Non-error diagnostics that survive a successful compile: drained merge
warnings plus compile-stage warnings (e.g. a --max-rows cap).
estimates: PlanEstimatesCost and size estimates for reporting and resource planning.
family_budget_bytes: u64The exact in-memory byte budget for each correlated family’s buffered
child rows before it spills to a protected spool. The engine’s
commerce.order_family execution keys its [FamilyBuffer] off this. A
large default keeps ordinary families in memory; a run may pin a small
budget (--family-budget) to exercise the spill path.
Implementations§
Source§impl GenerationPlan
impl GenerationPlan
Sourcepub fn table(&self, name: &str) -> Option<&PlannedTable>
pub fn table(&self, name: &str) -> Option<&PlannedTable>
Look up a planned table by name.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GenerationPlan
impl !Sync for GenerationPlan
impl !UnwindSafe for GenerationPlan
impl Freeze for GenerationPlan
impl Send for GenerationPlan
impl Unpin for GenerationPlan
impl UnsafeUnpin for GenerationPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more