pub struct EventLookupContext<'a> {
pub analysis: EventAnalysisContext<'a>,
pub partitions: &'a dyn EventPartitionCatalog,
pub registry: &'a dyn EventCatalogReads,
pub state: &'a dyn EventLookupState,
}Fields§
§analysis: EventAnalysisContext<'a>§partitions: &'a dyn EventPartitionCatalog§registry: &'a dyn EventCatalogReads§state: &'a dyn EventLookupStateImplementations§
Source§impl EventLookupContext<'_>
impl EventLookupContext<'_>
pub fn rule_definitions_for( &self, table: &str, event: RuleEvent, ) -> Result<Vec<StoredRule>, SQLError>
pub fn rules_for( &self, table: &str, event: RuleEvent, ) -> Result<Vec<StoredRule>, SQLError>
pub fn relation_has_rules(&self, table: &str) -> Result<bool, SQLError>
pub fn triggers_for( &self, table: &str, timing: TriggerTiming, event: TriggerEvent, row: bool, updated_columns: &[String], ) -> Result<Vec<StoredTrigger>, SQLError>
pub fn has_trigger_definition( &self, table: &str, timing: TriggerTiming, event: TriggerEvent, row: bool, ) -> Result<bool, SQLError>
pub fn has_row_triggers( &self, table: &str, event: TriggerEvent, ) -> Result<bool, SQLError>
pub fn list_triggers(&self) -> Vec<StoredTrigger>
Source§impl EventLookupContext<'_>
impl EventLookupContext<'_>
pub fn partition_trigger_sources( &self, table: &str, ) -> Result<Vec<RelationIdentity>, SQLError>
pub fn ensure_partition_trigger_name_available( &self, relation: &RelationIdentity, name: &str, replacing_local: bool, ) -> Result<(), SQLError>
pub fn rule_privilege_subject(&self, table: &str) -> Result<String, SQLError>
pub fn constraint_trigger_by_constraint_name( &self, table: &str, name: &str, ) -> Result<Option<StoredTrigger>, SQLError>
Source§impl EventLookupContext<'_>
impl EventLookupContext<'_>
pub fn rules_depending_on_relations( &self, relations: &[String], ) -> Result<Vec<(RelationIdentity, String)>, String>
pub fn rules_depending_on_routine( &self, target: &FunctionBinding, ) -> Result<Vec<(RelationIdentity, String)>, String>
pub fn triggers_depending_on_routine( &self, target: &FunctionBinding, ) -> Result<Vec<(String, String)>, SQLError>
pub fn prepare_rule_column_drop( &self, table: &str, column: &str, ) -> Result<PreparedRuleColumnDrop, String>
pub fn column_event_dependencies( &self, table: &str, column: &str, ) -> Result<EventColumnDependencies, SQLError>
Trait Implementations§
Source§impl<'a> Clone for EventLookupContext<'a>
impl<'a> Clone for EventLookupContext<'a>
Source§fn clone(&self) -> EventLookupContext<'a>
fn clone(&self) -> EventLookupContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for EventLookupContext<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EventLookupContext<'a>
impl<'a> !Send for EventLookupContext<'a>
impl<'a> !Sync for EventLookupContext<'a>
impl<'a> !UnwindSafe for EventLookupContext<'a>
impl<'a> Freeze for EventLookupContext<'a>
impl<'a> Unpin for EventLookupContext<'a>
impl<'a> UnsafeUnpin for EventLookupContext<'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