Let's learn Prisma ORM: migrate in detail (seeding, down migration, production)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 มิ.ย. 2024
  • In this video, we are gonna explore the Prisma migrate commands in more detail. We will learn how to reset a database, what is a shadow database, how to seed the database with data after running all migrations, how to rollback a migration (down migration) if it fails, and how to use migrate for production. These commands and concepts are super important if you are developing data intensive applications.
    Prisma is an open-source Object-Relational Mapping tool designed to simplify database access and manipulation in application development. With Prisma, you can interact with databases using a modern and intuitive approach. It supports popular databases like MySQL, Postgres and SQLite. Prisma generates a type-safe and auto-generated query builder based on your data model. This ensures that your queries are error-free and strongly typed.
    🚩If you want to write any comments, you can do it in English, Portuguese or Spanish (in this case, I will do my best). I'll keep the replies in Portuguese and translate them to English.
    🚩Caso você queira comentar algo neste vídeo, você pode fazê-lo em inglês, português ou espanhol (neste caso, darei meu melhor). Eu manterei as respostas em português, mas também com a tradução para o Inglês.
    ► Key moments:
    0:00 Intro
    0:45 Recap:
    1:15 Using migrate reset to reverts the DB to its initial
    2:04 Shadow databases
    3:05 Seeding the database with initial data
    4:27 How to rollback a migration (down migration): diff, resolve, and status
    7:17 Using migrate in production
    #marcellothiry #fromdev2dev #prismaorm #typescript #postgres #postgresql #orm #database #sql #migration
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 6

  • @victorgraphics4302
    @victorgraphics4302 27 วันที่ผ่านมา

    Congrats, Marcello!
    I'm from Brazil as well, and I liked the video. It is very useful for someone new to Prisma.
    I was searching for a video that better explains how down migrations work and ended up here.

  • @awebcode
    @awebcode 6 วันที่ผ่านมา

    ❤🎉

  • @mohammadfouad6706
    @mohammadfouad6706 8 หลายเดือนก่อน

    Cannot wait to hear more :)
    Thanks a lot

    • @fromDev2Dev
      @fromDev2Dev  7 หลายเดือนก่อน

      More to come! Thank you.

  • @lucas14x87
    @lucas14x87 5 หลายเดือนก่อน

    Great content. Thank you!

    • @fromDev2Dev
      @fromDev2Dev  หลายเดือนก่อน

      Thank You Lucas!