Trait tc_table::TableStream[][src]

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

Associated Types

Required methods

Limit the number of rows returned by rows.

Limit the columns returned by rows.

Return a stream of the rows in this Table.

Provided methods

Return the number of rows in this Table.

Implementors