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

Method catalog

datafusion/core/src/execution/context/mod.rs:1907–1909  ·  view source on GitHub ↗

Retrieves a [`CatalogProvider`] instance by name

(&self, name: &str)

Source from the content-addressed store, hash-verified

1905
1906 /// Retrieves a [`CatalogProvider`] instance by name
1907 pub fn catalog(&self, name: &str) -> Option<Arc<dyn CatalogProvider>> {
1908 self.state.read().catalog_list().catalog(name)
1909 }
1910
1911 /// Registers a [`TableProvider`] as a table that can be
1912 /// referenced from SQL statements executed against this context.

Callers 11

schema_for_refMethod · 0.45
new_from_existingMethod · 0.45
test_from_existingFunction · 0.45
refresh_catalogsMethod · 0.45
create_catalog_schemaMethod · 0.45
create_catalogMethod · 0.45
drop_schemaMethod · 0.45
find_and_deregisterMethod · 0.45
create_custom_tableFunction · 0.45
create_drop_tableFunction · 0.45

Calls 2

catalog_listMethod · 0.80
readMethod · 0.80

Tested by 4

test_from_existingFunction · 0.36
create_custom_tableFunction · 0.36
create_drop_tableFunction · 0.36