pub enum AlterTableTarget {
SetHotTierBytes(u64),
AddForeignKey(ForeignKeyConstraint),
DropForeignKey(String),
}Variants§
SetHotTierBytes(u64)
Per-table hot-tier byte budget override. The freezer
reads this before falling back to SPG_HOT_TIER_BYTES.
AddForeignKey(ForeignKeyConstraint)
v7.6.8 — ALTER TABLE t ADD CONSTRAINT name FOREIGN KEY (cols) REFERENCES parent[(pcols)] [ON DELETE/UPDATE …].
Engine validates existing rows against the new constraint
before installing it.
DropForeignKey(String)
v7.6.8 — ALTER TABLE t DROP CONSTRAINT name. Removes the
constraint by user-supplied name; raises if no FK with that
name exists on the table.
Trait Implementations§
Source§impl Clone for AlterTableTarget
impl Clone for AlterTableTarget
Source§fn clone(&self) -> AlterTableTarget
fn clone(&self) -> AlterTableTarget
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 AlterTableTarget
impl Debug for AlterTableTarget
Source§impl PartialEq for AlterTableTarget
impl PartialEq for AlterTableTarget
Source§fn eq(&self, other: &AlterTableTarget) -> bool
fn eq(&self, other: &AlterTableTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlterTableTarget
Auto Trait Implementations§
impl Freeze for AlterTableTarget
impl RefUnwindSafe for AlterTableTarget
impl Send for AlterTableTarget
impl Sync for AlterTableTarget
impl Unpin for AlterTableTarget
impl UnsafeUnpin for AlterTableTarget
impl UnwindSafe for AlterTableTarget
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