Registers a table. The catalog and schema are provided by default.
(mut self, table: &str, source: Arc<dyn TableSource>)
| 2628 | /// |
| 2629 | /// The catalog and schema are provided by default. |
| 2630 | pub fn with_table(mut self, table: &str, source: Arc<dyn TableSource>) -> Self { |
| 2631 | self.tables.insert( |
| 2632 | ResolvedTableReference { |
| 2633 | catalog: "default".to_string().into(), |
| 2634 | schema: "public".to_string().into(), |
| 2635 | table: table.to_string().into(), |
| 2636 | }, |
| 2637 | source, |
| 2638 | ); |
| 2639 | self |
| 2640 | } |
| 2641 | |
| 2642 | /// Sets the `return_expr_planners` flag to true. |
| 2643 | pub fn with_expr_planners(self) -> Self { |
no test coverage detected