ExIceberg.Catalog.RestCatalog (ExIceberg v0.1.0)
Module to interact with the REST catalog of Apache Iceberg.
Summary
Types
Functions
Link to this function
create_namespace(catalog, namespace, properties)
Creates a new namespace in the catalog.
Parameters
catalog
: The catalog structnamespace
: The name of the namespaceproperties
: A map of properties for the namespace
Examples
iex> catalog = ExIceberg.Catalog.RestCatalog.new("my_catalog", %{"uri" => "http://localhost:8181"})
iex> ExIceberg.Catalog.RestCatalog.create_namespace(catalog, "new_namespace", %{"property" => "value"})
:ok
Link to this function
new(name, properties, http_client \\ ExIceberg.ReqClient)
Initializes a new RestCatalog.
Parameters
name
: The name of the catalogproperties
: A map of properties for the catalog
Examples
iex> ExIceberg.Catalog.RestCatalog.new("my_catalog", %{"uri" => "http://localhost:8181"})
%ExIceberg.Catalog.RestCatalog{
name: "my_catalog",
properties: %{"uri" => "http://localhost:8181"},
http_client: ExIceberg.ReqClient
}