Prisma in 100 Seconds
VloĆŸit
- Äas pĆidĂĄn 16. 05. 2024
- Prisma is an open-source ORM that makes it fun and safe to work with a database like MySQL, Postgres, SQL Server, or MongoDB. It generates a type-safe client library to provide an awesome DX in any Node.js or JavaScript project.
This video is NOT sponsored.
#database #webdev #100SecondsOfCode
đ Resources
- Prisma Docs www.prisma.io/
- Prisma Source Code github.com/prisma/prisma
- MySQL Full Tutorial âą MySQL - The Basics // ...
đ„ Get More Content - Upgrade to PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
đš My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
đ Topics Covered
- What is Prisma
- Is Prisma an ORM?
- Prisma Quickstart
- What is Prisma used for?
- How to use Prisma in Node.js
- Using Prisma with a relational database
- Prisma compared to Sequalize or TypeORM - VÄda a technologie
This sounds incredibly handy! A full tutorial would be great!
Prisma is actually so easy, that you barely need a tutorial
Agreed, it would be nice to see
I'm up for a tutorial tbh
I agree with you
Documentation is easy
Been using Prisma for a while. It's amazing, but has a few gotchas. Like "nested curly brace fatigue" is a real thing, it's easy to nest a few simple "wheres" to a few indentation levels so the whole code is unreadable. Migrations are also bit raw - you can't edit them and there's no rollback. They will also wipe anything from your dev db, like store procedures or extra tables... or data.
On the plus side - I love that Prisma generates types for TS from the db, it's a great source of truth when playing a lot with DB design.
Super important note - VS Code has much better support for editing schema than anything else.
You can't rollback a migration, but if you want to edit one before running it you can pass the --create-only flag
And generated SQL code is really slow, 10 times slower than linq with entity framework. In new version this issue will be addressed, but let's say prisma is still very young (though some people use this in prod)
@@andreribeiro6808 in laravel migrations you can.
Yeah, I'm using Webstorm and disappointed that there's no working plugin for editing Prisma schema
those are red flags for me
I would love to see a full tutorial, this seems incredibly useful.
If you want to see more CRUD examples in Prisma 3 you can watch this tutorial:
czcams.com/video/UfihN-7d4G8/video.html
Fireship as always made a very good introduction! đ
+1
If you created your own tutorials like 1 hour long
I would definitely watch you,
You have the ability to keep the viewer attention with charming voice and with interactive examples.
This is just a fireship ad đ
I feel like Fireship is more of a way to figure out which long tutorials (from other channels) to actually watch
gay
Just started using prisma last week. This channel always has crazy timing
Thatâs exactly what I needed!
A full tutorial would be great.
You should definitely do a full tutorial! This seems like such an amazing technology.
Thanks man you always keep us updated with technologies which is the main reason for my subscription to ur channel and we can always look up full tutorial somewhere else when needed so we appreciate ur 100 seconds videos keep it up
I would love a full prisma tutorial! This sounds like it would save so much time!
Seeing a beyond 100 seconds for prisma would be awesome! Thanks for all the awesome content !!
Congrats on 1 Million Subs! Great to see SWE content growing as rapidly as yours đ
Thank you! I have been using it for few months now and its great with the amazing intellisense and easy relational mapping.
A full tutorial is required! Great as always!
A full tutorial would be GREAT. It is one of the most interesting tools Iâve seen here. Yes. 100% Yes
That's was really good, appreciate it man for making it so beautifully and explaining important things in such a short time.đđđđđ
I love the fact that in 100 seconds you just not explain what it is, but you actually guide us to implement it right away!
Amazing video as always! Iâd definitely watch a long form version of this!
Jeez Jeff any time i get pulled into a project where i have no clue how to get started, you release a video explaining exactly what i need.
Been using prisma for a few work related projects and it's incredible! Makes it stupid easy to work with databases in node
I use Prisma in one of my Express apps. What I like is that it has built in Typescript support and its features in which the most notable one to me is the introspection. I used to do raw queries until I came across Prisma and I realised that as compared to other ORM libraries where you can only carry out migrations, Introspection allows you to generate your models from your existing database schema. Apart from that the auto generated models give you one step ahead in allowing you to have interfaces that can be used for type assertion
Would love to see authentication and authorization covered in a full Prisma tutorial! đ„°
The advantage of writing raw sql is that you can easily use db specific functionality and test the sql code separately.
orms are fine for some projects, but the abstractions tend to be quite leaky, so their usefulness usually is limited.
db migration tools are nice, though.
I stick to the simple rule: ORMs for managing migrations and performing simple queries/updates, SQL for more complicated queries or operations. Some purist don't like it, but I will let them suffer in their own unmaintainable code.
Your videos are beautiful. I would be super happy to see an video on the tools you use to create, edit and publish your vids!
These videos are terrific and have been very helpful in the masters program I'm in. Thank you for making these!!
I used it lately along Postgres in an entreprise project, and dev experience was super great! Really recommend it!
If I am understanding correctly, I don't need to use back-end endpoint? I can write directly to the database ?
@@omare5383 always develop using a 3 layer system, never access the db directly from your frontend. Have a API or sever in-between so you can ensure proper source of truth
@@omare5383 That is incorrect. Prisma does not work clientside, it runs in a Node environment (the Backend). You can however use a library like react-query or the framework blitzJS (highly recommended) to call backend code without having to write an api manually. In case of blitzJS the api is implemented automatically during the build step of your project.
@@omare5383 in addition to the above comments, yes, you can also forward your queries from the frontend to the backend, but they are handled only through the backend.
@@TheQuinn50 or use React Server Component to do all db communication in the server.
I got excited thinking this is a video about the Finnish store chain also called "Prisma" that also has stores in Estonia
How freaking awesome is this? I've watched this the second time now and only now understood how amazing this is. Damn!
Even though Iâve been working with Prisma for quite a while now, itâs still fun to watch these videos!
Prisma looks very interesting! It will be great if you do a full tutorial about it.
A full tutorial would be great, especially if it can briefly go into things like usage on hosting services such as Heroku. Great video!
Am I the only one who feels like a C++ in 100s should be done. Thereâs a lot of cool things modern C++ does and aims for that I think would interest a lot of developers and these videos are perfect recaps of languages/frameworks and their aims. Keep up the great work. This videos are always eye opening to new worlds as a developer.
Agreed!
It should end with an unreadable compiler error that spans a hundred lines.
I want to see a tutorial for Linux in C++ programming for writing and developing aerospace autonomous spacecraft software and robotics software engineering using R.O.S. (robotic operating system) just like SpaceX, Rocket Lab, NASA, Boeing, and Blue Origin. I tried to find any tutorial for aerospace software engineering in the Internet but there is none and is a bunch of impractical gibberish.
@@shambhav9534 Absolutely đ€Ł
@@Mnerd7368 Yeah, C++ has a very high ceiling of entry, not because it's necessarily hard to use (although much more boilerplate must be written) but because it such a different language to what is used to be and many tutorials use outdated practices or a mash of old and modern that makes code unreadable and don't actually showcase the new and powerful practices and methods the community and the standards committee have been working on to make C++ as powerful and diverse as it is. C++ written 10, 15 and 20+ years ago is not the same C++ you can and probably should write today.
look forward for full prisma tutorial! Thx for this video
FULL TUTORIAL PLZ - love tools like this that make dev-life simpler
I didn't know I needed and now I desperately do. Full tutorial pretty please!
That db pull feature is pretty cool. I just model everything in Heidi (because that is what I am used to), run one command, and it just works.
I would LOVE an extended video of this!!
I have just started using Prisma. This gives me a much better idea of what I can do with it. Thanks a lot!
Amazingly great video , prisma structure is also complex and require a lot of memorization
Been learning Prisma this week as part of my new job and even though I am not too deep in yet, I'm loving it. It feels as easy as working with Mongo, but with none of the negatives.
Will it support cloud database?
Go ahead with the full course, you are the best
this is the best video i had see in youtube ! Thank u for that awesome explaination đđđ
Definitely go for the full tutorial. Rich content as always. đ
Prisma is crazy good. Been with them since prisma 1 and the new one is even way more powerful.
I love Prisma, I would love to see a full tutorial from you.
I would really love it if you made more videos on svelte
I am currently working on a project where I am using PostgreSQL and this will definitly get into it. Very nice had not heard of it before đ Thx for sharing...
Yes please! Full tutorial sounds great đ
Just a week ago I came across prisma and was looking into putting it into a project, good timing! And a beyond 100 seconds weeks be great!
I need a full tutorial NOW!
Thank you UwU
yes sir, i would like to see full prisma tutorial in the future so i am letting you know in my comment. also thank you for your awesome videos. you da real MVP
Iâve gotten to run this on a few projects. Super helpful!
This video has done a fantastic job of solidifying my current position on SQL, which is that you can abstract it away when you pry it from my cold, dead fingers.
this looks awesome. always found orms to have painpoints but ill def be checking this out
This is exactly what Iâm looking for. I love the handy tools ORM gives but we loose control on DB structure and have more learning curve to create schema with ORMâs method. I love tinkering on the DB directly instead of letting ORM to take over.
Please please please have a full tutorial or a course for Prisma.
Prisma allows you to define your schema and then use that schema to create a Prisma migration; which is the "introspection" part in this video.
lose*
I'm using Prisma in my current project - really enjoying it, would definitely recommend.
Lovely summary! I find showing the Typescript autocomplete is what makes people get their âAha!â moment with Prisma đĄ
I don't think it needs only 100sec, a full tutorial would be great !!
I use Prisma since a few months now and I really love it. I will never switch back to another ORM
Yes for the full tut. Had no idea Prisma was this deep. Would love to know if there are other tools like it too
Born ready for this prisma tutorialđđ€©!!!
yes please to the Prisma tutorial :D Working on my first real attempt at fullstack and I know I need to get in one of these.
A full-stack tutorial with prisma and nextjs would be greatly appreciated!
i would love to use it in my personal project
and actually, this is what I'm looking for right now
for that A full tutorial would be great đ
I've used prisma for a while, but a tutorial on how to properly use it with best practices would be great!
I definitely wanna see a full developed tutorial on Prisma, it reminds Django in lots of ways
Awesome, just started a bunch of school projects using Postgres!
Unlike your politician, Fireship keeps promises. I always see new short videos after I like a previous one.
Thank you so much.
The first version of Prisma has some super rough patches, but the new Prisma seems like a huge step up
This reminds me a hella lot of Django, the model system looks great, I'll definitely checking it out
quality stuff as always. Never used prisma before, but it looks very convenient.
Prisma is the first ORM that I didn't absolutely hate using. It's still missing a view key features, such as Views, but overall it's pretty darn good and saves a ton of time
Yes please!!! A tutorial on this would be awesome; a project which is small but really awesomeđđœđđœđđœ.
I'm not kidding when I say that you post a video about a tool I'm using/trying out the second I do. Whether you read minds or expertly analyze developer trends will forever remain a mystery
I would very much like a full Prisma tutorial covering the main pros and cons of the ORM đ
This orm is incredibly easy to learn and to wire up into your BE. I went from learning Sequelize to this and, my god, was this way easier to use
Ofc we want to see the full Prisma tutorial!
This entire channel is pure gold
I love ORMs like Prisma which can give type safety when you're working with the DB. However when working on big projects (especially those where multiple teams access the same DB from different application contexts) they cannot replace plain SQL for migrations. I would really like to see a 100 seconds (and beyond) where your showcase tools to manage database migrations.
A cool thing could be 'flyway' in 100 seconds. It's a database versioning tool.
that's where code level migrations and seeders come's in. it's still way better to have all these in code/application level.
For mongodb, is mongoose orm fine for large teams?
Amazing! Would love to see a NextJS + Prisma + Supabase tutorial!
Buddy, love the way you teach â€ïž
awesome! Thanks a lot for sneak peak section of new technologies/
This is Incredible! Please make a beyond 100 seconds!
Was using it last week. Itâs AWESOME đ„
I was in the process of choosing a library for managing SQL data in a node project. Sequelize seemed like a very nice option but after seeing this I need to reconsider
Nice video as always! Full tutorial pls!
Finally đ, I requested this like two times. It's so awesome
definitely need a tutorial this is perfect.
Fantastic tool, I've been using it in project and I am very happy
Damn, Prisma looks nice.
I had to learn completly SQL, and it's just a headache every time I have to go back to it.
Prisma looks sexy, easy and even usable with other tech. Perfect.
Lovely video!! Full tutorial would be great!
Yes, we want full prisma tutorials.
Iâd like to watch a full Prisma tutorial, thatâll be amazing
Prisma is awesome! I'd love a full tutorial
Whoa whoa youâre blowing my mind. How have I never heard of this?
We want a full prisma tutorials we Love it.
Thanks for your videos, I love your channel so much!
A full tutorial will be great!!
Bro wtf, literally was looking at deploying my web app with prisma as the ORM today and now you made a video about it. You are one genie smh
Nice video. Please make a full tutorial and demonstrate how to dockerize a prisma + postgres Nodejs project. Will be appreciated
A tutorial about that would be awesome! đđ»