Prisma - The Easiest Way to Work with a Database in Next.js
HTML-код
- Опубликовано: 25 янв 2025
- NOTE: This video shows an older version of Prisma Migrate.
Watch an updated video here: • Prisma - The Easiest W...
Please see our documentation for the latest version of migrate, including the latest flags to use: www.prisma.io/...
Prisma is an open source, next-generation ORM and database toolkit for JavaScript and TypeScript. It’s the easiest way to work with a database in Next.js.
Learn more about Prisma:
◭ Website: www.prisma.io
◭ Docs: www.prisma.io/...
◭ Quickstart: pris.ly/quicks...
A straight forward tutorial, we need more videos like this
Prisma, Next, and Tailwindcss is the best stack right now I'd say
Prisma & Next yes! Tailwind is debatable
@@l0g3sh Chakra uses tailwind :)
@@seanknowles5309 Nope Chakra doesnt use Tailwind, but yes it is inspired by some style choices from Tailwind
@Jack Saat next.js is utter shit compared to remix.
@Jack Saat Have a look couple of videos with an introduction and decide is it for you or not. I for one love it. Data fetching is so superior to any other solution, next.js included. From what I saw, the only thing close is svelte@next (which is not even ready).
imagine that u can build ur full-stack app with $0 cost!
Nextjs + vercel + Prisma!
nice 😍
guys at vercel are on next level 🔥🔥
This and Next together. Man, productivity through the roof!
Such an amazing find, I never heard of this before. I am loving it. Thanks for such an amazingly comprehensive video. New sub!
This is like gold! Thank you
Been following Prisma for a while now. It's really exciting stuff and I look forward to using it in a project in the near future.
How to query 2tables ? With relationships
How to deploy to vercel with SQLite?
Loved the video :) quick question: how do you have connections to multiple databases?
Thanks Ben.
Currently we don't support the ability to interact with multiple databases with a single Prisma Client.
@@PrismaData after a lil bit of digging, I found this github.com/prisma/prisma/issues/2443#issuecomment-630679118 it's a little dirty but it is doable :)
We create 3 instances of PrismaClient here. Does prisma do connection pooling internally or is that creating a new db connection every time?
Edit: Never mind, it absolutely does do pooling. The docs are superb btw.
Can you send the docs that mention about it
Simple and amazing.
I am getting this error.
/node_modules/@prisma/client/runtime/index.js
Module not found: Can't resolve 'async_hooks'
null
Can anybody help?
@Joël Galeran thanks for answering.. It turned out I can't use Prisma Client in the frontend...I have to use it in the api or in the fetching method like getStaticProps or getServersideProps...Thanks, BTW
lovely type-safe in where part.
When are migrations going to be production ready? That's the only thing holding me back at this point.
When will migrations be stable? What other client would you specify other than prisma-client-js?
@Alberto Perdomo Awesome! Also wondering is there a way to specify cascade deletion with relationships
Why won't you upload the initial version to github? It would make more sense-to start with you from where you start, not from the final version...
Awesome.
You should flag this video as not relevant any longer, the current version of Prisma is using different flag names.
Thanks! I've updated the description with a link to the docs for the latest version of migrate. I'll also be recording a new version very soon :)
Can I use it with javascript?
breeze