Extract the subquery from a `TableFactor::Derived`.
(factor: &ast::TableFactor)
| 287 | |
| 288 | /// Extract the subquery from a `TableFactor::Derived`. |
| 289 | pub fn subquery_from_factor(factor: &ast::TableFactor) -> Option<&ast::Query> { |
| 290 | match factor { |
| 291 | ast::TableFactor::Derived { subquery, .. } => Some(subquery), |
| 292 | _ => None, |
| 293 | } |
| 294 | } |
no outgoing calls
no test coverage detected