"Northwind Elixir Traders" updated: Ecto changesets

“Northwind Elixir Traders” updated: Ecto changesets

04 April, 2024 1 min read
software, programming, Elixir, learning, Ecto, databases, book

I just finished and released a new chapter of the “Northwind Elixir Traders” book . This one is on using changeset functions within modules with Ecto schemas, using built-in and custom validation functions, and basic persistence of data in the database using changesets.

Chapter on changesets in modules with schemas

The upcoming two chapters will deal with uniqueness constraints to avoid multiple copies of the same records, further functions of Ecto.Changeset, the most important functions and their options for inserts, updates, upserts and deletes using changesets, and – most importantly – the use of associations (has_one, belongs_to, etc.) to finally start connecting different tables of the “Northwind Traders” database and thus gradually recreate more complex and more educational database operations.