pub enum AlterIndexTarget {
Rebuild {
encoding: Option<VecEncoding>,
},
Rename {
new: String,
if_exists: bool,
},
StorageParams,
}Variants§
Rebuild
REBUILD [WITH (encoding = <enc>)]. encoding = None
rebuilds the existing graph in place without touching the
column encoding; Some(enc) re-encodes every cell first.
Fields
§
encoding: Option<VecEncoding>Rename
v7.16.2 — [IF EXISTS] RENAME TO <new>. mailrs migrate-042
uses this; PG drops the IF EXISTS noisily as ERROR, mailrs
uses it to make the migration idempotent (re-running on a
DB where the rename already happened is a no-op rather
than an error).
StorageParams
v7.39 (round 710) — SET ( option = value, … ) / RESET ( … ).
Was a SYNTAX ERROR; PG resolves the INDEX first (relation "x" does not exist), so the index is validated and the storage
parameters no-op (SPG engine-manages them, as ALTER TABLE’s
SET/RESET arms already record).
Trait Implementations§
Source§impl Clone for AlterIndexTarget
impl Clone for AlterIndexTarget
Source§fn clone(&self) -> AlterIndexTarget
fn clone(&self) -> AlterIndexTarget
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 AlterIndexTarget
impl Debug for AlterIndexTarget
impl Eq for AlterIndexTarget
Source§impl PartialEq for AlterIndexTarget
impl PartialEq for AlterIndexTarget
impl StructuralPartialEq for AlterIndexTarget
Auto Trait Implementations§
impl Freeze for AlterIndexTarget
impl RefUnwindSafe for AlterIndexTarget
impl Send for AlterIndexTarget
impl Sync for AlterIndexTarget
impl Unpin for AlterIndexTarget
impl UnsafeUnpin for AlterIndexTarget
impl UnwindSafe for AlterIndexTarget
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