ExAws.Dynamo v2.2.2 ExAws.Dynamo.Decoder View Source
Link to this section Summary
Functions
Converts a map with binary keys to the specified struct
Attempts to convert a number to a float, and then an integer
Convert dynamo format to elixir
Decodes a dynamo response into a struct.
Link to this section Functions
binary_map_to_struct(bmap, module) View Source
Converts a map with binary keys to the specified struct
binary_to_number(binary) View Source
Attempts to convert a number to a float, and then an integer
decode(item) View Source
Convert dynamo format to elixir
Functions which convert the dynamo style values into normal elixir values. Use these if you just want the dynamo result to look more like elixir without coercing it into a particular struct.
By default this will decode various dynamodb sets into lists. If you'd
prefer they be decoded into MapSet
s instead, set decode_sets: true
in
your compile-time (not runtime) configuration:
config :ex_aws, :dynamodb, decode_sets: true
decode(item, list) View Source
Decodes a dynamo response into a struct.
If Dynamo.Decodable is implemented for the struct it will be called after the completion of the coercion.
This is important for handling nested maps if you wanted the nested maps to have atom keys.