Trait redb::ReadableTableMetadata

source ·
pub trait ReadableTableMetadata {
    // Required methods
    fn stats(&self) -> Result<TableStats>;
    fn len(&self) -> Result<u64>;

    // Provided method
    fn is_empty(&self) -> Result<bool> { ... }
}

Required Methods§

source

fn stats(&self) -> Result<TableStats>

Retrieves information about storage usage for the table

source

fn len(&self) -> Result<u64>

Returns the number of entries in the table

Provided Methods§

source

fn is_empty(&self) -> Result<bool>

Returns true if the table is empty

Implementors§

source§

impl ReadableTableMetadata for ReadOnlyUntypedMultimapTable

source§

impl ReadableTableMetadata for ReadOnlyUntypedTable

source§

impl<'txn, K: Key + 'static, V: Key + 'static> ReadableTableMetadata for MultimapTable<'txn, K, V>

source§

impl<'txn, K: Key + 'static, V: Value + 'static> ReadableTableMetadata for Table<'txn, K, V>

source§

impl<K: Key + 'static, V: Key + 'static> ReadableTableMetadata for ReadOnlyMultimapTable<K, V>

source§

impl<K: Key + 'static, V: Value + 'static> ReadableTableMetadata for ReadOnlyTable<K, V>