pub struct EventLifecycleContext<'a> {
pub identities: CatalogIdentityReservationContext<'a>,
pub lookup: EventLookupContext<'a>,
pub catalog: EventCatalogContext<'a>,
pub writer: &'a dyn SchemaStatementWriter,
pub notices: &'a NoticeQueue,
pub views: &'a dyn ViewCreationTransactions,
pub constraint_names: ConstraintNameContext<'a>,
pub pending: &'a dyn ConstraintTriggerEvents,
}Fields§
§identities: CatalogIdentityReservationContext<'a>§lookup: EventLookupContext<'a>§catalog: EventCatalogContext<'a>§writer: &'a dyn SchemaStatementWriter§notices: &'a NoticeQueue§views: &'a dyn ViewCreationTransactions§constraint_names: ConstraintNameContext<'a>§pending: &'a dyn ConstraintTriggerEventsImplementations§
Source§impl EventLifecycleContext<'_>
impl EventLifecycleContext<'_>
pub fn register_rule(&self, definition: CreateRule) -> Result<(), SQLError>
pub fn drop_rule_sql(&self, statement: &DropRule) -> Result<(), SQLError>
pub fn drop_rule(&self, statement: &DropRule) -> Result<(), SQLError>
pub fn rename_rule( &self, table: &str, from: &str, to: &str, ) -> Result<(), SQLError>
pub fn set_rule_enable_mode( &self, table: &str, name: &str, mode: EventEnableMode, ) -> Result<(), SQLError>
pub fn register_trigger( &self, definition: CreateTrigger, ) -> Result<(), SQLError>
pub fn drop_trigger_sql(&self, statement: &DropTrigger) -> Result<(), SQLError>
pub fn drop_trigger(&self, statement: &DropTrigger) -> Result<(), SQLError>
pub fn rename_trigger( &self, table: &str, from: &str, to: &str, ) -> Result<(), SQLError>
pub fn rename_trigger_constraint( &self, table: &str, from: &str, to: &str, ) -> Result<(), SQLError>
pub fn set_trigger_enable_mode( &self, table: &str, name: Option<&str>, mode: EventEnableMode, ) -> Result<(), SQLError>
Source§impl EventLifecycleContext<'_>
impl EventLifecycleContext<'_>
pub fn rewrite_event_routine_identity( &self, target: &FunctionBinding, new_name: &str, ) -> Result<(), SQLError>
pub fn drop_relation_events_inner( &self, relation: &RelationIdentity, ) -> StorageBackendResult<()>
pub fn rename_event_column_inner( &self, table: &str, from: &str, to: &str, ) -> StorageBackendResult<()>
pub fn finish_rule_column_drop( &self, prepared: PreparedRuleColumnDrop, ) -> StorageBackendResult<()>
pub fn handle_drop_column_event_dependencies( &self, table: &str, column: &str, cascade: bool, ) -> Result<(), SQLError>
Trait Implementations§
Source§impl<'a> Clone for EventLifecycleContext<'a>
impl<'a> Clone for EventLifecycleContext<'a>
impl<'a> Copy for EventLifecycleContext<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EventLifecycleContext<'a>
impl<'a> !Send for EventLifecycleContext<'a>
impl<'a> !Sync for EventLifecycleContext<'a>
impl<'a> !UnwindSafe for EventLifecycleContext<'a>
impl<'a> Freeze for EventLifecycleContext<'a>
impl<'a> Unpin for EventLifecycleContext<'a>
impl<'a> UnsafeUnpin for EventLifecycleContext<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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