Expand description
Iceberg REST API implementation.
To build a rest catalog with configurations
§Example
use std::collections::HashMap;
use iceberg::CatalogBuilder;
use iceberg_catalog_rest::{
REST_CATALOG_PROP_URI, REST_CATALOG_PROP_WAREHOUSE, RestCatalogBuilder,
};
#[tokio::main]
async fn main() {
let catalog = RestCatalogBuilder::default()
.load(
"rest",
HashMap::from([
(
REST_CATALOG_PROP_URI.to_string(),
"http://localhost:8181".to_string(),
),
(
REST_CATALOG_PROP_WAREHOUSE.to_string(),
"s3://warehouse".to_string(),
),
]),
)
.await
.unwrap();
}Structs§
- Commit
Table Request - Request to commit updates to a table.
- Commit
Table Response - Response returned when a table is successfully updated.
- Create
Namespace Request - Create namespace request
- Create
Table Request - Request to create a new table in a namespace.
- Error
Model - Error payload returned in a response with further details on the error
- Error
Response - Wrapper for all non-2xx error responses from the REST API
- List
Namespace Response - Response containing a list of namespace identifiers, with optional pagination support.
- List
Tables Response - Response containing a list of table identifiers, with optional pagination support.
- Load
Table Result - Result returned when a table is successfully loaded or created.
- Namespace
Response - Namespace response
- Register
Table Request - Request to register a table using an existing metadata file location.
- Rename
Table Request - Request to rename a table from one identifier to another.
- Rest
Catalog - Rest catalog implementation.
- Rest
Catalog Builder - Builder for
RestCatalog. - Storage
Credential - Storage credential for a specific location prefix.
- Update
Namespace Properties Request - Request to update properties on a namespace.
- Update
Namespace Properties Response - Response from updating namespace properties, indicating which properties were changed.
Constants§
- REST_
CATALOG_ PROP_ URI - REST catalog URI
- REST_
CATALOG_ PROP_ WAREHOUSE - REST catalog warehouse location