Versions in this module Expand all Collapse all v0 v0.1.0 Jan 1, 2024 Changes in this version + type EntityHandler struct + DdbClient ddbClient + TableDef TableDefinition + func (s EntityHandler[T]) Delete(ctx context.Context, t T) error + func (s EntityHandler[T]) Get(ctx context.Context, t T) (*T, error) + func (s EntityHandler[T]) Insert(ctx context.Context, t T) error + func (s EntityHandler[T]) Update(ctx context.Context, t T, attributes map[string]interface{}) error + type Index struct + PartitionKeyAttribute string + SortKeyAttribute string + type Record interface + PartitionKey func() string + SortKey func() string + type TableDefinition struct + SecondaryIndexes map[string]Index + TableIndex Index + TableName string v0.0.1 Dec 31, 2023 Changes in this version + func CreateEntityHandler[T record](table tableDefinition, ddbClient *dynamodb.Client) entityHandler[T] + func CreateIndex(partitionKeyAttribute string, sortKeyAttribute string) index + func CreateTableDefinition(tableName string, options ...func(*tableDefinition)) tableDefinition + func WithSecondaryIndex(name string, index index) func(*tableDefinition) + func WithTableIndex(index index) func(*tableDefinition)