Skip to main content

datafusion_catalog/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
3// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
4
5#![doc(
6    html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg",
7    html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
8)]
9#![cfg_attr(docsrs, feature(doc_cfg))]
10// Make sure fast / cheap clones on Arc are explicit:
11// https://github.com/apache/datafusion/issues/11143
12#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
13#![cfg_attr(test, allow(clippy::needless_pass_by_value))]
14
15//! Default implementations of catalogs and schemas.
16//!
17//! The catalog interfaces are defined in [`datafusion_session`] and re-exported
18//! by this crate.
19//!
20//! Implementations
21//! * Information schema: [`information_schema`]
22//! * Simple memory based catalog: [`MemoryCatalogProviderList`], [`MemoryCatalogProvider`], [`MemorySchemaProvider`]
23//! * Listing schema: [`listing_schema`]
24
25pub mod cte_worktable;
26pub mod default_table_source;
27pub mod empty;
28pub mod information_schema;
29pub mod listing_schema;
30pub mod memory;
31pub mod stream;
32pub mod streaming;
33pub mod view;
34
35mod r#async;
36mod catalog;
37mod dynamic_file;
38mod schema;
39mod table;
40
41pub use r#async::*;
42pub use catalog::*;
43pub use datafusion_session::Session;
44pub use dynamic_file::catalog::*;
45pub use memory::{
46    MemTable, MemoryCatalogProvider, MemoryCatalogProviderList, MemorySchemaProvider,
47};
48pub use schema::*;
49pub use table::*;