pub struct SchemaExecutor;Expand description
Executor for schema DDL statements
Implementations§
Source§impl SchemaExecutor
impl SchemaExecutor
Sourcepub fn execute_create_schema(
stmt: &CreateSchemaStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_create_schema( stmt: &CreateSchemaStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute CREATE SCHEMA
Sourcepub fn execute_drop_schema(
stmt: &DropSchemaStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_drop_schema( stmt: &DropSchemaStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute DROP SCHEMA
Sourcepub fn execute_set_schema(
stmt: &SetSchemaStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_set_schema( stmt: &SetSchemaStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute SET SCHEMA
Sourcepub fn execute_set_catalog(
stmt: &SetCatalogStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_set_catalog( stmt: &SetCatalogStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute SET CATALOG
Sourcepub fn execute_set_names(
stmt: &SetNamesStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_set_names( stmt: &SetNamesStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute SET NAMES
Sourcepub fn execute_set_variable(
stmt: &SetVariableStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_set_variable( stmt: &SetVariableStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute SET SESSION/GLOBAL variable
Sourcepub fn execute_set_time_zone(
stmt: &SetTimeZoneStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_set_time_zone( stmt: &SetTimeZoneStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute SET TIME ZONE
Auto Trait Implementations§
impl Freeze for SchemaExecutor
impl RefUnwindSafe for SchemaExecutor
impl Send for SchemaExecutor
impl Sync for SchemaExecutor
impl Unpin for SchemaExecutor
impl UnwindSafe for SchemaExecutor
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