conditionexpression

package
v0.0.0-...-ea67ea8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package conditionexpression parses DynamoDB conditions expressions, as documented at https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html.

This includes the stricter subset of "key conditions" which are used when querying, inspecting partition and sort keys only.

TODO: see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Constraints.html#limits-expression-parameters for max limits

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pretty

func Pretty(pretty bool) func(*parser) error

func Size

func Size(size int) func(*parser) error

Types

type Expression

type Expression struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(s string) (Expression, error)

func ParsePretty

func ParsePretty(s string) (Expression, error)

func (Expression) Evaluate

func (e Expression) Evaluate(
	item map[string]*dynamodb.AttributeValue,
	names map[string]*string,
	values map[string]*dynamodb.AttributeValue,
) (bool, error)

func (Expression) PrettyPrint

func (e Expression) PrettyPrint(w io.Writer)

Jump to

Keyboard shortcuts

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