dynamodb

package module
v0.0.0-...-0817939 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewSession

func CreateNewSession() *session.Session

CreateNewSession creates a new dynamodb session

func GetDynamoInstance

func GetDynamoInstance() *dynamodb.DynamoDB

GetDynamoInstance returns a new dynamodb session instance

func InsertItem

func InsertItem(svc *dynamodb.DynamoDB, item interface{}, tableName string) error

InsertItem inserts an item into a table

func Query

func Query(svc *dynamodb.DynamoDB, values interface{}, tableName string,
	queryExp string, indexName string) ([]map[string]*dynamodb.AttributeValue, error)

Query selects the items from a table

func UpdateItem

func UpdateItem(svc *dynamodb.DynamoDB, values interface{}, keys interface{}, tableName string,
	updateExp string) (*dynamodb.UpdateItemOutput, error)

UpdateItem updates an item of a table

Types

This section is empty.

Jump to

Keyboard shortcuts

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