Chapter 7. Being persistent with a database
This chapter covers
- Configuring Ecto to use a real database
- Using Ecto to query the database for items
- Using Ecto to insert items into and delete them from the database
Your Auction application has a public interface where you can query for items, and you know how to bring external package dependencies into the application. In chapter 5, you readied the application for real database use by bringing in Ecto and postgrex (or a different database adapter based on your needs).
You originally set up your Auction application to use a “fake” repo so as not to introduce too much complexity while you built up a small public interface for querying items. It was relatively quick to set up, required no external ...