Documentation
¶
Overview ¶
Package dynamodb implements the Java-compatible AWS DynamoDB catalog. Import it to register the "dynamodb" catalog type.
Index ¶
- Constants
- type Catalog
- func (*Catalog) CatalogType() catalog.Type
- func (c *Catalog) CheckNamespaceExists(ctx context.Context, ns table.Identifier) (bool, error)
- func (c *Catalog) CheckTableExists(ctx context.Context, ident table.Identifier) (bool, error)
- func (c *Catalog) Close() error
- func (c *Catalog) CommitTable(ctx context.Context, ident table.Identifier, requirements []table.Requirement, ...) (table.Metadata, string, error)
- func (c *Catalog) CreateNamespace(ctx context.Context, ns table.Identifier, props iceberg.Properties) error
- func (c *Catalog) CreateTable(ctx context.Context, ident table.Identifier, schema *iceberg.Schema, ...) (*table.Table, error)
- func (c *Catalog) DropNamespace(ctx context.Context, ns table.Identifier) error
- func (c *Catalog) DropTable(ctx context.Context, ident table.Identifier) error
- func (c *Catalog) ListNamespaces(ctx context.Context, parent table.Identifier) ([]table.Identifier, error)
- func (c *Catalog) ListTables(ctx context.Context, ns table.Identifier) iter.Seq2[table.Identifier, error]
- func (c *Catalog) LoadNamespaceProperties(ctx context.Context, ns table.Identifier) (iceberg.Properties, error)
- func (c *Catalog) LoadTable(ctx context.Context, ident table.Identifier) (*table.Table, error)
- func (c *Catalog) Name() string
- func (c *Catalog) PurgeTable(ctx context.Context, ident table.Identifier) error
- func (c *Catalog) RegisterTable(ctx context.Context, ident table.Identifier, location string) (*table.Table, error)
- func (c *Catalog) RenameTable(ctx context.Context, from, to table.Identifier) (*table.Table, error)
- func (c *Catalog) UpdateNamespaceProperties(ctx context.Context, ns table.Identifier, removals []string, ...) (catalog.PropertiesUpdateSummary, error)
Constants ¶
const ( TableNameKey = "dynamodb.table-name" EndpointKey = "dynamodb.endpoint" DefaultLocationKey = "default_location" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog stores metadata pointers and namespaces in one DynamoDB table. The backing table layout is shared with Java's DynamoDbCatalog. Namespace emptiness checks use consistent reads; concurrent namespace deletion is coordinated with Go writers, while Java writers retain Java's weaker behavior.
func NewCatalog ¶
func NewCatalog(ctx context.Context, name string, cfg aws.Config, props iceberg.Properties, options ...func(*dynamodb.Options)) (*Catalog, error)
NewCatalog opens a catalog and creates its backing DynamoDB table if absent. cfg supplies AWS credentials, region, and transport. The warehouse property is required; dynamodb.table-name defaults to "iceberg". Options configure the SDK service client, for example an endpoint for DynamoDB Local.
func (*Catalog) CatalogType ¶
func (*Catalog) CheckNamespaceExists ¶
func (*Catalog) CheckTableExists ¶
func (*Catalog) CommitTable ¶
func (*Catalog) CreateNamespace ¶
func (c *Catalog) CreateNamespace(ctx context.Context, ns table.Identifier, props iceberg.Properties) error
func (*Catalog) CreateTable ¶
func (*Catalog) DropNamespace ¶
func (*Catalog) ListNamespaces ¶
func (c *Catalog) ListNamespaces(ctx context.Context, parent table.Identifier) ([]table.Identifier, error)
func (*Catalog) ListTables ¶
func (c *Catalog) ListTables(ctx context.Context, ns table.Identifier) iter.Seq2[table.Identifier, error]
func (*Catalog) LoadNamespaceProperties ¶
func (c *Catalog) LoadNamespaceProperties(ctx context.Context, ns table.Identifier) (iceberg.Properties, error)
func (*Catalog) PurgeTable ¶
func (*Catalog) RegisterTable ¶
func (*Catalog) RenameTable ¶
func (*Catalog) UpdateNamespaceProperties ¶
func (c *Catalog) UpdateNamespaceProperties(ctx context.Context, ns table.Identifier, removals []string, updates iceberg.Properties) (catalog.PropertiesUpdateSummary, error)