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.
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.
- The book is available as PDF and ePub on Leanpub
- Join the discussion on elixirforum.com