Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableOptimisticLocking ¶
func DisableOptimisticLocking() func(*Opts)
DisableOptimisticLocking disables logic around model.Versioned.
func ReturnAllOldValues ¶
func ReturnAllOldValues() func(*Opts)
ReturnAllOldValues sets the dynamodb.DeleteItemInput's ReturnValues to ALL_OLD.
dynamodb.DeleteItemInput's ReturnValues only support NONE or ALL_OLD.
func WithTableName ¶
WithTableName changes the table name in Opts.Input.
Types ¶
type Opts ¶
type Opts struct { Item model.Item Input *dynamodb.DeleteItemInput Condition *expression.ConditionBuilder DisableOptimisticLocking bool }
Opts provides customisation to the dynamodb.DeleteItemInput made with github.com/nguyengg/golambda/ddb.Wrapper.Delete.
Opts.Input is guaranteed to exist when passed into the first modifier. Opts.Item is the original reference item. Changes to Opts.Item don't automatically update Opts.Input. Changes to Opts.Condition will affect the final Opts.Input.
Click to show internal directories.
Click to hide internal directories.