uqa_engine/capabilities/
object_removal.rs1use crate::Engine;
10use uqa_execution::schema::deletion::{CatalogRemovalContext, CatalogRemovalInputs};
11
12impl CatalogRemovalInputs for Engine {
13 fn catalog_removal_context(&self) -> CatalogRemovalContext<'_> {
14 CatalogRemovalContext {
15 comments: self,
16 catalog: self.catalog_execution(),
17 locks: self,
18 shared_locks: self,
19 identities: self,
20 tables: self.table_removal_context(),
21 foreign_tables: self.foreign_removal_context(),
22 foreign_servers: self.foreign_server_removal_publication(),
23 foreign_wrappers:
24 uqa_execution::schema::foreign_wrapper_removal::ForeignWrapperRemovalPublication {
25 registry: self,
26 catalog: self.storage.catalog.as_deref(),
27 changes: self,
28 },
29 indexes: self.index_removal_context(),
30 domains: self.domain_dependency_context(),
31 composites: self.composite_attribute_context(),
32 schemas: self.empty_schema_removal_context(),
33 events: self,
34 notices: self.query_runtime_view().notices,
35 }
36 }
37}