pub trait SqlSchemaDescriberBackend: Send + Sync {
    // Required methods
    fn list_databases<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = DescriberResult<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_metadata<'life0, 'life1, 'async_trait>(
        &'life0 self,
        schema: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DescriberResult<SqlMetadata>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn describe<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        schemas: &'life1 [&'life2 str]
    ) -> Pin<Box<dyn Future<Output = DescriberResult<SqlSchema>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn version<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = DescriberResult<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A database description connector.

Required Methods§

source

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

List the database’s schemas.

source

fn get_metadata<'life0, 'life1, 'async_trait>( &'life0 self, schema: &'life1 str ) -> Pin<Box<dyn Future<Output = DescriberResult<SqlMetadata>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the databases metadata.

source

fn describe<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, schemas: &'life1 [&'life2 str] ) -> Pin<Box<dyn Future<Output = DescriberResult<SqlSchema>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Describe a database schema.

source

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

Get the database version.

Implementors§

source§

impl SqlSchemaDescriberBackend for sql_schema_describer::mssql::SqlSchemaDescriber<'_>

source§

impl SqlSchemaDescriberBackend for sql_schema_describer::mysql::SqlSchemaDescriber<'_>

source§

impl SqlSchemaDescriberBackend for sql_schema_describer::sqlite::SqlSchemaDescriber<'_>

source§

impl<'a> SqlSchemaDescriberBackend for sql_schema_describer::postgres::SqlSchemaDescriber<'a>