pub struct Cte {
pub alias: TableAlias,
pub query: Box<Query>,
pub from: Option<Ident>,
pub materialized: Option<CteAsMaterialized>,
pub closing_paren_token: AttachedToken,
}Expand description
A single CTE (used after WITH): <alias> [(col1, col2, ...)] AS <materialized> ( <query> )
The names in the column list before AS, when specified, replace the names
of the columns returned by the query. The parser does not validate that the
number of columns in the query matches the number of columns in the query.
The CTE alias (name introduced before the AS keyword).
The query that defines the CTE body.
Optional FROM identifier for materialized CTEs.
Optional AS MATERIALIZED / AS NOT MATERIALIZED hint.
Token for the closing parenthesis of the CTE definition.