pub struct EventAnalysisContext<'a> {Show 13 fields
pub catalog: &'a dyn EventRelationCatalog,
pub relations: &'a dyn StoredRelationCatalog,
pub sources: &'a dyn RuleSourceCatalog,
pub routines: &'a dyn RoutineResolution,
pub authority: &'a dyn RoutineExecutionAuthority,
pub privileges: &'a dyn MutationPrivilegeCatalog,
pub foreign_privileges: &'a dyn EventForeignPrivileges,
pub columns: StoredColumnBindingContext<'a>,
pub returning: ReturningAnalysisContext<'a>,
pub stored_routines: CatalogRoutineAnalysisContext<'a>,
pub namespaces: &'a dyn RoutineCompilationCatalog,
pub sequences: &'a dyn StoredQuerySequences,
pub regroles: &'a dyn StoredRegroleResolver,
}Fields§
§catalog: &'a dyn EventRelationCatalog§relations: &'a dyn StoredRelationCatalog§sources: &'a dyn RuleSourceCatalog§routines: &'a dyn RoutineResolution§privileges: &'a dyn MutationPrivilegeCatalog§foreign_privileges: &'a dyn EventForeignPrivileges§columns: StoredColumnBindingContext<'a>§returning: ReturningAnalysisContext<'a>§stored_routines: CatalogRoutineAnalysisContext<'a>§namespaces: &'a dyn RoutineCompilationCatalog§sequences: &'a dyn StoredQuerySequences§regroles: &'a dyn StoredRegroleResolverImplementations§
Source§impl EventAnalysisContext<'_>
impl EventAnalysisContext<'_>
pub fn resolve_rule_relation( &self, name: &str, ) -> Result<RelationIdentity, SQLError>
pub fn rule_relation_columns( &self, name: &str, ) -> Result<Vec<(String, ColumnType)>, SQLError>
pub fn rule_action_target_columns( &self, action: &Statement, ) -> Result<BTreeSet<String>, SQLError>
pub fn validate_rule_definition( &self, definition: &mut CreateRule, lookup_mode: RelationLookupMode, stored_condition_plan: Option<&ExpressionPlan>, stored_condition_binding: Option<&RuleConditionBinding>, ) -> Result<(RelationIdentity, Option<ExpressionPlan>, Option<RuleConditionBinding>, RuleDependencies), SQLError>
Source§impl EventAnalysisContext<'_>
impl EventAnalysisContext<'_>
pub fn resolve_trigger_table( &self, name: &str, ) -> Result<RelationIdentity, SQLError>
pub fn trigger_relation_from_resolution( name: &str, resolution: RelationResolution, ) -> Result<(RelationIdentity, &'static str), SQLError>
pub fn resolve_trigger_relation_kind( &self, name: &str, lookup_mode: RelationLookupMode, ) -> Result<(RelationIdentity, &'static str), SQLError>
pub fn resolve_trigger_function( &self, name: &str, lookup_mode: RelationLookupMode, ) -> Result<Arc<SQLUserFunction>, SQLError>
pub fn resolve_bound_trigger_function( &self, name: &str, object_id: Option<[u8; 16]>, ) -> Result<Arc<SQLUserFunction>, SQLError>
pub fn validate_trigger_definition( &self, definition: &mut CreateTrigger, lookup_mode: RelationLookupMode, ) -> Result<(RelationIdentity, bool), SQLError>
Source§impl EventAnalysisContext<'_>
impl EventAnalysisContext<'_>
pub fn rewrite_rule_routine_references( &self, next_rules: &mut RuleCatalog, target: &FunctionBinding, new_name: &str, ) -> Result<bool, SQLError>
pub fn renamed_event_column( &self, triggers: &TriggerCatalog, rules: &RuleCatalog, relation: &RelationIdentity, from: &str, to: &str, ) -> Result<Option<(TriggerCatalog, RuleCatalog)>, String>
pub fn rewrite_rule_catalog_column( &self, rules: &mut BTreeMap<RelationIdentity, BTreeMap<String, StoredRule>>, dependency: &RuleColumnDependency, relation: &RelationIdentity, from: &str, to: &str, ) -> Result<(), String>
pub fn rebind_rule_column_drop( &self, prepared: &mut PreparedRuleColumnDrop, ) -> Result<(), String>
Source§impl EventAnalysisContext<'_>
impl EventAnalysisContext<'_>
pub fn event_relation_from_resolution( requested: &str, resolution: RelationResolution, ) -> Result<(RelationIdentity, &'static str), SQLError>
pub fn resolve_event_relation_kind( &self, name: &str, lookup_mode: RelationLookupMode, ) -> Result<(RelationIdentity, &'static str), SQLError>
Source§impl EventAnalysisContext<'_>
impl EventAnalysisContext<'_>
pub fn ensure_event_relation_owner( &self, relation: &RelationIdentity, error_kind: Option<&str>, ) -> Result<(), SQLError>
Trait Implementations§
Source§impl<'a> Clone for EventAnalysisContext<'a>
impl<'a> Clone for EventAnalysisContext<'a>
Source§fn clone(&self) -> EventAnalysisContext<'a>
fn clone(&self) -> EventAnalysisContext<'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 EventAnalysisContext<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EventAnalysisContext<'a>
impl<'a> !Send for EventAnalysisContext<'a>
impl<'a> !Sync for EventAnalysisContext<'a>
impl<'a> !UnwindSafe for EventAnalysisContext<'a>
impl<'a> Freeze for EventAnalysisContext<'a>
impl<'a> Unpin for EventAnalysisContext<'a>
impl<'a> UnsafeUnpin for EventAnalysisContext<'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