dynamodbutils

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 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 DeleteTable

func DeleteTable(tableName string) error

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 Projector added in v0.0.97

type Projector interface {
	GetID() string
}

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