Documentation ¶
Overview ¶
Package dynamo wraps the AWS DynamoDB SDK
To insert a row:
svc, _ := dynamo.New(conf) row := &types.Row{...} count, err := dynamo.Insert(svc, row)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
CreateTable creates a dynamoDB table
func DeleteTable ¶
DeleteTable deletes the DynamoDB table
func Insert ¶
Insert takes in a row, and increments the atomic key value by row.Incr using the query:
SET [ATOMIC KEY] = IF_NOT_EXISTS(VALUE, 0) + VALUE
This will row lock and can create hotspots if used on the same key too often, for high volume writes on a single key use the dynatomic async wrapper for an eventually consistent result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.