(
scx: &StatementContext,
stmt: SelectStatement<Aug>,
)
| 185 | } |
| 186 | |
| 187 | pub fn describe_select( |
| 188 | scx: &StatementContext, |
| 189 | stmt: SelectStatement<Aug>, |
| 190 | ) -> Result<StatementDesc, PlanError> { |
| 191 | if let Some(desc) = side_effecting_func::describe_select_if_side_effecting(scx, &stmt)? { |
| 192 | return Ok(StatementDesc::new(Some(desc))); |
| 193 | } |
| 194 | |
| 195 | let query::PlannedRootQuery { desc, .. } = |
| 196 | query::plan_root_query(scx, stmt.query, QueryLifetime::OneShot)?; |
| 197 | Ok(StatementDesc::new(Some(desc))) |
| 198 | } |
| 199 | |
| 200 | pub fn plan_select( |
| 201 | scx: &StatementContext, |
no test coverage detected