iceberg_catalog_glue/lib.rs
1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements. See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership. The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License. You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied. See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18//! Iceberg Glue Catalog implementation.
19//!
20//! To build a glue catalog with configurations
21//! # Example
22//!
23//! ```rust, no_run
24//! use std::collections::HashMap;
25//!
26//! use iceberg::CatalogBuilder;
27//! use iceberg_catalog_glue::{GLUE_CATALOG_PROP_WAREHOUSE, GlueCatalogBuilder};
28//!
29//! #[tokio::main]
30//! async fn main() {
31//! let catalog = GlueCatalogBuilder::default()
32//! .load(
33//! "glue",
34//! HashMap::from([(
35//! GLUE_CATALOG_PROP_WAREHOUSE.to_string(),
36//! "s3://warehouse".to_string(),
37//! )]),
38//! )
39//! .await
40//! .unwrap();
41//! }
42//! ```
43
44#![deny(missing_docs)]
45
46mod catalog;
47mod error;
48mod schema;
49mod utils;
50pub use catalog::*;
51pub use utils::{
52 AWS_ACCESS_KEY_ID, AWS_PROFILE_NAME, AWS_REGION_NAME, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN,
53};