module

Crynamo::Marshaller

Instance methods

dynamodb_value_map(value)
Source
from_dynamo(item : Hash(String, JSON::Any)) : Hash

Converts a DynamoDB Hash representation to a regular Crystal Hash TODO Convert to a NamedTuple instead

Source
from_dynamo(items : Array(Hash)) : Array(Hash(String, Array(Float32) | Array(JSON::Any) | Array(String) | Bool | Float32 | JSON::Any | Nil))
Source
to_dynamo(tuple : NamedTuple) : Hash

Converts a NamedTuple to a DynamoDB Hash representation

Source
to_expressions(tuple : NamedTuple)

{ product_id: product.id }

Source

Nested types