Expand description
Iceberg s3tables catalog implementation.
To build an s3tables catalog with configurations
§Example
use std::collections::HashMap;
use iceberg::CatalogBuilder;
use iceberg_catalog_s3tables::{
S3TABLES_CATALOG_PROP_ENDPOINT_URL, S3TABLES_CATALOG_PROP_TABLE_BUCKET_ARN,
S3TablesCatalogBuilder,
};
#[tokio::main]
async fn main() {
let catalog = S3TablesCatalogBuilder::default()
.with_endpoint_url("http://localhost:4566")
.load(
"s3tables",
HashMap::from([(
S3TABLES_CATALOG_PROP_TABLE_BUCKET_ARN.to_string(),
"arn:aws:s3tables:us-east-1:123456789012:bucket/my-bucket".to_string(),
)]),
)
.await
.unwrap();
}Structs§
- S3Tables
Catalog - S3Tables catalog implementation.
- S3Tables
Catalog Builder - Builder for
S3TablesCatalog.
Constants§
- S3TABLES_
CATALOG_ PROP_ ENDPOINT_ URL - S3Tables endpoint URL property
- S3TABLES_
CATALOG_ PROP_ TABLE_ BUCKET_ ARN - S3Tables table bucket ARN property