dynamodbutils

package
v0.0.101 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RETRY_ATTEMPT int64 = 1

Functions

func CreateTable

func CreateTable(definition *dynamodb.CreateTableInput) error

func DeleteAllItems added in v0.0.97

func DeleteAllItems(tableName, projectExpression string) (*string, error)

func DeleteItems added in v0.0.98

func DeleteItems(tableName string, datas <-chan []map[string]types.AttributeValue, bar *progressbar.ProgressBar, done chan bool)

func DeleteTable

func DeleteTable(tableName string) error

func GetDocument added in v0.0.99

func GetDocument(tableName string, documentQuery map[string]types.AttributeValue, res interface{}) (*dynamodb.GetItemOutput, error)

func ScanAsync added in v0.0.98

func ScanAsync(tableName, projectExpression string, ch chan<- []map[string]types.AttributeValue, bar *progressbar.ProgressBar)

func WriteBatchItem added in v0.0.92

func WriteBatchItem(tableName string, items []interface{}) error

func WriteItem

func WriteItem(tableName string, item interface{}) error

Types

type Update

type Update struct {
	Type  UpdateType `json:"type,omitempty"`
	Key   string     `json:"key,omitempty"`
	Value string     `json:"value,omitempty"`
}

type UpdateType

type UpdateType string

Jump to

Keyboard shortcuts

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