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§
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
Object Safety§
This trait is not object safe.