Skip to main content

Executor

Trait Executor 

Source
pub trait Executor: Send + Sync {
    // Required methods
    fn fetch_tables<'life0, 'life1, 'async_trait>(
        &'life0 self,
        schema: Option<&'life1 str>,
        include_views: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TableInfo>, ReflectError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn fetch_columns<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        table: &'life1 str,
        schema: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Column>, ReflectError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn fetch_primary_key<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        table: &'life1 str,
        schema: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<PrimaryKey>, ReflectError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn fetch_foreign_keys<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        table: &'life1 str,
        schema: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ForeignKey>, ReflectError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn fetch_indexes<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        table: &'life1 str,
        schema: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Index>, ReflectError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn fetch_tables<'life0, 'life1, 'async_trait>( &'life0 self, schema: Option<&'life1 str>, include_views: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<TableInfo>, ReflectError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn fetch_columns<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, table: &'life1 str, schema: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Column>, ReflectError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn fetch_primary_key<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, table: &'life1 str, schema: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<PrimaryKey>, ReflectError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn fetch_foreign_keys<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, table: &'life1 str, schema: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ForeignKey>, ReflectError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn fetch_indexes<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, table: &'life1 str, schema: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Index>, ReflectError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§