Richer domain types with Ecto custom types
Primitive obsession makes our codebases harder to deal with. Thankfully, Ecto custom types can help us transform primitives (or native types) into domain structures more quickly and at the boundary!
Primitive obsession makes our codebases harder to deal with. Thankfully, Ecto custom types can help us transform primitives (or native types) into domain structures more quickly and at the boundary!
Sometimes you want to find out information about your `Repo` configuration. You can dive through config files... or you can take the easy path!
Sometimes, it's helpful to see what queries our tests are making. There's a quick config change to do that!
Sometimes we have an existing database, but we want to use a better column name in our schemas. Well, Ecto's field has the perfect option for that.
If you have complex forms that you want to decouple from the database, we can use Ecto's embedded schemas to back a form. That gives us all the power of Ecto changesets without having to tie our form to our database schema.