pub struct IntrospectionExecutor<'a> { /* private fields */ }Expand description
Executor for database introspection commands
Implementations§
Source§impl<'a> IntrospectionExecutor<'a>
impl<'a> IntrospectionExecutor<'a>
Sourcepub fn execute_show_tables(
&self,
stmt: &ShowTablesStmt,
) -> Result<SelectResult, ExecutorError>
pub fn execute_show_tables( &self, stmt: &ShowTablesStmt, ) -> Result<SelectResult, ExecutorError>
Execute SHOW TABLES statement
Returns a result set with a single column “Tables_in_
Sourcepub fn execute_show_databases(
&self,
stmt: &ShowDatabasesStmt,
) -> Result<SelectResult, ExecutorError>
pub fn execute_show_databases( &self, stmt: &ShowDatabasesStmt, ) -> Result<SelectResult, ExecutorError>
Execute SHOW DATABASES statement
Returns a result set with a single column “Database” containing the names of all schemas (databases) in the catalog.
Sourcepub fn execute_show_columns(
&self,
stmt: &ShowColumnsStmt,
) -> Result<SelectResult, ExecutorError>
pub fn execute_show_columns( &self, stmt: &ShowColumnsStmt, ) -> Result<SelectResult, ExecutorError>
Execute SHOW COLUMNS statement
Returns a result set with columns: Field, Type, Null, Key, Default, Extra
Sourcepub fn execute_describe(
&self,
stmt: &DescribeStmt,
) -> Result<SelectResult, ExecutorError>
pub fn execute_describe( &self, stmt: &DescribeStmt, ) -> Result<SelectResult, ExecutorError>
Execute DESCRIBE statement (alias for SHOW COLUMNS)
Sourcepub fn execute_show_index(
&self,
stmt: &ShowIndexStmt,
) -> Result<SelectResult, ExecutorError>
pub fn execute_show_index( &self, stmt: &ShowIndexStmt, ) -> Result<SelectResult, ExecutorError>
Execute SHOW INDEX statement
Returns a result set with index information in MySQL format.
Sourcepub fn execute_show_create_table(
&self,
stmt: &ShowCreateTableStmt,
) -> Result<SelectResult, ExecutorError>
pub fn execute_show_create_table( &self, stmt: &ShowCreateTableStmt, ) -> Result<SelectResult, ExecutorError>
Execute SHOW CREATE TABLE statement
Returns a result set with columns: Table, Create Table
Auto Trait Implementations§
impl<'a> Freeze for IntrospectionExecutor<'a>
impl<'a> !RefUnwindSafe for IntrospectionExecutor<'a>
impl<'a> Send for IntrospectionExecutor<'a>
impl<'a> Sync for IntrospectionExecutor<'a>
impl<'a> Unpin for IntrospectionExecutor<'a>
impl<'a> !UnwindSafe for IntrospectionExecutor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more