Trait TableDualSourceQueryExecutor

Source
pub trait TableDualSourceQueryExecutor {
    // Required methods
    fn query_table_count<'life0, 'async_trait>(
        &'life0 self,
        input: QueryTableCountInput,
    ) -> Pin<Box<dyn Future<Output = (Result<i64>, Result<i64>)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query_hash_data<'life0, 'async_trait>(
        &'life0 self,
        input: QueryHashDataInput,
    ) -> Pin<Box<dyn Future<Output = (String, String)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

This trait defines the methods for executing queries on a dual source table.

Required Methods§

Source

fn query_table_count<'life0, 'async_trait>( &'life0 self, input: QueryTableCountInput, ) -> Pin<Box<dyn Future<Output = (Result<i64>, Result<i64>)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes a query to retrieve the count of rows in a table.

§Arguments
  • input - The input parameters for the query.
§Returns

A tuple containing the result of the query as a Result<i64>.

Source

fn query_hash_data<'life0, 'async_trait>( &'life0 self, input: QueryHashDataInput, ) -> Pin<Box<dyn Future<Output = (String, String)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes a query to retrieve the hash data of a table.

§Arguments
  • input - The input parameters for the query.
§Returns

A tuple containing the hash data as two String values.

Implementors§