pub struct VacuumStatement {
pub full: bool,
pub sort_only: bool,
pub delete_only: bool,
pub reindex: bool,
pub recluster: bool,
pub table_name: Option<ObjectName>,
pub threshold: Option<Value>,
pub boost: bool,
}Expand description
Re-sorts rows and reclaims space in either a specified table or all tables in the current database
‘’’sql VACUUM [ FULL | SORT ONLY | DELETE ONLY | REINDEX | RECLUSTER ] [ [ table_name ] [ TO threshold PERCENT ] [ BOOST ] ] ‘’’ Redshift
Fields§
§full: boolWhether FULL was specified.
sort_only: boolWhether SORT ONLY was specified.
delete_only: boolWhether DELETE ONLY was specified.
reindex: boolWhether REINDEX was specified.
recluster: boolWhether RECLUSTER was specified.
table_name: Option<ObjectName>Optional table to run VACUUM on.
threshold: Option<Value>Optional threshold value (percent) for TO threshold PERCENT.
boost: boolWhether BOOST was specified.
Trait Implementations§
Source§impl Clone for VacuumStatement
impl Clone for VacuumStatement
Source§fn clone(&self) -> VacuumStatement
fn clone(&self) -> VacuumStatement
Returns a duplicate of the value. Read more
1.0.0 · 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 VacuumStatement
impl Debug for VacuumStatement
Source§impl Display for VacuumStatement
impl Display for VacuumStatement
Source§impl From<VacuumStatement> for Statement
impl From<VacuumStatement> for Statement
Source§fn from(v: VacuumStatement) -> Self
fn from(v: VacuumStatement) -> Self
Converts to this type from the input type.
Source§impl Hash for VacuumStatement
impl Hash for VacuumStatement
Source§impl Ord for VacuumStatement
impl Ord for VacuumStatement
Source§fn cmp(&self, other: &VacuumStatement) -> Ordering
fn cmp(&self, other: &VacuumStatement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VacuumStatement
impl PartialEq for VacuumStatement
Source§impl PartialOrd for VacuumStatement
impl PartialOrd for VacuumStatement
Source§impl Visit for VacuumStatement
impl Visit for VacuumStatement
Source§impl VisitMut for VacuumStatement
impl VisitMut for VacuumStatement
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for VacuumStatement
impl StructuralPartialEq for VacuumStatement
Auto Trait Implementations§
impl Freeze for VacuumStatement
impl RefUnwindSafe for VacuumStatement
impl Send for VacuumStatement
impl Sync for VacuumStatement
impl Unpin for VacuumStatement
impl UnsafeUnpin for VacuumStatement
impl UnwindSafe for VacuumStatement
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