MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / subquery_from_factor

Function subquery_from_factor

nodedb-sql/src/planner/lateral/plan.rs:289–294  ·  view source on GitHub ↗

Extract the subquery from a `TableFactor::Derived`.

(factor: &ast::TableFactor)

Source from the content-addressed store, hash-verified

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

Callers 2

plan_join_from_selectFunction · 0.85
plan_selectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected