pub trait ReflectionAdapter<T> {
    // Required methods
    fn disconnect(
        self
    ) -> impl Future<Output = Result<T, ReflectionAdapterError>> + Send;
    fn set_database_name(
        &mut self,
        database_name: &str
    ) -> impl Future<Output = Result<(), ReflectionAdapterError>>;
    fn get_database_name(&self) -> &str;
    fn list_database_names(
        &self
    ) -> impl Future<Output = Result<Vec<String>, ReflectionAdapterError>> + Send;
    fn list_table_names(
        &self
    ) -> impl Future<Output = Result<Vec<String>, ReflectionAdapterError>> + Send;
    fn get_table_reflection(
        &self,
        table_name: &str
    ) -> impl Future<Output = Result<Table, ReflectionAdapterError>> + Send;
    fn get_reflection(
        &self
    ) -> impl Future<Output = Result<Database, ReflectionAdapterError>> + Send;
}

Required Methods§

source

fn disconnect( self ) -> impl Future<Output = Result<T, ReflectionAdapterError>> + Send

source

fn set_database_name( &mut self, database_name: &str ) -> impl Future<Output = Result<(), ReflectionAdapterError>>

source

fn get_database_name(&self) -> &str

source

fn list_database_names( &self ) -> impl Future<Output = Result<Vec<String>, ReflectionAdapterError>> + Send

source

fn list_table_names( &self ) -> impl Future<Output = Result<Vec<String>, ReflectionAdapterError>> + Send

source

fn get_table_reflection( &self, table_name: &str ) -> impl Future<Output = Result<Table, ReflectionAdapterError>> + Send

source

fn get_reflection( &self ) -> impl Future<Output = Result<Database, ReflectionAdapterError>> + Send

Object Safety§

This trait is not object safe.

Implementors§