pub struct TriggerExecutor;Expand description
Executor for trigger DDL operations
Implementations§
Source§impl TriggerExecutor
impl TriggerExecutor
Sourcepub fn create_trigger(
db: &mut Database,
stmt: &CreateTriggerStmt,
) -> Result<String, ExecutorError>
pub fn create_trigger( db: &mut Database, stmt: &CreateTriggerStmt, ) -> Result<String, ExecutorError>
Execute a CREATE TRIGGER statement
Sourcepub fn alter_trigger(
db: &mut Database,
stmt: &AlterTriggerStmt,
) -> Result<String, ExecutorError>
pub fn alter_trigger( db: &mut Database, stmt: &AlterTriggerStmt, ) -> Result<String, ExecutorError>
Execute an ALTER TRIGGER statement
Sourcepub fn drop_trigger(
db: &mut Database,
stmt: &DropTriggerStmt,
) -> Result<String, ExecutorError>
pub fn drop_trigger( db: &mut Database, stmt: &DropTriggerStmt, ) -> Result<String, ExecutorError>
Execute a DROP TRIGGER statement
Auto Trait Implementations§
impl Freeze for TriggerExecutor
impl RefUnwindSafe for TriggerExecutor
impl Send for TriggerExecutor
impl Sync for TriggerExecutor
impl Unpin for TriggerExecutor
impl UnwindSafe for TriggerExecutor
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