Programming Ecto (Pragmatic Bookshelf)

PragmaticBookshelf
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:

Latest Threads About This Book Top

patrickdavey
I am using elixir 1.16.2 and when I run the mix compile it’s erroring with: == Compilation error in file lib/ecto/query.ex == ** (Kernel...
New
timpritlove
Fourth paragraph ends with: “… but you must run the migration outside of a transaction by settings @disable_ddl_transaction to true.” “s...
New
timpritlove
The book is referring to an external site http://www.sql-join.com stating “If you need a primer on joins (or even a refresher), the SQL-J...
New
timpritlove
In the PDF version of the book, the footnote in the text not clickable, so it is easy to miss the URL. The given URL is also outdated. T...
New
gwhilts
Footnote 11 at the end of Chapter 2 has a link to https://www.sql-join.com. It is currently redirecting to the Talend landing page. I do...
New
akraut
What versions of Erlang/Elixir and PostgreSQL were used for the book’s code examples? Naturally, lots of changes have happened in the cou...
New
PragmaticBookshelf
Learn how to use Ecto, the premier database library for Elixir, to connect your Elixir and Phoenix apps to databases. Darin Wilson...
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

patrickdavey
I am using elixir 1.16.2 and when I run the mix compile it’s erroring with: == Compilation error in file lib/ecto/query.ex == ** (Kernel...
New

Most Active Last Three Years Top

akraut
What versions of Erlang/Elixir and PostgreSQL were used for the book’s code examples? Naturally, lots of changes have happened in the cou...
New
timpritlove
In the PDF version of the book, the footnote in the text not clickable, so it is easy to miss the URL. The given URL is also outdated. T...
New
timpritlove
Fourth paragraph ends with: “… but you must run the migration outside of a transaction by settings @disable_ddl_transaction to true.” “s...
New
timpritlove
The book is referring to an external site http://www.sql-join.com stating “If you need a primer on joins (or even a refresher), the SQL-J...
New
gwhilts
Footnote 11 at the end of Chapter 2 has a link to https://www.sql-join.com. It is currently redirecting to the Talend landing page. I do...
New

Most Active Over Three Years Top

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

Book Info

Publisher: Pragmatic Bookshelf
Tag: #book-programming-ecto
Threads: 7

Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.