Versions in this module Expand all Collapse all v0 v0.0.1 Mar 12, 2024 Changes in this version + func BindTable(table ITable) + func Client() *dynamodb.Client + func ConnAWS(region string) *util.Err + func ConnLocal(url string) *util.Err + func CreateTable(tableName string) *util.Err + func GetEntity[T any](table string, filter util.M, consistent bool, entity T, projectAttrs ...string) *util.Err + func IsTableExist(table string) (bool, *util.Err) + func MigrateTables() + func PutNewEntity(table string, entity util.M, unique ...string) *util.Err + func PutOrReplaceEntity(table string, entity any) *util.Err + func QueryEntitiesBetween[T any](table, key string, start, end any, limit int32, forward bool, items *[]T, ...) *util.Err + func QueryEntities[T any](table string, filter util.M, items *[]T, projectAttrs ...string) *util.Err + func UpdateEntity(table string, filter, data util.M) *util.Err + func UpdateEntityWithResult(table string, filter, data util.M, resultValue types.ReturnValue, ...) *util.Err + type ITable interface + AttributeDefinitions func() []types.AttributeDefinition + KeySchema func() []types.KeySchemaElement + Name func() string + func NewTable(name, hashKey, rangeKey string, attrs map[string]types.ScalarAttributeType) ITable + type MAV map[string]types.AttributeValue + type UpdateResult map[string]map[string]any