(
&self,
name: String,
table: Arc<dyn TableProvider>,
)
| 194 | } |
| 195 | |
| 196 | fn register_table( |
| 197 | &self, |
| 198 | name: String, |
| 199 | table: Arc<dyn TableProvider>, |
| 200 | ) -> Result<Option<Arc<dyn TableProvider>>> { |
| 201 | let mut tables = self.tables.write().unwrap(); |
| 202 | log::info!("adding table {name}"); |
| 203 | tables.insert(name, table.clone()); |
| 204 | Ok(Some(table)) |
| 205 | } |
| 206 | |
| 207 | /// If supported by the implementation, removes an existing table from this schema and returns it. |
| 208 | /// If no table of that name exists, returns Ok(None). |
no test coverage detected