Skip to main content

Vacuumable

Trait Vacuumable 

Source
pub trait Vacuumable {
    // Required methods
    fn vacuum(&self) -> Result<()>;
    fn freelist_count(&self) -> Result<i64>;
}
Expand description

Common trait for database maintenance operations.

Required Methods§

Source

fn vacuum(&self) -> Result<()>

Run VACUUM to reclaim space.

§Errors

Returns an error if the database operation fails.

Source

fn freelist_count(&self) -> Result<i64>

Return the freelist page count (indicates whether VACUUM would help).

§Errors

Returns an error if the database operation fails.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§