View Source Dynamo.Type.Any (Dynamo v0.2.0)

:any – type inferred from the Elixir value on dump and from the DynamoDB tag on load. Uses the Dynamo.Encodable protocol for structs and custom values. Use an explicit type when you can; :any cannot round-trip atoms, dates or decimals, and always loads numbers as integers/floats.

Inference rules on dump: binaries → S (never B – use Dynamo.Raw or :binary), integers/floats → N, booleans → BOOL, nil → NULL, lists → L, maps → M, MapSet → SS/NS by element type, structs → Dynamo.Encodable.

Summary

Functions

Callback implementation for Dynamo.Type.cast/1.

Callback implementation for Dynamo.Type.dump/1.

Callback implementation for Dynamo.Type.load/1.

Functions

cast(value)

Callback implementation for Dynamo.Type.cast/1.

dump(v)

Callback implementation for Dynamo.Type.dump/1.

load(v)

Callback implementation for Dynamo.Type.load/1.