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§
sourcefn 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 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.
sourcefn 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 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.
sourcefn 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 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.