pub struct OrderedChangeSet {
pub creates_and_adds: Vec<ChangeEntry>,
pub modifies: Vec<ChangeEntry>,
pub drops: Vec<ChangeEntry>,
pub deferred_fks: Vec<DeferredFkAdd>,
}Expand description
A ChangeSet partitioned and sorted by the planner.
Bucket semantics:
creates_and_adds:CreateSchema/Table/Index/Sequence, in dependency order (dependencies before dependents).modifies:AlterSchema/Table/Sequence,ReplaceIndex, in dependency order over the source-side graph.drops:DropSchema/Table/Index/Sequence, in reverse dependency order over the target-side graph.deferred_fks: FK constraints removed from the create graph to break a cycle; emitted aftercreates_and_addsasALTER TABLE ... ADD CONSTRAINT.
Fields§
§creates_and_adds: Vec<ChangeEntry>Creates and additive operations, in dependency order.
modifies: Vec<ChangeEntry>Modify-in-place operations, in dependency order.
drops: Vec<ChangeEntry>Drops, in reverse dependency order.
deferred_fks: Vec<DeferredFkAdd>FK constraints deferred to break create-graph cycles.
Implementations§
Trait Implementations§
Source§impl Clone for OrderedChangeSet
impl Clone for OrderedChangeSet
Source§fn clone(&self) -> OrderedChangeSet
fn clone(&self) -> OrderedChangeSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderedChangeSet
impl Debug for OrderedChangeSet
Source§impl Default for OrderedChangeSet
impl Default for OrderedChangeSet
Source§fn default() -> OrderedChangeSet
fn default() -> OrderedChangeSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for OrderedChangeSet
impl PartialEq for OrderedChangeSet
Source§fn eq(&self, other: &OrderedChangeSet) -> bool
fn eq(&self, other: &OrderedChangeSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrderedChangeSet
Auto Trait Implementations§
impl Freeze for OrderedChangeSet
impl RefUnwindSafe for OrderedChangeSet
impl Send for OrderedChangeSet
impl Sync for OrderedChangeSet
impl Unpin for OrderedChangeSet
impl UnsafeUnpin for OrderedChangeSet
impl UnwindSafe for OrderedChangeSet
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