Trait tc_collection::table::TableRead
source · 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§
sourcefn 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,
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.