pub struct Plan {
pub declares: Vec<Vec<String>>,
pub queries: Vec<PlanEntry>,
pub notes: Vec<String>,
pub dropped: Vec<(String, String)>,
}Expand description
A migration plan: what to declare, and what becomes of each query.
Fields§
§declares: Vec<Vec<String>>TABLE.DECLARE argv per table, declaration order.
queries: Vec<PlanEntry>Every CREATE VIEW, served or not, declaration order.
notes: Vec<String>Honest-mapping notes, as crate::Compilation::notes.
dropped: Vec<(String, String)>Tables (and stray indexes) that could NOT be declared:
(name, named reason). The charter’s migration bar reads
“every type either moved or named” — this is the named half.
Implementations§
Trait Implementations§
impl Eq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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