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...

Комментарии • 39

  • @smakosh
    @smakosh 4 года назад +13

    A straight forward tutorial, we need more videos like this

  • @zebapy
    @zebapy 4 года назад +39

    Prisma, Next, and Tailwindcss is the best stack right now I'd say

    • @chanlito_
      @chanlito_ 4 года назад +7

      Prisma & Next yes! Tailwind is debatable

    • @seanknowles5309
      @seanknowles5309 4 года назад

      @@l0g3sh Chakra uses tailwind :)

    • @geekySRM
      @geekySRM 4 года назад +7

      @@seanknowles5309 Nope Chakra doesnt use Tailwind, but yes it is inspired by some style choices from Tailwind

    • @frozen_tortus
      @frozen_tortus 4 года назад

      @Jack Saat next.js is utter shit compared to remix.

    • @frozen_tortus
      @frozen_tortus 4 года назад

      @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).

  • @aseel1024
    @aseel1024 4 года назад +30

    imagine that u can build ur full-stack app with $0 cost!
    Nextjs + vercel + Prisma!
    nice 😍

    • @911madza
      @911madza 4 года назад +7

      guys at vercel are on next level 🔥🔥

  • @matthijndijkstra25
    @matthijndijkstra25 3 года назад +1

    This and Next together. Man, productivity through the roof!

  • @dixienormus8097
    @dixienormus8097 3 года назад +2

    Such an amazing find, I never heard of this before. I am loving it. Thanks for such an amazingly comprehensive video. New sub!

  • @daniellaerachannel
    @daniellaerachannel 4 года назад +1

    This is like gold! Thank you

  • @justinkim7202
    @justinkim7202 4 года назад

    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.

  • @sunstrike8943
    @sunstrike8943 4 года назад +2

    How to query 2tables ? With relationships

  • @tobbymarchal3140
    @tobbymarchal3140 Год назад

    How to deploy to vercel with SQLite?

  • @benevans1377
    @benevans1377 3 года назад +1

    Loved the video :) quick question: how do you have connections to multiple databases?

    • @PrismaData
      @PrismaData  3 года назад

      Thanks Ben.
      Currently we don't support the ability to interact with multiple databases with a single Prisma Client.

    • @benevans1377
      @benevans1377 3 года назад +1

      @@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 :)

  • @BrandonClapp
    @BrandonClapp 3 года назад +2

    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.

    • @hamitaksln
      @hamitaksln 3 года назад

      Can you send the docs that mention about it

  • @manoellopes
    @manoellopes 4 года назад

    Simple and amazing.

  • @theprantadutta
    @theprantadutta 4 года назад +1

    I am getting this error.
    /node_modules/@prisma/client/runtime/index.js
    Module not found: Can't resolve 'async_hooks'
    null
    Can anybody help?

    • @theprantadutta
      @theprantadutta 4 года назад

      @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

  • @adamtang5148
    @adamtang5148 3 года назад

    lovely type-safe in where part.

  • @malikbrahimi7504
    @malikbrahimi7504 4 года назад

    When are migrations going to be production ready? That's the only thing holding me back at this point.

  • @malikbrahimi9369
    @malikbrahimi9369 4 года назад

    When will migrations be stable? What other client would you specify other than prisma-client-js?

    • @malikbrahimi9369
      @malikbrahimi9369 4 года назад

      @Alberto Perdomo Awesome! Also wondering is there a way to specify cascade deletion with relationships

  • @MaksymMinenko
    @MaksymMinenko 3 года назад

    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...

  • @shardyrs9263
    @shardyrs9263 4 года назад

    Awesome.

  • @frozen_tortus
    @frozen_tortus 4 года назад +2

    You should flag this video as not relevant any longer, the current version of Prisma is using different flag names.

    • @holodeck_run
      @holodeck_run 4 года назад +4

      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 :)

  • @emyboybeats4330
    @emyboybeats4330 4 года назад

    Can I use it with javascript?

  • @MagicSwordYT
    @MagicSwordYT 4 года назад

    breeze