dynamodb

package
v0.0.0-...-f190048 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateItem

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

CreateItem creates the given item in the given DynamoDB table.

func GetAllItems

func GetAllItems(tableName string) ([]map[string]types.AttributeValue, error)

GetAllItems returns all items from the given DynamoDB table. The returned value is direct assigned from the output of the ScanInput function from the DynamoDB client.

func GetItem

func GetItem(tableName string, input map[string]types.AttributeValue) (map[string]types.AttributeValue, error)

GetItem returns an item from the given DynamoDB table with the given input, which will be used as a key to query the table. The returned value is direct assigned from the output of the GetItem function from the DynamoDB client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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