MCPcopy Create free account
hub / github.com/apache/datafusion / table_names

Method table_names

datafusion-examples/examples/data_io/catalog.rs:181–184  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

179#[async_trait]
180impl SchemaProvider for DirSchema {
181 fn table_names(&self) -> Vec<String> {
182 let tables = self.tables.read().unwrap();
183 tables.keys().cloned().collect::<Vec<_>>()
184 }
185
186 async fn table(&self, name: &str) -> Result<Option<Arc<dyn TableProvider>>> {
187 let tables = self.tables.read().unwrap();

Callers 2

call_with_argsMethod · 0.45
tablesMethod · 0.45

Calls 2

readMethod · 0.80
clonedMethod · 0.45

Tested by

no test coverage detected