(&self, name: &str)
| 24 | |
| 25 | impl<T: StateView> SchemaView for SchemaViewer<'_, T> { |
| 26 | fn table_id(&self, name: &str) -> Option<TableId> { |
| 27 | self.tx |
| 28 | .table_id_from_name_or_alias(name) |
| 29 | .ok() |
| 30 | .flatten() |
| 31 | .and_then(|table_id| self.schema_for_table(table_id)) |
| 32 | .filter(|schema| self.auth.has_read_access(schema.table_access)) |
| 33 | .map(|schema| schema.table_id) |
| 34 | } |
| 35 | |
| 36 | fn schema_for_table(&self, table_id: TableId) -> Option<Arc<TableOrViewSchema>> { |
| 37 | self.tx |
nothing calls this directly
no test coverage detected