Documentation ¶
Index ¶
- func Create[V any](tableName string, object V) error
- func Delete(tableName string, conditions map[string]string) error
- func Get[V any](tableName, projection string, selectedKeys map[string]string) (*V, error)
- func GetAll[V any](tableName string) ([]V, error)
- func Update[V any](tableName string, object V) error
- type DynamoDBAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DynamoDBAPI ¶
type DynamoDBAPI interface { PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error) Scan(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error) }
Click to show internal directories.
Click to hide internal directories.