pub trait TableRead: TableInstance {
    // Required method
    fn read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        key: &'life1 [Value]
    ) -> Pin<Box<dyn Future<Output = TCResult<Option<Row>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A method to read a single row

Required Methods§

source

fn read<'life0, 'life1, 'async_trait>( &'life0 self, txn_id: TxnId, key: &'life1 [Value] ) -> Pin<Box<dyn Future<Output = TCResult<Option<Row>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Read the row with the given key from this table, if present.

Implementors§

source§

impl<Txn, FE> TableRead for Table<Txn, FE>
where Txn: Transaction<FE>, FE: AsType<Node> + ThreadSafe,

source§

impl<Txn, FE> TableRead for TableFile<Txn, FE>
where Txn: Transaction<FE>, FE: AsType<Node> + ThreadSafe,