Resolve tables from a FROM clause.
(
catalog: &dyn SqlCatalog,
from: &[sqlparser::ast::TableWithJoins],
)
| 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, |
nothing calls this directly
no test coverage detected