Prisma Course: Zero To Hero 🎯

  Рет қаралды 35,415

Sakura Dev

Sakura Dev

Күн бұрын

✅Prisma Docs👉🏻 www.prisma.io/?aff=skdev
In this video, we'll explore the basics of using Prisma for database management. We'll start by defining our data models using Prisma's declarative syntax. Then, we'll learn how to apply migrations and introspect existing databases to create Prisma models.
With our data models in place, we'll dive into one of Prisma's most powerful features: relationships between models. We'll learn how to define one-to-one, one-to-many, and many-to-many relationships, as well as cascading actions like deletes and updates.
Next, we'll explore the Prisma Client, a high-level API for querying, creating, updating, and deleting records. We'll cover the query API, including filters and relation filters, which allow us to easily retrieve specific subsets of data.
With our queries sorted, we'll turn our attention to creating, updating, and deleting data in the database. We also implement Offset and Cursor pagination with Prisma and then We'll cover transactions, which allow us to group multiple database operations together and roll them back if necessary.
By the end of this course, you'll have a solid understanding of how to use Prisma to manage your databases efficiently and effectively. Whether you're building a small web app or a large-scale enterprise system, Prisma's intuitive syntax and powerful features make it a must-have tool for any modern developer.
🗃️ GitHub Repo (Don't forget to give it a⭐): github.com/vahid-nejad/prisma...
📖content:
0:00 Intro
1:24 Setting up PostgreSQL with Docker
3:19 Setting up Prisma
5:59 Data Models
7:00 Introspection and Migrations
8:48 Defining Data Models
11:38 Runing Migrations
12:52 Attributes: Modify the behavior of fields and model
14:57 Prisma Studio
17:49 Enums
19:21 Relationships
26:24 One-To-Many Relationships
29:57 Many-To-Many Relationships
33:15 Setting up Prisma Client
34:51 Fetch data with Find functions
36:30 Seed the data base
41:58 Filters: How we can narrow down result of a query
43:48 Operators in Filters
51:21 Relation Filters
59:38 Nested queries
1:00:36 Selecting Specific Fields
1:03:10 Aggregation Functions
1:08:22 Group By
1:11:34 Sort the Result of a Query
1:13:45 Pagination
1:15:18 Offset Pagination
1:21:05 Cursor Pagination
1:25:26 Insert data to data base
1:35:45 Cascading Delete and Update
1:41:49 Take Inserting data from client
1:44:12 Update
1:50:32 Upsert
1:53:08 Delete
1:55:00 Transactions

Пікірлер: 127
@sanyamjain7058
@sanyamjain7058 8 ай бұрын
u r legend , cleared all doubts on the go! keep going on ! 50K coming soon!
@SakuraDev
@SakuraDev 8 ай бұрын
Thanks for your support 🙏
@salmanmughal2763
@salmanmughal2763 3 ай бұрын
I subscribed after watching this video of yours. Such an amazing explaination Keep it up you saved my day
@perox1982
@perox1982 9 ай бұрын
Really Great Video Thanks
@thoropyt9955
@thoropyt9955 5 ай бұрын
So usefull tut :)
@dreamsachiever212
@dreamsachiever212 6 ай бұрын
probably the most underrated video on Prisma especially for beginners wanting to learn prisma. I have watched 4-5 videos but this one is the one I am sticking to. very well paced, easy to follow and NOT confusing at all. Thank you. I subscribed!
@SakuraDev
@SakuraDev 6 ай бұрын
Thanks 🙏🙏🙏. I'm really glad that you liked it.
@mohdali-yq8gq
@mohdali-yq8gq 9 ай бұрын
SIR, you have explained the relationship between tablets superbly and it will definitely help a lot to many new comers and seasoned programmers. It is really much appreciated.
@SakuraDev
@SakuraDev 9 ай бұрын
Thank you so much 🙏.
@IThinkBG
@IThinkBG 7 ай бұрын
Very comprehensive! Thank you, please keep vlogging, you rock!
@SakuraDev
@SakuraDev 7 ай бұрын
Thank you so much 🙏❤️
@BABA-oi2cl
@BABA-oi2cl 7 ай бұрын
I'm halfway through and I'm loving the way you explain every concept in such a simple yet effective manner ❤
@SakuraDev
@SakuraDev 7 ай бұрын
Thanks 🙏, that's very inspiring for me. Thank you so much 🙏
@user-ei4vo1wn5z
@user-ei4vo1wn5z 9 ай бұрын
amazing , mindblowing , fantastic , fab explanation . just loved it absolutely.
@SakuraDev
@SakuraDev 9 ай бұрын
Thank you so much, 🙏, I am really glad you like it.
@mssafy2592
@mssafy2592 10 ай бұрын
I watched every part of your video and took notes along the way , you made me understand basic SQL ideas that I didn't understand in years , Thank you very much for doing this all for free 👏🏼👏🏼
@SakuraDev
@SakuraDev 10 ай бұрын
Wow, I am really excited about your comment. I am really happy that it was helpful for you😃🌹
@pastasdono
@pastasdono 3 ай бұрын
Thank you very much, I am learning Postgre and Prisma thanks to you !
@SakuraDev
@SakuraDev 3 ай бұрын
Glad you like it 😊
@hoquang7800
@hoquang7800 Жыл бұрын
This is gold to me. Thanks a lot man
@SakuraDev
@SakuraDev Жыл бұрын
Thanks for such a nice comment, Actually I have drizzle orm course , you can watch it if you want.🌷
@MolamikeDevs
@MolamikeDevs 2 ай бұрын
Thank you boss, you're the best.
@SakuraDev
@SakuraDev 2 ай бұрын
Thanks 🙏🙏
@eslamsami4986
@eslamsami4986 Жыл бұрын
thanks for the amazing tutorial , keep it going :)
@SakuraDev
@SakuraDev Жыл бұрын
Thanks for your nice feedback 🌹
@Black_Wolf_Arab_Coder
@Black_Wolf_Arab_Coder 10 ай бұрын
Amazing Efforts Eng Sakura thanks for your time please continue you are very helpful
@SakuraDev
@SakuraDev 10 ай бұрын
Thanks for your nice words. If you have any suggestion for my upcoming videos, feel free to mention.
@user-bd6qo8so6r
@user-bd6qo8so6r 9 ай бұрын
good job sir. keep up. such amazing content
@SakuraDev
@SakuraDev 9 ай бұрын
Thanks 🙏, I am really glad that you liked it.
@user-lk3jy8oj1n
@user-lk3jy8oj1n 11 ай бұрын
Great content! Please keep it going
@SakuraDev
@SakuraDev 11 ай бұрын
Thanks, your complement really gives me energy to move forward. Welcome to the channel BTW.
@armandwipangestu
@armandwipangestu 2 ай бұрын
Thank you for your effort to make this long video
@SakuraDev
@SakuraDev 2 ай бұрын
My pleasure!
@nisabmohd
@nisabmohd 10 ай бұрын
Coming from NoSQL DB it was hard to understand prisma and you made it so clear to me
@SakuraDev
@SakuraDev 10 ай бұрын
I'm glad I could help! If you have more questions, feel free to ask. Happy learning!
@xiiEJRAM
@xiiEJRAM Жыл бұрын
The best tutorial I have ever seen about Prsima 👏🏻👏🏻
@SakuraDev
@SakuraDev Жыл бұрын
Thanks 🌷🌷🌷
@ZedanMohamed99
@ZedanMohamed99 4 ай бұрын
i was reading the docs , and this video is great *)
@SakuraDev
@SakuraDev 4 ай бұрын
Thanks, I am really glad that you liked it 😀
@abdalrahmanaldammad8866
@abdalrahmanaldammad8866 Ай бұрын
Thank you so much you 're a lifesaver
@SakuraDev
@SakuraDev Ай бұрын
Thanks a lot. I am really glad that it was helpful for you.
@salmanmughal2763
@salmanmughal2763 3 ай бұрын
one of the best tutorials of all time.
@SakuraDev
@SakuraDev 3 ай бұрын
❤️❤️🙏🙏
@whitewalker19
@whitewalker19 3 ай бұрын
too good thanks man
@SakuraDev
@SakuraDev 3 ай бұрын
🙏🙏🎉
@whitewalker19
@whitewalker19 3 ай бұрын
@@SakuraDev cheers man..please continue making more videos like this..keep going
@nahid017
@nahid017 10 сағат бұрын
just awesome best content for prisma
@SakuraDev
@SakuraDev 9 сағат бұрын
Thanks for your support 🙏
@mathewadeyemi5389
@mathewadeyemi5389 7 ай бұрын
i really gain a lot of knowlwdge in this video, and i pray that almighty God will reward you with abundant blessing, even though will can not pay for the service you rendered
@SakuraDev
@SakuraDev 7 ай бұрын
Thank you, that means a lot to me 💓
@oloja__
@oloja__ 7 ай бұрын
wow amazing one right there. i was having a hard time understanding relationships
@SakuraDev
@SakuraDev 7 ай бұрын
Thanks 😊.
@folajhimie
@folajhimie 6 ай бұрын
I recommend this prisma course for everyone wanting to learn prisma… I have checked all the courses of prisma on KZfaq and I can say this is the most comprehensive prisma course currently .. its literally covers everything In the documentation.. awesome job
@SakuraDev
@SakuraDev 6 ай бұрын
Thanks 🙏🙏🙏. I'm really glad that you liked it ☺️
@francejardinevisarra8504
@francejardinevisarra8504 4 ай бұрын
wathaaaaaaaaaaaaaaaaaaaaa thanks bro for these full course
@SakuraDev
@SakuraDev 4 ай бұрын
Thanks 😊😊😊
@gudduagrawal8523
@gudduagrawal8523 3 ай бұрын
great work !
@SakuraDev
@SakuraDev 3 ай бұрын
Thanks a lot 🙏
@gozman20
@gozman20 11 ай бұрын
Woow. U just filled so many knowledge gaps.
@SakuraDev
@SakuraDev 11 ай бұрын
Really happy that it was helpful 🌹☺️
@chaitanyasharma6270
@chaitanyasharma6270 Ай бұрын
best video on prisma, prisma should pay you and fire their technical documentation writers
@SakuraDev
@SakuraDev Ай бұрын
wow, Thank you ❤️🔥
@aurangazebsohag6601
@aurangazebsohag6601 11 ай бұрын
Wow! Thank you so much. Waiting for video on TypeScript from you. Please make it!
@SakuraDev
@SakuraDev 11 ай бұрын
Thanks. Well TypeScript is really an extensive topic. Is there a specific part of the typescript you are looking for?
@ManiSingh-gr7zi
@ManiSingh-gr7zi 2 ай бұрын
Fantastic video! ok..🙂
@SakuraDev
@SakuraDev 2 ай бұрын
Big thanks
@rogerpantil5025
@rogerpantil5025 10 ай бұрын
thanks for this tutorial, i watched all the ads
@SakuraDev
@SakuraDev 10 ай бұрын
You're awesome! Thanks for watching and supporting the channel by watching all the ads. Your support means a lot and helps keep the tutorials coming. If you have any questions or topics you'd like to see in the future, feel free to let me know.
@virtuoz-ru
@virtuoz-ru 6 ай бұрын
Хорош 👍
@gautam_vaishnav
@gautam_vaishnav 7 ай бұрын
You are great, I learned drizzle from you and now learning prisma.
@SakuraDev
@SakuraDev 7 ай бұрын
I am really happy you like it
@Raytem
@Raytem 11 ай бұрын
thank u so mush, that was so useful for me
@SakuraDev
@SakuraDev 11 ай бұрын
Thanks, I'm really glad it was helpful..
@kelsceyortiz1406
@kelsceyortiz1406 Жыл бұрын
You're the best!
@SakuraDev
@SakuraDev Жыл бұрын
Thanks for your nice comment 🌷
@alijawad1210
@alijawad1210 Жыл бұрын
very nice and amazing video
@SakuraDev
@SakuraDev Жыл бұрын
Thanks, I am really glad to hear that from you 🌹😊
@melpacheco9288
@melpacheco9288 11 ай бұрын
Well done
@SakuraDev
@SakuraDev 11 ай бұрын
Thanks 🙏
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Great sir learnt a lot Thank you Got my sub.
@SakuraDev
@SakuraDev Жыл бұрын
Thanks, my pleasure 🙏
@niharmondol1415
@niharmondol1415 10 ай бұрын
Best video. ❤
@SakuraDev
@SakuraDev 10 ай бұрын
Thank you so much for the compliment! I'm thrilled to hear that you found the video valuable. If you need more information or have further questions, don't hesitate to reach out. Happy learning!
@contigen
@contigen 10 ай бұрын
Underrated
@SakuraDev
@SakuraDev 10 ай бұрын
Thank you for your kind comment! Your support means a lot.
@Grishopping
@Grishopping Жыл бұрын
Thank you Brother, I will be waiting for the translation to come out..... Greetings Jose Grillo
@SakuraDev
@SakuraDev Жыл бұрын
Thanks 🌷🌷
@charitysimon-peraboh5555
@charitysimon-peraboh5555 8 ай бұрын
I came here because of your Next Auth full-stack authentication which made me know about Prisma's existence in the first place, I haven't watched but I know u won't disappoint
@SakuraDev
@SakuraDev 8 ай бұрын
I Hope you find it useful 😀
@allone258
@allone258 10 ай бұрын
thanks sir.
@SakuraDev
@SakuraDev 10 ай бұрын
You're welcome! If you have any more questions or need assistance, feel free to ask. Happy to help!
@islambn8962
@islambn8962 5 ай бұрын
hey there, i want to thank you,this course is the only prisma course you will ever need really! also, do you use vscode extension for Prisma code suggestions? I have Prisma extension but the suggestions only work in .schema file or maybe cuz I'm not using typescript ?!
@SakuraDev
@SakuraDev 5 ай бұрын
Thanks 🙏🙏🙏. And yeah that's because you don't use typescript
@angkhoi3352
@angkhoi3352 Жыл бұрын
Thank you very much
@SakuraDev
@SakuraDev Жыл бұрын
Thanks for your nice feedback.
@jagathnalaka
@jagathnalaka Жыл бұрын
Thank you...
@SakuraDev
@SakuraDev Жыл бұрын
Thanks for your nice feedback 🌹
@adarshrathi8265
@adarshrathi8265 10 ай бұрын
You made Video on resumerpro, this is very very excellent than zety, canvas, nova resume builder also free.
@psyferinc.3573
@psyferinc.3573 9 ай бұрын
already subscribed
@SakuraDev
@SakuraDev 9 ай бұрын
Thanks for visiting 🙏
@webminsk7884
@webminsk7884 Ай бұрын
How we can use Prisma with different scheme in PostgresQL? Cause if we write DATABASE_URL without ?schema=public. Prisma cant connect and if add schema ?schema=public we cant get some data from another scheme like "user".
@starrynight72
@starrynight72 28 күн бұрын
How can the insomnia synchronize with the api in the project? 43:04
@adarshrathi8265
@adarshrathi8265 10 ай бұрын
excellent , har har mahadev also made video on graphql
@SakuraDev
@SakuraDev 10 ай бұрын
Thanks for visiting. I will create a video for using graphql in node.js
@speedster784
@speedster784 Жыл бұрын
Do you have to be using typescript for those options to show up while using prisma or is there an extension for that cause I have downloaded the Prisma extension but those options don't show up when using just JavaScript
@SakuraDev
@SakuraDev Жыл бұрын
Well, Prisma works better with Typescript.
@saman6199
@saman6199 Жыл бұрын
Thanks for your detailed tutorial, would be possible to have a test with mocking Prisma and docker to set up different database for testing environments? It would be really good if we could have integration and unit testing.
@SakuraDev
@SakuraDev Жыл бұрын
Hi, I need to have some research on that.
@eslamsami4986
@eslamsami4986 Жыл бұрын
@@SakuraDev one question , can i add a field on a model that dirved its value from other two fields ? such as area = length * width or should i calculate area value in the api level (route.js) ?
@SakuraDev
@SakuraDev Жыл бұрын
@@eslamsami4986 you can use Prisma computed fields. In this way you should extend a model with Prisma client.
@sandangmakmur4475
@sandangmakmur4475 11 ай бұрын
This is awesome. Could you make tutorial for supabase and firebase. Thank you 🙏
@SakuraDev
@SakuraDev 11 ай бұрын
Thanks for your nice feedback, after the Drizzle ORM series which i am currently working on, I will make the tutorials you requested.
@sandangmakmur4475
@sandangmakmur4475 11 ай бұрын
Awesome. Really appreciate it. I will watch drizle orm after completing Prisma 🙏
@SakuraDev
@SakuraDev 11 ай бұрын
@@sandangmakmur4475 😀
@vernonmaceda2004
@vernonmaceda2004 7 ай бұрын
prisma always gives me an error of Authentication fail when I connect to my MSSQL server database
@SakuraDev
@SakuraDev 7 ай бұрын
What kind of authentication do you have set in your MSSQL connection string?
@psyferinc.3573
@psyferinc.3573 9 ай бұрын
and double comments for the win.
@SakuraDev
@SakuraDev 9 ай бұрын
Thanks for your support 🙏
@AnuragMishra-ws4zc
@AnuragMishra-ws4zc Жыл бұрын
Sir plz one video like this for drizzleORM❤❤
@SakuraDev
@SakuraDev Жыл бұрын
Hi, I need to do some research about it to see if it is really better than Prisma or not in terms of performance.
@compass4048
@compass4048 Жыл бұрын
Hello dear teacher, prisma is to create backend, can prisma create frontend? because i seen can use Filters : 43:48 Operators in Filters
@SakuraDev
@SakuraDev Жыл бұрын
Prisma can only be used on the server. we use it in Next.js which is full stack framework.
@xiiEJRAM
@xiiEJRAM Жыл бұрын
Are you going to make course about DrizzleORM ? is better in term of performance , because I am preparing to create large website I want to know if you will make course about it I will wait because the resources are not enough right now for DrizzleORM and your course is epic for Prisma I need something like this for Dirzzle
@SakuraDev
@SakuraDev Жыл бұрын
well, I will go for it.
@xiiEJRAM
@xiiEJRAM Жыл бұрын
@@SakuraDev wait for it =))
Authenticate Users with Google and Next Auth in Next.JS 13
11:50
Migration Lesson: Don't Use Prisma | Prime Reacts
29:16
ThePrimeTime
Рет қаралды 146 М.
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 50 МЛН
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 15 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 11 МЛН
I Have A New Favorite Database Tool
5:46
Theo - t3․gg
Рет қаралды 116 М.
Learn Prisma In 60 Minutes
59:25
Web Dev Simplified
Рет қаралды 389 М.
Data API builder is now Generally Available | Data Exposed
9:39
Microsoft Developer
Рет қаралды 6 М.
Prisma - лучшая ORM для Node.js
23:45
PurpleSchool | Anton Larichev
Рет қаралды 28 М.
Why Prisma Might Not Be a Good Choice for Your Project
5:44
Josh tried coding
Рет қаралды 48 М.
Using MongoDB with Prisma
11:58
Prisma
Рет қаралды 57 М.
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 50 МЛН