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!!!!
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 🎉
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?
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.
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!!
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?
@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
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.
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
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.
@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.
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
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 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.
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.
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.
What other ORMs have you worked with?
@@codegenix prisma
TypeORM
Not orm but still good: kysely
Which one do you prefer most? TypeORM or Drizzle?
@user-lj4lo7cx7m Haven't heard of it before. Thanks for your recommendation
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!!!!
I appreciate that! I'm really glad that you learned something new and I'm really happy that it was useful to you🙏
@@codegenix ♥♥♥♥♥♥♥
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 🎉
You are so kind and I'm really fortunate to have an amazing subscriber like you❤️
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?
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.
This is what I am searching for learning. Thanks a lot for the tutorial
You cannot imagine that how much I am glad right now. So happy you liked it
pashmam condign sal bud doable intro mohtavai migashtm merci az to😍😍
Yes🚀🔥keep it up
Thanks for your positive energy😍
Great 👍 was waiting for it.
Hope you enjoyed it!
wow ... another video! thanks.
Hope you enjoyed it!
i will def watch it! hoping for the react course soon. Keep it up the great content :)
Awesome! Thank you!
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!!
Glad I could help
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?
@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
@@codegenix i see, that makes sense, thanks for your reply!
Excellent tutorial. Thank you so much
You're very welcome!
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.
Nice videos. Added to my library.
I'm really glad❤
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
ترکوندی مهندس 🔥
Fadat eshq❤️
do we have to make our own migrate file? Or can we use the "drizzle-kit migrate" command?
Thank you!!!
Also really lovedd your font and theme color can you tell me ?
@wolfie8748 I'm really glad that you liked it.
I'm using JetBrainsMono Nerd Font and Dracula theme
Don't you think there is too much repeated code in schema specially in zod Uonion
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.
@sujjee I'm so glad that you find my videos in this way. More on the way...
Hey thanks for the course.
Could you also make a video on Lucia Auth.
Thank you very much. What about other authorization solutions like @auth ?
hey isn't Lucia getting deprecated?
wow is so good!
Glad you liked it🙏
What's the purpose of the @ in front of some of the import from path ?
@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.
In general I uses prisma because its queries are like plain js but I will definately give a try to drizzle also
Sure, I would be really glad if you share your experience after working with both them.
So good! Can you also make videos about API routes in next.js / auth etc
Whitch is your vscode theme?
I'm using Dracula theme
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
Yes exactly, TypeORM is much mature than drizzle
i don’t like classes. they are a concept made up by geeks
Bro can you made a video on server action in next js with react-hook-form
@thezeeshannn This video is exactly the topic that you just mentioned😅
@@codegenix oh shit then you have to watch this video completel
I commented on the video after seeing the thumbnail 🤣🤧
🤣😍
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 ?
I'm so glad that you liked it. I really appreciate it🙏
thank you so much man
You're really welcome
Thanks for listening for my comment❤❤
You are welcome🙏❤️
Still it can't match prisma's productivity.
Can you give an example?
@@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.
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.
Nice , like and sub
Thanks so much
Too much boilerplate setup at the begining, I came here to learn just drizzle.
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.
too much ads