(&self, name: &str)
| 496 | |
| 497 | impl SchemaView for SchemaViewer { |
| 498 | fn table_id(&self, name: &str) -> Option<TableId> { |
| 499 | match name { |
| 500 | "users" => Some(TableId(0)), |
| 501 | "admins" => Some(TableId(1)), |
| 502 | "player" => Some(TableId(2)), |
| 503 | _ => None, |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | fn schema_for_table(&self, table_id: TableId) -> Option<Arc<TableOrViewSchema>> { |
| 508 | match table_id.idx() { |