pub struct RawStep {
pub step_no: u32,
pub kind: StepKind,
pub destructive: bool,
pub destructive_reason: Option<String>,
pub intent_id: Option<u32>,
pub targets: Vec<QualifiedName>,
pub sql: String,
pub transactional: TransactionConstraint,
}Expand description
One unit of work the executor will attempt.
step_no and intent_id start at zero / None and are assigned later
by Plan::from_grouped. The rewrite
pass (Phase 6) builds steps without that numbering.
Fields§
§step_no: u321-indexed step number across the whole plan. 0 until assigned by
Plan::from_grouped.
kind: StepKindWhat kind of operation.
destructive: boolWhether the step is destructive (requires explicit intent approval).
destructive_reason: Option<String>Human-readable reason for destructiveness, if any.
intent_id: Option<u32>Intent id assigned by Plan::from_grouped; None until then.
targets: Vec<QualifiedName>IR objects this step affects (used by directive comments).
sql: StringFinal SQL emitted to disk.
transactional: TransactionConstraintWhether the step can run inside a transaction.
Trait Implementations§
impl Eq for RawStep
impl StructuralPartialEq for RawStep
Auto Trait Implementations§
impl Freeze for RawStep
impl RefUnwindSafe for RawStep
impl Send for RawStep
impl Sync for RawStep
impl Unpin for RawStep
impl UnsafeUnpin for RawStep
impl UnwindSafe for RawStep
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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