October 2019
Intermediate to advanced
358 pages
8h 22m
English
In the previous chapter, we extended our application domain by associating videos to users and categories. Now we want our users to select which category a video belongs to upon video creation. To build this feature, you’ll need to learn how to programmatically populate the database with a hardcoded list of categories and add those new features to our context. Along the way we’ll explore some of the different ways you can use Ecto to retrieve data from the database.
We want to build our feature safely so that corrupt data can’t creep into our database, so we’ll spend some time working with database constraints. Database engines like PostgreSQL are called relational for a reason. A tremendous amount of time ...
Read now
Unlock full access