O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4Ecto and Changesets

Up to now, we’ve been focusing on our application’s presentation layer with views and templates, and controlling those views with controllers. Our backend uses a simple in-memory repository instead of a real database. There’s a method to our madness, though. That repository uses the same API as Ecto, the Elixir framework for persistence. In this chapter, we’ll convert our application to use a real Ecto repository backed by a Postgres database. By the time you’re done, your repository will be able to save users and search for them using an advanced query API.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required