Documentation ¶
Index ¶
- func CreateNewSession() *session.Session
- func GetDynamoInstance() *dynamodb.DynamoDB
- func InsertItem(svc *dynamodb.DynamoDB, item interface{}, tableName string) error
- func Query(svc *dynamodb.DynamoDB, values interface{}, tableName string, queryExp string, ...) ([]map[string]*dynamodb.AttributeValue, error)
- func UpdateItem(svc *dynamodb.DynamoDB, values interface{}, keys interface{}, tableName string, ...) (*dynamodb.UpdateItemOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewSession ¶
CreateNewSession creates a new dynamodb session
func GetDynamoInstance ¶
GetDynamoInstance returns a new dynamodb session instance
func InsertItem ¶
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.
Click to show internal directories.
Click to hide internal directories.