dynamodb

package
v0.4.54 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaTypeMapStr = "neosync_key_type_map"
)

Variables

This section is empty.

Functions

func ConvertToStringSlice

func ConvertToStringSlice(slice any) ([]string, error)

func MarshalJSONToDynamoDBAttribute

func MarshalJSONToDynamoDBAttribute(key, path string, root any, keyTypeMap map[string]KeyType) types.AttributeValue

func MarshalToAttributeValue

func MarshalToAttributeValue(key string, root any, keyTypeMap map[string]KeyType) types.AttributeValue

func ParseAttributeValue

func ParseAttributeValue(key string, v types.AttributeValue, keyTypeMap map[string]KeyType) any

ParseAttributeValue converts a DynamoDB AttributeValue to a standard value

func ParseDynamoDBAttributeValue

func ParseDynamoDBAttributeValue(key string, value any, keyTypeMap map[string]KeyType) any

func ParseStringAsNumber

func ParseStringAsNumber(s string) (any, error)

func UnmarshalAttributeValueMap

func UnmarshalAttributeValueMap(item map[string]types.AttributeValue) (standardMap map[string]any, keyTypeMap map[string]KeyType)

func UnmarshalDynamoDBItem

func UnmarshalDynamoDBItem(item map[string]any) (standardMap map[string]any, keyTypeMap map[string]KeyType)

Types

type KeyType

type KeyType int
const (
	StringSet KeyType = iota
	NumberSet
)

Jump to

Keyboard shortcuts

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