Ecto Modules
Explore the core Ecto modules essential for building database applications in Elixir. Learn how the Repo module acts as a database proxy, understand query writing, flexible schemas, changesets for data transformation, transactions for coordinated updates, and migrations to evolve database structure. This lesson sets the foundation for using Ecto effectively through a sample app.
We'll cover the following...
We'll cover the following...
Modules of Ecto
Ecto’s core functionality is contained in six main modules. In Part I, we’ll look at each of them in detail. Later in this chapter, we’ll dive into Repo.
Repo
The Repo module is the heart of Ecto and acts as a kind of proxy for our database. All communication to and from the database goes through Repo.
Query
The Query module contains Ecto’s powerful but ...