MCPcopy Create free account
hub / github.com/PRQL/prql / fold_cte

Method fold_cte

prqlc/prqlc/src/sql/pq/ast.rs:227–238  ·  view source on GitHub ↗
(&mut self, cte: Cte)

Source from the content-addressed store, hash-verified

225 }
226
227 fn fold_cte(&mut self, cte: Cte) -> Result<Cte> {
228 Ok(Cte {
229 tid: cte.tid,
230 kind: match cte.kind {
231 CteKind::Normal(rel) => CteKind::Normal(self.fold_sql_relation(rel)?),
232 CteKind::Loop { initial, step } => CteKind::Loop {
233 initial: self.fold_sql_relation(initial)?,
234 step: self.fold_sql_relation(step)?,
235 },
236 },
237 })
238 }
239}

Callers 2

fold_sql_queryMethod · 0.80
fold_sql_queryMethod · 0.80

Implementers 1

postprocess.rsprqlc/prqlc/src/sql/pq/postprocess.rs

Calls 1

fold_sql_relationMethod · 0.45

Tested by

no test coverage detected