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§
Sourcefn freelist_count(&self) -> Result<i64>
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".