ExIceberg.Catalog.RestCatalog (ExIceberg v0.1.0)

Module to interact with the REST catalog of Apache Iceberg.

Summary

Types

@type t() :: %ExIceberg.Catalog.RestCatalog{
  http_client: module(),
  name: String.t(),
  properties: map()
}

Functions

Link to this function

create_namespace(catalog, namespace, properties)

Creates a new namespace in the catalog.

Parameters

  • catalog: The catalog struct
  • namespace: The name of the namespace
  • properties: 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 catalog
  • properties: 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
}