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 catalog: self.catalog_execution(),
16 locks: self,
17 shared_locks: self,
18 identities: self,
19 tables: self.table_removal_context(),
20 foreign_tables: self.foreign_removal_context(),
21 foreign_servers: self.foreign_server_removal_publication(),
22 foreign_wrappers:
23 uqa_execution::schema::foreign_wrapper_removal::ForeignWrapperRemovalPublication {
24 registry: self,
25 catalog: self.storage.catalog.as_deref(),
26 changes: self,
27 },
28 indexes: self.index_removal_context(),
29 domains: self.domain_dependency_context(),
30 composites: self.composite_attribute_context(),
31 schemas: self.empty_schema_removal_context(),
32 events: self,
33 notices: self.query_runtime_view().notices,
34 }
35 }
36}