Wrapping Up
It’s a good time to pause and take stock of what we’ve done. It’s been a busy chapter.
-
We began the chapter by introducing Ecto and announcing our intention to replace the naive implementation in our context with a database-backed Ecto repository.
-
We configured our new database and connected it to OTP, so that Elixir could do the right thing in the event our repository crashes.
-
We created a schema, complete with information about each necessary field.
-
We created a migration, to help us specify our database tables and automate doing and undoing any database changes.
-
We created a changeset so Ecto could efficiently track and manage each change requested by our application.
-
We integrated this change into our application.
We’ve already ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access