uqa_execution/schema/
view_creation.rs1pub mod context;
9mod materialized;
10mod publication;
11mod registration;
12pub use materialized::{refresh_materialized_view, register_materialized_view_plan};
13pub use registration::{register_view, register_view_plan};
14use uqa_sql::plan::QueryPlan;
15
16pub struct ViewRegistration<'a> {
17 pub name: &'a str,
18 pub column_names: &'a [String],
19 pub plan: QueryPlan,
20 pub or_replace: bool,
21 pub persistence: uqa_sql::ast::RelationPersistence,
22 pub options: &'a [(String, String)],
23 pub params: &'a [uqa_sql::SQLParam],
24}
25
26pub struct MaterializedViewRegistration<'a> {
27 pub name: &'a str,
28 pub column_names: &'a [String],
29 pub plan: QueryPlan,
30 pub if_not_exists: bool,
31 pub with_no_data: bool,
32 pub options: &'a [(String, String)],
33 pub params: &'a [uqa_sql::SQLParam],
34}