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
@@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.
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 🙌
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
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!
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
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
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.
@@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
@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.
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
@@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
would u make a video using drizzle in a nestjs project ?
Eagerly looking for it 🚀
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
@@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.
@@johnkucharsky6927 I think Nest is mostly used for its architecture (modules and such).
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 🙌
Great one! What theme are you using on vscode ?
I really loved the smooth "subscribe" transition haha
Again a great video of yours!
Please make a video using drizzle in a nest js proyect. 👍🏻
Great video, didn't know drizzle had prepared statements. I think they have Views too which would be interesting to cover
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
Hey great video, what is the software your using to draw diagrams ?
excalidraw (foss)
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!
Yup excalidraw! It’s great
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
It’s not the same. We’re talking about prepared statements here, which I do explain in the video what that is
6:23 TypeORM also allows prepared statements. Did the Drizzle team make the comparison between the prepared version of typeORM and drizzle queries?
Can you link to docs that documents that? I’ve used typeorm for a while and have never seen that
I'm also curious, is there an answer yet?
are they comparing apples to apples as in prepared statements in drizzle with prepared statements in the other libs and orms?
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
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 😁
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.
How about relational queries, is there a benchmark for them
I image it would be similar to the queries with joins
Do you have the course in udemy bro
Nah all my stuff is free at the moment, just on youtube
@@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
@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.
@@mariusespejo i see. thanks bro
Reviewing benchmarks is a great idea, let's do it again with a different use case 😄
why prisma is always at the bottom of the benchmark rank?
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
Nextauth now supports drizzleORM
Good to know! Thanks
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 ??
Did you use and set up migrations with drizzle kit? It’s not going to make tables for you automatically
@@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
I suggest double checking your setup against the docs, but yes running the migration should create the table if configured correctly
Extremely burn out on everything Javascript there is always something new that is better/faster blabla
You can tune it out dude…. It’s your own personal choice to pay attention or not. Your current tools are still fine
Not as good as Laravel is not a selling point lol
If you’re a laravel guy you should check out adonisjs
@@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
drizzle is not an ORM it is a query builder!
It’s literally named “drizzle orm”, it’s much more than a query builder