pub enum TableChange {
AttachPartition {
parent: QualifiedName,
child: QualifiedName,
bounds: PartitionBounds,
},
DetachPartition {
parent: QualifiedName,
child: QualifiedName,
},
}Expand description
A partition-membership change on a child table.
These changes are emitted by the differ when the partition_of field of a
table changes. Wiring to SQL steps lands in PART9.
Variants§
AttachPartition
Attach a child table to a parent partitioned table.
Corresponds to ALTER TABLE <parent> ATTACH PARTITION <child> <bounds>.
Fields
§
parent: QualifiedNameThe partitioned parent table.
§
child: QualifiedNameThe child table being attached.
§
bounds: PartitionBoundsThe partition bounds clause.
DetachPartition
Detach a child table from a parent partitioned table.
Corresponds to ALTER TABLE <parent> DETACH PARTITION <child>.
Fields
§
parent: QualifiedNameThe partitioned parent table.
§
child: QualifiedNameThe child table being detached.
Trait Implementations§
Source§impl Clone for TableChange
impl Clone for TableChange
Source§fn clone(&self) -> TableChange
fn clone(&self) -> TableChange
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 TableChange
impl Debug for TableChange
Source§impl<'de> Deserialize<'de> for TableChange
impl<'de> Deserialize<'de> for TableChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TableChange
Source§impl PartialEq for TableChange
impl PartialEq for TableChange
Source§fn eq(&self, other: &TableChange) -> bool
fn eq(&self, other: &TableChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TableChange
impl Serialize for TableChange
impl StructuralPartialEq for TableChange
Auto Trait Implementations§
impl Freeze for TableChange
impl RefUnwindSafe for TableChange
impl Send for TableChange
impl Sync for TableChange
impl Unpin for TableChange
impl UnsafeUnpin for TableChange
impl UnwindSafe for TableChange
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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