Drizzle ORM Tutorial - Full Drizzle Course for Beginners

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 81

  • @codegenix
    @codegenix  5 місяців тому +6

    What other ORMs have you worked with?

    • @tamaniphiri
      @tamaniphiri 5 місяців тому

      @@codegenix prisma

    • @prashlovessamosa
      @prashlovessamosa 5 місяців тому +1

      TypeORM

    • @user-lj4lo7cx7m
      @user-lj4lo7cx7m 5 місяців тому

      Not orm but still good: kysely

    • @codegenix
      @codegenix  5 місяців тому

      Which one do you prefer most? TypeORM or Drizzle?

    • @codegenix
      @codegenix  5 місяців тому +1

      @user-lj4lo7cx7m Haven't heard of it before. Thanks for your recommendation

  • @ahmedaq9018
    @ahmedaq9018 5 місяців тому +2

    Literally UNDER-RATED video!! This tutorial is som much authentic and the guy there knows what he is doing. Almost everything is done per the most optimal and best practices! Really amazing tutorial.. teaches lots and lots!! Thanks a lot!!!!

    • @codegenix
      @codegenix  5 місяців тому +1

      I appreciate that! I'm really glad that you learned something new and I'm really happy that it was useful to you🙏

    • @ahmedaq9018
      @ahmedaq9018 5 місяців тому

      @@codegenix ♥♥♥♥♥♥♥

  • @capK29
    @capK29 5 місяців тому +2

    I like ur videos so much. Instead of tutorial like " let's create a website " blah blah, u always try to share an up to date tech like this. U are really a treasure for someone like me. Love u so much brother ❤️ Hope to see more from u 🎉

    • @codegenix
      @codegenix  5 місяців тому

      You are so kind and I'm really fortunate to have an amazing subscriber like you❤️

  • @faisal_dev951
    @faisal_dev951 5 місяців тому +3

    OMG, I was just about to dive into the world of ORMs & I received your notification! Thank you so much! Love you from the bottom of my heart. 🥰
    Also, could you please make a beginner to advanced tutorial for framer-motion in your upcoming videos?

    • @codegenix
      @codegenix  5 місяців тому +1

      You are so welcome! I'm so glad that you liked it🙏😍
      Framer motion is suggested by you and many other subscribers. It is definitely on upcoming videos list.

  • @smartdriver2990
    @smartdriver2990 5 місяців тому +1

    This is what I am searching for learning. Thanks a lot for the tutorial

    • @codegenix
      @codegenix  5 місяців тому +1

      You cannot imagine that how much I am glad right now. So happy you liked it

  • @parsalooji
    @parsalooji 4 місяці тому

    pashmam condign sal bud doable intro mohtavai migashtm merci az to😍😍

  • @tamaniphiri
    @tamaniphiri 5 місяців тому +2

    Yes🚀🔥keep it up

    • @codegenix
      @codegenix  5 місяців тому +1

      Thanks for your positive energy😍

  • @prashlovessamosa
    @prashlovessamosa 5 місяців тому +1

    Great 👍 was waiting for it.

    • @codegenix
      @codegenix  5 місяців тому

      Hope you enjoyed it!

  • @irfantayyib
    @irfantayyib 5 місяців тому +2

    wow ... another video! thanks.

    • @codegenix
      @codegenix  5 місяців тому +1

      Hope you enjoyed it!

  • @favanzzo
    @favanzzo 5 місяців тому

    i will def watch it! hoping for the react course soon. Keep it up the great content :)

    • @codegenix
      @codegenix  5 місяців тому

      Awesome! Thank you!

  • @IcTxDiogo-
    @IcTxDiogo- 5 місяців тому

    I just started the video, but I'm already saying thank you, I'm going to start doing a project using the t3-stack with drizzle and this content will be very useful!!

    • @codegenix
      @codegenix  5 місяців тому

      Glad I could help

  • @imho7992
    @imho7992 3 місяці тому +1

    hi @codegenix - Is there a reason why you don't use the InferInsertModel function from Drizzle, but rather use the Zod schema? Doesn't the InferInsertModel already help you define what is optional during an insert versus required fields based on which columns are optional or generated by default? And then you can just use Pick in the frontend?

    • @codegenix
      @codegenix  3 місяці тому

      @imho7992 I use zod here because I want to have access to the columns constraints (like how many characters is valid, or is the field required or not). It is more than just infering the types. We want to also infer the validations so we can inform the user how many characters he can enter in the desired field. For example when the user is creating a post (in the frontend), he shouldn't enter more than 255 characters for the post name (as it is set in the column schema) and if he enters more than 255 characters, he will see a red error message below the field in real time. So the user's input data validation is always sync with the columns constraints and it will make the codebase cleaner and also the ux much better

    • @imho7992
      @imho7992 3 місяці тому

      @@codegenix i see, that makes sense, thanks for your reply!

  • @ogbillity
    @ogbillity 3 місяці тому +1

    Excellent tutorial. Thank you so much

    • @codegenix
      @codegenix  3 місяці тому

      You're very welcome!

  • @Grovento
    @Grovento 2 місяці тому

    Great work! It seems what I'm lookng for. Can I use this as I don't want a non-managed service for my db and having control over my data? Does a self-host db mean avoiding vendor lock-in? Thanks in advance.

  • @cariyaputta
    @cariyaputta 5 місяців тому +1

    Nice videos. Added to my library.

    • @codegenix
      @codegenix  5 місяців тому +1

      I'm really glad❤

  • @yoskokleng3658
    @yoskokleng3658 7 днів тому

    please help tell me how to run generate and migrate commands for a schema other than the default public schema, without using pgSchema (as it is fixed)?
    Also, could you tell me how to establish a connection with Drizzle ORM using dynamic schemas?
    Thanks

  • @Mamalizzam
    @Mamalizzam 5 місяців тому

    ترکوندی مهندس 🔥

    • @codegenix
      @codegenix  5 місяців тому

      Fadat eshq❤️

  • @jeremyAr
    @jeremyAr 2 місяці тому

    do we have to make our own migrate file? Or can we use the "drizzle-kit migrate" command?

  • @wolfie8748
    @wolfie8748 2 місяці тому +1

    Thank you!!!
    Also really lovedd your font and theme color can you tell me ?

    • @codegenix
      @codegenix  2 місяці тому

      @wolfie8748 I'm really glad that you liked it.
      I'm using JetBrainsMono Nerd Font and Dracula theme

  • @fatheyabdelslam7684
    @fatheyabdelslam7684 Місяць тому +1

    Don't you think there is too much repeated code in schema specially in zod Uonion

  • @sujjee
    @sujjee 4 місяці тому +3

    Hey @codegenix , please create a tutorials/ more videos on production grade full stack development. you are really doing thing in so clean and production software way. i want to learn more about best practices.

    • @codegenix
      @codegenix  4 місяці тому

      @sujjee I'm so glad that you find my videos in this way. More on the way...

  • @jaycodes8790
    @jaycodes8790 5 місяців тому +1

    Hey thanks for the course.
    Could you also make a video on Lucia Auth.

    • @codegenix
      @codegenix  5 місяців тому +1

      Thank you very much. What about other authorization solutions like @auth ?

    • @AvikNayak_
      @AvikNayak_ Місяць тому

      hey isn't Lucia getting deprecated?

  • @amritwt
    @amritwt 3 місяці тому +1

    wow is so good!

    • @codegenix
      @codegenix  3 місяці тому

      Glad you liked it🙏

  • @alex.prodigy
    @alex.prodigy 5 місяців тому

    What's the purpose of the @ in front of some of the import from path ?

    • @codegenix
      @codegenix  5 місяців тому +1

      @alex.prodigy If you check the tsconfig file, inside the path field, you will see a @ sign and a $ sign which are equivalent to the corresponding path which they are pointing to. It is a good practice to import in a non relative way with specified signs like @ which normally points to the src folder by convention or you can for example change it to the root of the project.

  • @harveerSingh-iy9xz
    @harveerSingh-iy9xz 5 місяців тому +1

    In general I uses prisma because its queries are like plain js but I will definately give a try to drizzle also

    • @codegenix
      @codegenix  5 місяців тому +1

      Sure, I would be really glad if you share your experience after working with both them.

  • @wolfie8748
    @wolfie8748 2 місяці тому

    So good! Can you also make videos about API routes in next.js / auth etc

  • @diegoe666
    @diegoe666 5 місяців тому

    Whitch is your vscode theme?

    • @codegenix
      @codegenix  5 місяців тому

      I'm using Dracula theme

  • @mohammed.lamcharake
    @mohammed.lamcharake 5 місяців тому +1

    TypeORM is way cleaner and uses decorators which forces you to use classes ,
    I don't know if it is faster than drizzle or sequelize but the syntax is more preferable and pleasing on typeORM

    • @codegenix
      @codegenix  5 місяців тому +1

      Yes exactly, TypeORM is much mature than drizzle

    • @cant_sleeeep
      @cant_sleeeep 2 місяці тому

      i don’t like classes. they are a concept made up by geeks

  • @thezeeshannn
    @thezeeshannn 5 місяців тому +1

    Bro can you made a video on server action in next js with react-hook-form

    • @codegenix
      @codegenix  5 місяців тому

      @thezeeshannn This video is exactly the topic that you just mentioned😅

    • @thezeeshannn
      @thezeeshannn 5 місяців тому +1

      @@codegenix oh shit then you have to watch this video completel
      I commented on the video after seeing the thumbnail 🤣🤧

    • @codegenix
      @codegenix  5 місяців тому

      🤣😍

  • @voldemortvi4264
    @voldemortvi4264 5 місяців тому

    my favorite youtuber just dropped a video , EYYY
    i just started learning Prisma i dont know what ORM should i keep using , can you explain the difference between them ?

    • @codegenix
      @codegenix  5 місяців тому

      I'm so glad that you liked it. I really appreciate it🙏

  • @kaushikkatikala
    @kaushikkatikala 5 місяців тому

    thank you so much man

    • @codegenix
      @codegenix  5 місяців тому

      You're really welcome

  • @CodeZakk
    @CodeZakk 5 місяців тому

    Thanks for listening for my comment❤❤

    • @codegenix
      @codegenix  5 місяців тому

      You are welcome🙏❤️

  • @MohamedElguarir
    @MohamedElguarir 5 місяців тому

    Still it can't match prisma's productivity.

    • @codegenix
      @codegenix  5 місяців тому +1

      Can you give an example?

    • @MohamedElguarir
      @MohamedElguarir 5 місяців тому

      @@codegenix first we can't deny the performance benefits you get when using drizzle since you have more control over your queries + it doesn't ship with a huge engine like prisma's. But the main thing i like when using prisma is the query builder it's so elegant and it's the same for all the providers, you can switch the database provider and the queries will still be the same, you can even use mongodb and it's still the same, which you can't do with drizzle. You need to do a lot of modifications for table definitions + update queries/imports.
      Also deep nested checks/joins are really easy to do when using prisma.
      But for drizzle you need to join a lot of tables just to get the records you need.
      In one single prisma query you can do what you need 7 when using drizzle.

    • @codegenix
      @codegenix  5 місяців тому +1

      Thanks for your thorough explanation. So I think drizzle is the winner when we are talking about performance. Also prisma is the winner when we are talking about DX and clean codebase.

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 4 місяці тому

    Nice , like and sub

  • @soyabmostofa
    @soyabmostofa 4 місяці тому

    Too much boilerplate setup at the begining, I came here to learn just drizzle.

    • @codegenix
      @codegenix  4 місяці тому

      I know what you mean. But this is the minium setup needed to start these types of tutorials. But if you check the time line, you can head over to the specific chapter of the video that you are looking for.

  • @RamaGuptaOfficial
    @RamaGuptaOfficial Місяць тому

    too much ads