Companies Home Search Profile

Getting started with Ecto: Fundamentals and overview

Focused View

Bartek Gładecki

3:29:17

9 View
  • 1. What you will learn in this course.mp4
    07:57
  • 1. Setting up a Mix project.mp4
    03:02
  • 2. Changeset Casting.mp4
    05:24
  • 3. Changeset Putting changes dynamically (part 1).mp4
    04:21
  • 4. Changeset Putting changes dynamically (part 2).mp4
    05:16
  • 5. Changeset `data` vs `changes`.mp4
    :
  • 6. Changeset Validations (part 1).mp4
    04:04
  • 7. Changeset Validations (part 2).mp4
    03:14
  • 1. Setting up a simple docker database and a Phoenix app.mp4
    04:28
  • 2. Phoenix what do its generators do.mp4
    09:07
  • 3. Ecto Migrations.mp4
    06:25
  • 4. Structs vs Changesets.mp4
    04:37
  • 5. Ecto Migration Adding a unique index.mp4
    03:22
  • 6. Ecto Schema Adding a unique constraint.mp4
    00:40
  • 7. Changing tables primary id key to an UUID.mp4
    06:41
  • 8. Adding an index to a UUID column.mp4
    00:43
  • 9. Embedded schema embeds one.mp4
    06:06
  • 10. Embedded schema embeds many.mp4
    03:43
  • 11. Embedded schema Validating embeds.mp4
    02:17
  • 12. Associations has many association.mp4
    06:24
  • 13. Associations has one association.mp4
    04:28
  • 14. Associations has many through.mp4
    04:30
  • 15. Associations has many with UUID as foreign key.mp4
    11:10
  • 16. Associations Casting associations on multiple levels.mp4
    07:18
  • 1. Repo.insert and Repo.update.mp4
    06:36
  • 2. Repo.all, Repo.get, Repo.get by.mp4
    03:13
  • 3. Ecto.Query object and where clause.mp4
    02:34
  • 4. Creating a Context module listing records.mp4
    05:12
  • 5. Creating a Context module creating records.mp4
    02:39
  • 6. Creating a Context module updating records.mp4
    01:47
  • 7. Creating a Context module getting records.mp4
    01:33
  • 8. Creating a Context module deleting records.mp4
    01:19
  • 9. Seeding data.mp4
    12:59
  • 10. More on Querying where, select, group by, order by, offset, limit.mp4
    09:49
  • 11. Database transactions and rolling back.mp4
    06:26
  • 12. Repo.insert all.update all and their limitations.mp4
    05:01
  • 13. Repo.update all.mp4
    03:57
  • 14. Ecto.Multi.mp4
    05:42
  • 1. Testing Changesets.mp4
    08:43
  • 2. Testing Contexts list all.mp4
    05:07
  • 3. Testing Contexts get one.mp4
    05:15
  • 4. Testing Contexts create, update, delete.mp4
    06:08
  • Description


    Learn about Ecto Changeset, Migrations, Schema, Repo and Query from the beginning

    What You'll Learn?


    • Fundamentals of an Ecto Changeset. Putting changes, differences between `data` and `changes`, having validations, differences from regular structs
    • Fundamentals of an Ecto Migration. Setting up a database, migrating it, adding indices and constraints, uniqueness, UUID primary keys, relations between tables
    • Fundamentals of Ecto Schema. Casting and casting associations, embedded schemas, assocs with UUID as primary key, belongs_to/has_one/has_many/has_many through
    • Fundamentals of Ecto Multi, transactions, locks in them and batch inserting/updating. insert_all/update_all and their limitations
    • Fundamentals of Ecto Query. Querying for `where` conditions, grouping and ordering by fields
    • Creating a context with example functions to Create Read Update Destroy records (CRUD)
    • Fundamentals of testing changesets and functions that operate on database.

    Who is this for?


  • Beginner Elixir/Phoenix developers who want to have an overview of the functionality of Ecto and what it's capable of
  • What You Need to Know?


  • Basic knowledge of Elixir language
  • More details


    Description

    Let me guide you through what is a Changeset: how to cast, put changes, validate, know the differences between `data` and `changes` fields.

    Learn about the difference between structs and Changesets.

    Let us get into the bridge between Changeset and your database using Phoenix.

    Learn about Phoenix generators and let's discuss what do they do.

    Learn about migrations, add indices and contstraints, change integer IDs to UUIDs.

    Ecto.Schema. Set fields, let's see what are Embedded Schemas by creating embed_one and embeds_many built-in-a-record relations. Associations of all kind (has_one, has_many, has_many through and has_many with UUID as a foreign key),

    Learn about the Ecto.Repo. How to insert, update, read from and delete records.

    Lean about Ecto.Query. How to compose a query to get the records you want.

    Put it all together to a Context module.

    Seed the initial data for your application. Set up a script to automatically insert over 50.000 fresh database records.

    Learn about bulk operations. Repo.insert_all/update_all and their limitations.

    See the power of the Ecto.Multi, database transactions, ensuring data consistency.

    Test it all: Changesets, all of the Context.


    The course may be followed along, i don't change the code off the camera. Though the suggested way to do the course is to just watch me talk to you very slowly and showing you around what's possible in Ecto. (:

    Who this course is for:

    • Beginner Elixir/Phoenix developers who want to have an overview of the functionality of Ecto and what it's capable of

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Bartek Gładecki
    Bartek Gładecki
    Instructor's Courses
    I've been coding for almost 10 years now and i'd love to share my knowledge with the world. Since I was a young boy I was fascinated with computers, especially with the Linux operating system. Then, at the age of 21, I started working as a PHP developer. Later on I learned Ruby on Rails and for a couple of years i was working primarily with it, later on i changed my primary technology to React.js and worked for a couple of years as a expert in it. After learning Elixir in 2017 I decided to stay with it for longer. And love for it it's what I'd love to share with you. (:
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 42
    • duration 3:29:17
    • Release Date 2024/04/11