dynamodb

package
v0.0.0-...-3747a8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the AWS DynamoDB client and implements the DynamoDBClient interface

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient creates a new DynamoDB client

func NewClientWithConfig

func NewClientWithConfig(cfg aws.Config) *Client

NewClientWithConfig creates a new DynamoDB client with custom configuration

func (*Client) Close

func (c *Client) Close() error

Close closes the DynamoDB client (no-op for AWS SDK v2)

func (*Client) CreateTable

func (c *Client) CreateTable(ctx context.Context, config interfaces.MigrationConfig, dryRun bool) error

CreateTable creates a DynamoDB table based on the migration configuration

func (*Client) PutItems

func (c *Client) PutItems(ctx context.Context, tableName string, items []map[string]interface{}, dryRun bool) error

PutItems puts multiple items into a DynamoDB table

func (*Client) TableExists

func (c *Client) TableExists(ctx context.Context, tableName string) (bool, error)

TableExists checks if a table exists in DynamoDB

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL