Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTableIfNecessary ¶
func CreateTableIfNecessary(ctx context.Context, table string, client *dynamodb.Client, localDynamodb bool) error
CreateTableIfNecessary creates the table if it doesn't exist ; or update it.
func MediaPrimaryKeyPK ¶
MediaPrimaryKeyPK is the PK of a media, used to regroup media related information together
Types ¶
type TablePk ¶
type TablePk struct { PK string // PK is the Partition key ; see what's used depending on object types SK string // SK is the Sort key ; see what's used depending on object types }
TablePk are the primary and sort keys of the table
func (TablePk) ToAttributes ¶ added in v1.6.4
func (pk TablePk) ToAttributes() map[string]types.AttributeValue
Click to show internal directories.
Click to hide internal directories.