db

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(cfg *config.DynamoDBCopyConfig) error

Copy copy dynamodb items from origin to target table. This performs BatchGetItems from origin dynamodb table, and BatchPutItems to target dynamodb table.

func Dump added in v1.0.3

func Dump(cfg *config.DynamoDBDumpConfig) error

Dump make a file

Types

type DynamoDBConfig

type DynamoDBConfig struct {
	Region    string
	TableName string

	// Endpoint required for local.
	Endpoint string
}

DynamoDBConfig represents required parameters to open a remote session with dynamodb table.

type SyncDynamoDBConfig

type SyncDynamoDBConfig struct {
	Origin *DynamoDBConfig
	Target *DynamoDBConfig
}

SyncDynamoDBConfig includes origin and target dynamodb configs

Jump to

Keyboard shortcuts

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