pub struct DatabaseStats { /* private fields */ }
Expand description
Informational storage stats about the database
Implementations§
Source§impl DatabaseStats
impl DatabaseStats
Sourcepub fn tree_height(&self) -> u32
pub fn tree_height(&self) -> u32
Maximum traversal distance to reach the deepest (key, value) pair, across all tables
Sourcepub fn allocated_pages(&self) -> u64
pub fn allocated_pages(&self) -> u64
Number of pages allocated
Sourcepub fn leaf_pages(&self) -> u64
pub fn leaf_pages(&self) -> u64
Number of leaf pages that store user data
Sourcepub fn branch_pages(&self) -> u64
pub fn branch_pages(&self) -> u64
Number of branch pages in btrees that store user data
Sourcepub fn stored_bytes(&self) -> u64
pub fn stored_bytes(&self) -> u64
Number of bytes consumed by keys and values that have been inserted. Does not include indexing overhead
Sourcepub fn metadata_bytes(&self) -> u64
pub fn metadata_bytes(&self) -> u64
Number of bytes consumed by keys in internal branch pages, plus other metadata
Sourcepub fn fragmented_bytes(&self) -> u64
pub fn fragmented_bytes(&self) -> u64
Number of bytes consumed by fragmentation, both in data pages and internal metadata tables
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DatabaseStats
impl RefUnwindSafe for DatabaseStats
impl Send for DatabaseStats
impl Sync for DatabaseStats
impl Unpin for DatabaseStats
impl UnwindSafe for DatabaseStats
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes