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

Method catalog

datafusion-examples/examples/data_io/catalog.rs:289–292  ·  view source on GitHub ↗

Retrieves a specific catalog by name, provided it exists.

(&self, name: &str)

Source from the content-addressed store, hash-verified

287
288 /// Retrieves a specific catalog by name, provided it exists.
289 fn catalog(&self, name: &str) -> Option<Arc<dyn CatalogProvider>> {
290 let cats = self.catalogs.read().unwrap();
291 cats.get(name).cloned()
292 }
293}
294
295fn prepare_example_data() -> Result<TempDir> {

Callers 3

call_with_argsMethod · 0.45
remote_catalogFunction · 0.45
tablesMethod · 0.45

Calls 3

readMethod · 0.80
clonedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected