module Crynamo::Marshaller

Extended Modules

Defined in:

crynamo/marshaller.cr

Instance Method Summary

Instance Method Detail

def dynamodb_value_map(value) #

[View source]
def from_dynamo(item : Hash(String, JSON::Any)) : Hash #

Converts a DynamoDB Hash representation to a regular Crystal Hash

TODO Convert to a NamedTuple instead


[View source]
def from_dynamo(items : Array(Hash)) : Array(Hash(String, Array(Float32) | Array(JSON::Any) | Array(String) | Bool | Float32 | JSON::Any | Nil)) #

[View source]
def to_dynamo(tuple : NamedTuple) : Hash #

Converts a NamedTuple to a DynamoDB Hash representation


[View source]
def to_expressions(tuple : NamedTuple) #

{ product_id: product.id }


[View source]