flow::adapter::table_source

Trait FlowTableSource

Source
pub trait FlowTableSource:
    Send
    + Sync
    + Debug {
    // Required methods
    fn table_name_from_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        table_id: &'life1 TableId,
    ) -> Pin<Box<dyn Future<Output = Result<[String; 3], Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn table_id_from_name<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 [String; 3],
    ) -> Pin<Box<dyn Future<Output = Result<TableId, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn table_from_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        table_id: &'life1 TableId,
    ) -> Pin<Box<dyn Future<Output = Result<TableDesc, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn table<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 [String; 3],
    ) -> Pin<Box<dyn Future<Output = Result<TableDesc, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

Table source but for flow, provide table schema by table name/id

Required Methods§

Source

fn table_name_from_id<'life0, 'life1, 'async_trait>( &'life0 self, table_id: &'life1 TableId, ) -> Pin<Box<dyn Future<Output = Result<[String; 3], Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn table_id_from_name<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 [String; 3], ) -> Pin<Box<dyn Future<Output = Result<TableId, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn table_from_id<'life0, 'life1, 'async_trait>( &'life0 self, table_id: &'life1 TableId, ) -> Pin<Box<dyn Future<Output = Result<TableDesc, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn table<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 [String; 3], ) -> Pin<Box<dyn Future<Output = Result<TableDesc, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the table schema by table name

Implementors§