Search⌘ K
AI Features

Introduction to Ecto

Explore how to test Ecto in Elixir applications, focusing on validation, schema, and database interaction. Understand the principle of testing only your code while properly using Ecto's functionality. Gain practical tips on writing effective tests for database changes and input-output behaviors without testing Ecto itself.

We'll cover the following...

Ecto

As Elixir matures, the community is settling on certain libraries as the go-to libraries for certain use cases.

Let’s look at the two most common use cases of Ecto:

  • Validation
  • Database interactions

During our journey through testing Ecto, we’ll start by testing it as a validation library and as a database schema. Then we’ll move on to testing our database interactions. ...