Documentation ¶
Index ¶
- func NewClient(useTracing bool) *dynamodb.Client
- func QueryTable[T any](ctx context.Context, tablename string, client DynamoDBQueryTableApi, ...) []T
- func ReadAllTableData[T any](ctx context.Context, tablename string, client DynamoDBScanTableAPI) []T
- func UpdateTableItem(ctx context.Context, tablename string, client DynamoDBUpdateItemApi, ...) (*dynamodb.UpdateItemOutput, error)
- type DynamoDBDescribeTableAPI
- type DynamoDBQueryTableApi
- type DynamoDBScanTableAPI
- type DynamoDBUpdateItemApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryTable ¶
func ReadAllTableData ¶
func ReadAllTableData[T any](ctx context.Context, tablename string, client DynamoDBScanTableAPI) []T
func UpdateTableItem ¶
Types ¶
type DynamoDBDescribeTableAPI ¶
type DynamoDBDescribeTableAPI interface { DescribeTable(ctx context.Context, params *dynamodb.DescribeTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DescribeTableOutput, error) }
type DynamoDBQueryTableApi ¶
type DynamoDBQueryTableApi interface { Query(ctx context.Context, params *dynamodb.QueryInput, optFns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error) }
type DynamoDBScanTableAPI ¶
type DynamoDBUpdateItemApi ¶
type DynamoDBUpdateItemApi interface { UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error) }
Click to show internal directories.
Click to hide internal directories.