Programming Ecto (PragProg)

Learn how to use Ecto, the premier database library for Elixir, to connect your Elixir and Phoenix apps to databases.

Darin Wilson and Eric Meadows-Jönsson

Series editor Bruce Tate @redrapids
Developmental editor Jacquelyn Carter @jkcarter

Learn how to use Ecto, the premier database library for Elixir, to connect your Elixir and Phoenix apps to databases. Co-authored by the creator of Ecto, this book provides the essentials you need to use Ecto effectively. Explore the core features—repos, queries, schemas, changesets, transactions—gradually building your knowledge with tasks of ever-increasing complexity. Build on that core knowledge with a series of recipes featuring more advanced topics. Speed up your test suite by running database tests concurrently. Use nested associations to handle complex table relationships. Add streams to handle large result sets with ease. These recipes cover the most common situations developers run into, based on questions from Ecto users.

Whether you’re new to Ecto, or already have an app in production, you’ll get a deeper understanding of how Ecto works, and how to make your database code cleaner and more efficient.


“Let’s face it, Ecto is not a small library. Darin and Eric did a fantastic job of breaking it all down into understandable pieces, giving a ton of examples along the way. You’ll learn how to use Ecto, and perhaps more importantly, how it was meant to be used.”

–Wojtek Mach, Hex Core Team and Consultant at Plataformatec


  • Full details: Search
  • View this book’s portal and details on how to post errata and suggestions here.

Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

3 Likes