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

Method resolve_from

nodedb-sql/src/resolver/columns.rs:154–166  ·  view source on GitHub ↗

Resolve tables from a FROM clause.

(
        catalog: &dyn SqlCatalog,
        from: &[sqlparser::ast::TableWithJoins],
    )

Source from the content-addressed store, hash-verified

152
153 /// Resolve tables from a FROM clause.
154 pub fn resolve_from(
155 catalog: &dyn SqlCatalog,
156 from: &[sqlparser::ast::TableWithJoins],
157 ) -> Result<Self> {
158 let mut scope = Self::new();
159 for table_with_joins in from {
160 scope.resolve_table_factor(catalog, &table_with_joins.relation)?;
161 for join in &table_with_joins.joins {
162 scope.resolve_table_factor(catalog, &join.relation)?;
163 }
164 }
165 Ok(scope)
166 }
167
168 fn resolve_table_factor(
169 &mut self,

Callers

nothing calls this directly

Calls 1

resolve_table_factorMethod · 0.80

Tested by

no test coverage detected