dynamoattr

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareValues

func CompareValues(lhs any, op string, rhs any) bool

CompareValues compares DynamoDB attribute values against an operator. Two numeric operands compare exactly; anything else compares as strings.

func ParseNumeric

func ParseNumeric(v any) (dynamonum.Num, bool)

ParseNumeric tries to read a value as an exact DynamoDB number.

func ResolveValue

func ResolveValue(token string, attrValues map[string]any) any

ResolveValue maps expression tokens to attribute values when prefixed with ':'.

func SplitANDConditions

func SplitANDConditions(expression string) []string

SplitANDConditions splits an expression by " AND " while preserving BETWEEN ... AND ... clauses.

func ToString

func ToString(v any) string

ToString renders DynamoDB attribute values into comparable strings.

func UnwrapAttributeValue

func UnwrapAttributeValue(v any) any

UnwrapAttributeValue converts a DynamoDB wire attribute map into a bare value when possible.

Direct lookups instead of ranging: a wire map has exactly one type key, and a map iterator costs more than checking the (overwhelmingly common) S/N keys directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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