migrator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(tableName string, arn string, repopulateCache bool, scripts []interface{}) (int, error)

Types

type Counter

type Counter map[string]int

func (Counter) Inc

func (c Counter) Inc(key string, delta int)

type PreScanTransformation

type PreScanTransformation interface {
	PreScan(run *TransformationRun) error
}

type ScanTransformation

type ScanTransformation interface {
	GeneratePatches(run *TransformationRun, item map[string]*dynamodb.AttributeValue) ([]*dynamodb.WriteRequest, error)
}

type TransformationAlbumOwner

type TransformationAlbumOwner struct{}

func (*TransformationAlbumOwner) GeneratePatches

type TransformationRun

type TransformationRun struct {
	Session           *session.Session
	DynamoDBClient    *dynamodb.DynamoDB
	DynamoDBTableName string
	TopicARN          string
	Counter           Counter
}

type TransformationUpDateIndex

type TransformationUpDateIndex struct{}

func (TransformationUpDateIndex) PreScan

Jump to

Keyboard shortcuts

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