(&mut self, query: SqlQuery)
| 205 | |
| 206 | pub trait PqFold: PqMapper<RelationExpr, RelationExpr, (), ()> { |
| 207 | fn fold_sql_query(&mut self, query: SqlQuery) -> Result<SqlQuery> { |
| 208 | Ok(SqlQuery { |
| 209 | ctes: query |
| 210 | .ctes |
| 211 | .into_iter() |
| 212 | .map(|c| self.fold_cte(c)) |
| 213 | .try_collect()?, |
| 214 | main_relation: self.fold_sql_relation(query.main_relation)?, |
| 215 | }) |
| 216 | } |
| 217 | |
| 218 | fn fold_sql_relation(&mut self, relation: SqlRelation) -> Result<SqlRelation> { |
| 219 | Ok(match relation { |
nothing calls this directly
no test coverage detected