Tag: elixir
All the articles with the tag "elixir".
Elixir: map casting to structs (with checks at compile time!)
Validate map keys against a struct at compile time with a small macro, instead of discovering typos at runtime after deployment.
Adding stream_async() to Phoenix LiveView
Implement asynchronous assigns for LiveView streams and generate the boilerplate with a stream_async() macro.
How to report Postgres custom errors in Ecto Changeset
Capture custom Postgres errors as Ecto.Changeset errors instead of raising exceptions — no try/rescue, works out of the box with Phoenix.