delete

package
v0.0.0-...-c6f16e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 4 Imported by: 0

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

func WithTableName(tableName string) func(*Opts)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL