This Drizzle ORM feature is a game changer!

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

КОМЕНТАРІ • 47

  • @vazsa7387
    @vazsa7387 Рік тому +29

    would u make a video using drizzle in a nestjs project ?

    • @daguttt
      @daguttt Рік тому

      Eagerly looking for it 🚀

    • @johnkucharsky6927
      @johnkucharsky6927 Рік тому

      Use express for drizzle, nest isn't for drizzle, because in drizzle you can create zod schemas from drizzle files. And if you don't need validation and orm, nest is useless

    • @md.redwanhossain6288
      @md.redwanhossain6288 Рік тому

      ​@@johnkucharsky6927 Do you even understand what you are talking about? What is the relationship of nest and drizzle? Drizzle is just a tool like prisma, mongoose, etc for Database. Nothing more, nothing less.

    • @mohammedgomaa8851
      @mohammedgomaa8851 7 місяців тому

      @@johnkucharsky6927 I think Nest is mostly used for its architecture (modules and such).

  • @nicky-hajal
    @nicky-hajal Рік тому +2

    Great video, appreciate you covering these new Drizzle features. Been using it for new projects and overall it's a great experience; excellent performance and types. I unsubscribed so I could subscribe again 🙌

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

    Great one! What theme are you using on vscode ?

  • @Anton-ih4we
    @Anton-ih4we Рік тому

    I really loved the smooth "subscribe" transition haha
    Again a great video of yours!

  • @irvinjossuehernandezmonten6524

    Please make a video using drizzle in a nest js proyect. 👍🏻

  • @method_actor
    @method_actor Рік тому +1

    Great video, didn't know drizzle had prepared statements. I think they have Views too which would be interesting to cover

    • @mariusespejo
      @mariusespejo  Рік тому +2

      Sure, maybe I’ll do a video for that as well. Although it’s only supported by the orm but not the “kit”, so you can’t generate migrations for it yet for example but you can define your views in your orm schema

  • @gurusoftware9110
    @gurusoftware9110 Рік тому +1

    Hey great video, what is the software your using to draw diagrams ?

    • @tapank415
      @tapank415 Рік тому

      excalidraw (foss)

    • @WillParker14
      @WillParker14 Рік тому

      Great video. Would love to see an example using Drizzle within NestJS. Haven’t found an example anywhere yet and would love to kill off TypeORM in my codebase!

    • @mariusespejo
      @mariusespejo  Рік тому +1

      Yup excalidraw! It’s great

  • @hassanaref7694
    @hassanaref7694 Рік тому

    i am not sure if i understand it correctly but i think typeorm already can do the same, you can build your query with adding the execute method getMany() fur example then call it and add the method whenever you ready, please correct me if i am wrong

    • @mariusespejo
      @mariusespejo  Рік тому

      It’s not the same. We’re talking about prepared statements here, which I do explain in the video what that is

  • @samiullahsheikh5015
    @samiullahsheikh5015 Рік тому

    6:23 TypeORM also allows prepared statements. Did the Drizzle team make the comparison between the prepared version of typeORM and drizzle queries?

    • @mariusespejo
      @mariusespejo  Рік тому

      Can you link to docs that documents that? I’ve used typeorm for a while and have never seen that

    • @anggasaputra8282
      @anggasaputra8282 Рік тому

      I'm also curious, is there an answer yet?

  • @kerodfresenbetgebremedhin1881

    are they comparing apples to apples as in prepared statements in drizzle with prepared statements in the other libs and orms?

    • @mariusespejo
      @mariusespejo  Рік тому

      Well sort of…, the “apples” in this case is the SQL query itself and how quickly it can be performed. There are comparisons to the pg library which does have support for prepared statements. Other ORMs might use prepared statements under the hood but they don’t expose it directly to the user if that makes sense. Drizzle gives the control back to the user and the point is that the ability to define the prepared statements yourself leads to better performance in the some circumstances

  • @HunxaNihAba0
    @HunxaNihAba0 Рік тому

    Hey @mariusespejo, I love your contents. Could you please make a video on using Drizzle ORM with NestJs, and also maybe how to Dockerize it. Thanks 😁

    • @dgaa1991
      @dgaa1991 Рік тому

      That would be nice! I have implemented drizzle orm in a monorepo with nestjs, just to try it out and there must be a better way of doing what I'm doing right now!
      @mariusespejo if you would like to see what you probably should't do then let me know and I will post a link to the repo.

  • @askin_bilir
    @askin_bilir Рік тому

    How about relational queries, is there a benchmark for them

    • @mariusespejo
      @mariusespejo  Рік тому

      I image it would be similar to the queries with joins

  • @kinorelax3277
    @kinorelax3277 Рік тому +1

    Do you have the course in udemy bro

    • @mariusespejo
      @mariusespejo  Рік тому +1

      Nah all my stuff is free at the moment, just on youtube

    • @kinorelax3277
      @kinorelax3277 Рік тому +1

      @@mariusespejo which one is better bro being Full stack developer or fucing on one stack i mean frontend developer or backend developer ? could you give me some advice

    • @mariusespejo
      @mariusespejo  Рік тому

      @kinorelax3277 start with what you like more and explore the other side to see if fullstack would be something you’d want to do. There’s no right or wrong answer here, it depends purely on your interest.

    • @kinorelax3277
      @kinorelax3277 Рік тому +1

      @@mariusespejo i see. thanks bro

  • @naranyala_dev
    @naranyala_dev Рік тому +1

    Reviewing benchmarks is a great idea, let's do it again with a different use case 😄

  • @DioArsya
    @DioArsya Рік тому

    why prisma is always at the bottom of the benchmark rank?

    • @mariusespejo
      @mariusespejo  Рік тому

      Prisma uses a middleman rust engine to take your api calls and turn them into sql. The generated sql isn’t always the best. While drizzle on the other hand largely emulates sql and is just a thin layer above the actual driver

  • @alsherifkhalaf7385
    @alsherifkhalaf7385 Рік тому +1

    Nextauth now supports drizzleORM

  • @nabinsaud4688
    @nabinsaud4688 Рік тому

    What can be the reason the drizzle orm table is not getting created in local db in postgres i tried many times and it does not work 😢 any solutions ??

    • @mariusespejo
      @mariusespejo  Рік тому

      Did you use and set up migrations with drizzle kit? It’s not going to make tables for you automatically

    • @nabinsaud4688
      @nabinsaud4688 Рік тому

      @@mariusespejo i migrate and created a folder make drizzle and then what i need to do i thought after migration it will create table automatically

    • @mariusespejo
      @mariusespejo  Рік тому

      I suggest double checking your setup against the docs, but yes running the migration should create the table if configured correctly

  • @codernerd7076
    @codernerd7076 Рік тому +3

    Extremely burn out on everything Javascript there is always something new that is better/faster blabla

    • @mariusespejo
      @mariusespejo  Рік тому +4

      You can tune it out dude…. It’s your own personal choice to pay attention or not. Your current tools are still fine

  • @flogginga_dead_horse4022
    @flogginga_dead_horse4022 Рік тому +1

    Not as good as Laravel is not a selling point lol

    • @mariusespejo
      @mariusespejo  Рік тому +3

      If you’re a laravel guy you should check out adonisjs

    • @flogginga_dead_horse4022
      @flogginga_dead_horse4022 Рік тому

      @@mariusespejo I was just messing with you. Haven't been a Laravel guy for years. I did try Adonis a long time ago too. Doing mostly Rust based web programming now. Thanks

  • @fireayehuzekarias9318
    @fireayehuzekarias9318 Рік тому

    drizzle is not an ORM it is a query builder!

    • @mariusespejo
      @mariusespejo  Рік тому +6

      It’s literally named “drizzle orm”, it’s much more than a query builder