featherdb_query/planner/cte.rs
1//! Common Table Expression (CTE) types
2
3use super::plan::LogicalPlan;
4
5/// A Common Table Expression definition
6#[derive(Debug, Clone)]
7pub struct CommonTableExpression {
8 /// Name of the CTE
9 pub name: String,
10 /// Optional explicit column names
11 pub columns: Option<Vec<String>>,
12 /// The query that defines the CTE
13 pub query: Box<LogicalPlan>,
14 /// Whether this is a recursive CTE
15 pub recursive: bool,
16}