Struct datafusion_cli::catalog::DynamicFileCatalog
source · pub struct DynamicFileCatalog { /* private fields */ }Expand description
Wraps another catalog, automatically creating table providers for local files if needed
Implementations§
source§impl DynamicFileCatalog
impl DynamicFileCatalog
pub fn new(
inner: Arc<dyn CatalogList>,
state: Weak<RwLock<SessionState>>
) -> Self
Trait Implementations§
source§impl CatalogList for DynamicFileCatalog
impl CatalogList for DynamicFileCatalog
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the catalog list as
Any
so that it can be downcast to a specific implementation.source§fn register_catalog(
&self,
name: String,
catalog: Arc<dyn CatalogProvider>
) -> Option<Arc<dyn CatalogProvider>>
fn register_catalog(
&self,
name: String,
catalog: Arc<dyn CatalogProvider>
) -> Option<Arc<dyn CatalogProvider>>
Adds a new catalog to this catalog list
If a catalog of the same name existed before, it is replaced in the list and returned.