pub struct TriggerExecutor { /* private fields */ }Expand description
Trigger 실행 엔진
Implementations§
Source§impl TriggerExecutor
impl TriggerExecutor
Sourcepub fn register_all(&mut self, triggers: Vec<Trigger>)
pub fn register_all(&mut self, triggers: Vec<Trigger>)
모든 Trigger 등록
Sourcepub fn unregister(&mut self, name: &str) -> bool
pub fn unregister(&mut self, name: &str) -> bool
Trigger 제거
Sourcepub fn list_triggers(&self) -> &[Trigger]
pub fn list_triggers(&self) -> &[Trigger]
등록된 모든 Trigger 조회
Sourcepub fn fire_before(
&self,
db: &Database,
operation: TriggerOperation,
table: &str,
) -> DbxResult<()>
pub fn fire_before( &self, db: &Database, operation: TriggerOperation, table: &str, ) -> DbxResult<()>
BEFORE 이벤트 처리
Sourcepub fn fire_after(
&self,
db: &Database,
operation: TriggerOperation,
table: &str,
) -> DbxResult<()>
pub fn fire_after( &self, db: &Database, operation: TriggerOperation, table: &str, ) -> DbxResult<()>
AFTER 이벤트 처리
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TriggerExecutor
impl RefUnwindSafe for TriggerExecutor
impl Send for TriggerExecutor
impl Sync for TriggerExecutor
impl Unpin for TriggerExecutor
impl UnsafeUnpin 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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