pub trait TableSingleSourceQueryExecutor {
    // Required methods
    fn query_table_names<'life0, 'async_trait>(
        &'life0 self,
        input: QueryTableNamesInput
    ) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query_primary_keys<'life0, 'async_trait>(
        &'life0 self,
        input: QueryPrimaryKeysInput
    ) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

This trait represents a query executor for a single source table.

Required Methods§

source

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

Queries the table names from the database.

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

A vector of table names.

source

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

Queries the primary keys of a table from the database.

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

A vector of primary key column names.

Implementors§