option

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteItemInput

type DeleteItemInput func(req *dynamodb.DeleteItemInput)

The DeleteItemInput type is an adapter to change a parameter in dynamodb.DeleteItemInput

func DeleteCondition

func DeleteCondition(cond string) DeleteItemInput

DeleteCondition sets a condition expression in dynamodb.DeleteItemInput.

func DeleteExpressionAttributeName

func DeleteExpressionAttributeName(key, placeholder string) DeleteItemInput

DeleteExpressionAttributeName sets ExpressionAttributeNames in dynamodb.DeleteItemInput.

func DeleteExpressionAttributeValue

func DeleteExpressionAttributeValue(placeholder string, value *dynamodb.AttributeValue) DeleteItemInput

DeleteExpressionAttributeValue sets an ExpressionAttributeValues in dynamodb.DeleteItemInput.

type GetItemInput

type GetItemInput func(req *dynamodb.GetItemInput)

The GetItemInput type is an adapter to change a parameter in dynamodb.GetItemInput

func ConsistentRead

func ConsistentRead() GetItemInput

ConsistentRead enables ConsistentRead in dynamodb.GetItemInput.

type PutItemInput

type PutItemInput func(req *dynamodb.PutItemInput)

The PutItemInput type is an adapter to change a parameter in dynamodb.PutItemInput

func PutCondition

func PutCondition(cond string) PutItemInput

PutCondition sets a condition expression in dynamodb.PutItemInput.

func PutExpressionAttributeName

func PutExpressionAttributeName(key, placeholder string) PutItemInput

PutExpressionAttributeName sets an ExpressionAttributeNames in dynamodb.PutItemInput.

func PutExpressionAttributeValue

func PutExpressionAttributeValue(placeholder string, value *dynamodb.AttributeValue) PutItemInput

PutExpressionAttributeValue sets an ExpressionAttributeValues in dynamodb.PutItemInput.

type QueryInput

type QueryInput func(req *dynamodb.QueryInput) error

The QueryInput type is an adapter to change a parameter in dynamodb.QueryInput

func ExclusiveStartKey

func ExclusiveStartKey(v interface{}) QueryInput

ExclusiveStartKey sets an ExclusiveStartKey in dynamodb.QueryInput.

func Index

func Index(indexName string) QueryInput

Index sets an index name in dynamodb.QueryInput.

func Limit

func Limit(limit int64) QueryInput

Limit sets limit parameter in dynamodb.QueryInput.

func ProjectionExpression

func ProjectionExpression(e string) QueryInput

ProjectionExpression sets ProjectionExpression in dynamodb.QueryInput.

func QueryConsistentRead

func QueryConsistentRead() QueryInput

QueryConsistentRead enables consistent read in dynamodb.QueryInput.

func QueryExpressionAttributeName

func QueryExpressionAttributeName(key, placeholder string) QueryInput

QueryExpressionAttributeName sets an ExpressionAttributeNames in dynamodb.QueryInput.

func QueryExpressionAttributeValue

func QueryExpressionAttributeValue(placeholder string, value *dynamodb.AttributeValue) QueryInput

QueryExpressionAttributeValue sets an ExpressionAttributeValues in dynamodb.QueryInput.

func QueryFilterExpression

func QueryFilterExpression(expression string) QueryInput

QueryFilterExpression sets FilterExpression in dynamodb.QueryInput.

func QueryKeyConditionExpression

func QueryKeyConditionExpression(expression string) QueryInput

QueryKeyConditionExpression sets KeyConditionExpression in dynamodb.QueryInput.

func Reverse

func Reverse() QueryInput

Reverse sets ScanIndexForward false in dynamodb.QueryInput.

If ScanIndexForward is true, DynamoDB returns the results in ascending order, by range key. This is the default behavior.

If ScanIndexForward is false, DynamoDB returns the results in descending order, by range key.

type UpdateItemInput

type UpdateItemInput func(req *dynamodb.UpdateItemInput)

The UpdateItemInput type is an adapter to change a parameter in dynamodb.UpdateItemInput

func UpdateCondition

func UpdateCondition(cond string) UpdateItemInput

UpdateCondition sets a condition expression in dynamodb.UpdateItemInput.

func UpdateExpression

func UpdateExpression(exp string) UpdateItemInput

UpdateExpression sets a update expression in dynamodb.UpdateItemInput.

func UpdateExpressionAttributeName

func UpdateExpressionAttributeName(key, placeholder string) UpdateItemInput

UpdateExpressionAttributeName sets an ExpressionAttributeNames in dynamodb.UpdateItemInput.

func UpdateExpressionAttributeValue

func UpdateExpressionAttributeValue(placeholder string, value *dynamodb.AttributeValue) UpdateItemInput

UpdateExpressionAttributeValue sets an ExpressionAttributeValues in dynamodb.UpdateItemInput.

func UpdateReturnValues

func UpdateReturnValues(returnValue string) UpdateItemInput

UpdateReturnValues sets the attributes to return in dynamodb.UpdateItemOutput. Default is dynamodb.ReturnValueNone.

Jump to

Keyboard shortcuts

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