redb

Trait 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>