(info: CollectionInfo)
| 379 | } |
| 380 | |
| 381 | fn scope_with(info: CollectionInfo) -> TableScope { |
| 382 | let mut scope = TableScope::new(); |
| 383 | scope |
| 384 | .add(ResolvedTable { |
| 385 | name: info.name.clone(), |
| 386 | alias: None, |
| 387 | info, |
| 388 | }) |
| 389 | .expect("add failed"); |
| 390 | scope |
| 391 | } |
| 392 | |
| 393 | /// A double-quoted identifier resolves as a column name (case-preserved). |
| 394 | /// `"userId"` is parsed by the SQL layer as `Expr::Identifier` with |