Trait tc_table::TableStream
source · [−]pub trait TableStream: TableInstance + Sized {
type Limit: TableInstance;
type Selection: TableInstance;
fn limit(self, limit: u64) -> Self::Limit;
fn select(self, columns: Vec<Id>) -> TCResult<Self::Selection>;
fn rows<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'a, Vec<Value>>>> + Send + 'async_trait>>
where
'a: 'async_trait,
Self: 'async_trait;
fn count<'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
where
Self: Send + 'async_trait,
{ ... }
}
Expand description
Table
read methods
Required Associated Types
type Limit: TableInstance
type Selection: TableInstance
Required Methods
Limit the columns returned by rows
.