Insert with Schemas
Learn how to insert with schemas.
We'll cover the following...
When we first looked at the Repo module, we looked at the insert_all
and delete_all
functions to insert and delete data. Ecto provides these functions so we can perform these operations without schemas. When working with schemas, Repo
has two parallel functions—insert
and delete
...