EMPEX LA 2018 - Ecto.Schema without Ecto.Repo by Rosemary Ledesma
Ecto.Schema without Ecto.Repo by Rosemary Ledesma
With newer versions of Ecto you can use Ecto.Schema without even importing Ecto.Repo or setting up a traditional database. Why would you wish to?
Your microservice or other lightweight app may not use a database but you'll probably still need to wrangle some serious data: complex params, JSON request/response bodies, RabbitMQ payloads, etc. That's data that you'll need to parse, cast, and validate.
I'll step you through how to use Ecto.Schema on its own to cast and validate various kinds of data, and how to extract the final results whether the data is valid or invalid.
I'll also discuss some of the stumbling blocks and limitations I've encountered while leveraging Ecto.Schema in this way.
About Rosemary: Rosemary is passionate about writing software with Elixir and Phoenix, and works as a back-end software engineer for RentPath LLC. In her spare time she enjoys hiking, swing-dancing, and rowing (crew).
Other Videos By Confreaks
Other Statistics
Ecto Statistics For Confreaks
There are 26 views in 1 video for Ecto. His channel published less than an hour of Ecto content, making up less than 0.01% of the total overall content on Confreaks's YouTube channel.