Prisma in 100 Seconds

SdĂ­let
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

Komentáƙe • 795

  • @leagueoflags
    @leagueoflags Pƙed 2 lety +1219

    This sounds incredibly handy! A full tutorial would be great!

    • @macrozone
      @macrozone Pƙed 2 lety +33

      Prisma is actually so easy, that you barely need a tutorial

    • @Bluepaccao
      @Bluepaccao Pƙed 2 lety +5

      Agreed, it would be nice to see

    • @haidermuhammad999
      @haidermuhammad999 Pƙed 2 lety +4

      I'm up for a tutorial tbh

    • @h_beserra
      @h_beserra Pƙed 2 lety +2

      I agree with you

    • @majidshah48
      @majidshah48 Pƙed 2 lety +2

      Documentation is easy

  • @wayslow
    @wayslow Pƙed 2 lety +766

    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.

    • @andreribeiro6808
      @andreribeiro6808 Pƙed 2 lety +30

      You can't rollback a migration, but if you want to edit one before running it you can pass the --create-only flag

    • @RaZziaN1
      @RaZziaN1 Pƙed 2 lety +20

      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)

    • @KgfLikia
      @KgfLikia Pƙed 2 lety +2

      @@andreribeiro6808 in laravel migrations you can.

    • @rochmadwa7076
      @rochmadwa7076 Pƙed 2 lety +3

      Yeah, I'm using Webstorm and disappointed that there's no working plugin for editing Prisma schema

    • @MrPatak007
      @MrPatak007 Pƙed 2 lety +2

      those are red flags for me

  • @theycallmejohn4733
    @theycallmejohn4733 Pƙed 2 lety +338

    I would love to see a full tutorial, this seems incredibly useful.

    • @epicprogramming1383
      @epicprogramming1383 Pƙed 2 lety +1

      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! 👏

    • @kwcase1
      @kwcase1 Pƙed 2 lety

      +1

  • @madara-sq5xp
    @madara-sq5xp Pƙed 2 lety +159

    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.

    • @alexandromg
      @alexandromg Pƙed 2 lety +11

      This is just a fireship ad 😝

    • @somfierce
      @somfierce Pƙed rokem +1

      I feel like Fireship is more of a way to figure out which long tutorials (from other channels) to actually watch

    • @maurobianchin8243
      @maurobianchin8243 Pƙed 9 měsĂ­ci

      gay

  • @kadensharpin2156
    @kadensharpin2156 Pƙed 2 lety +22

    Just started using prisma last week. This channel always has crazy timing

  • @dorifourer6949
    @dorifourer6949 Pƙed 2 lety +25

    That’s exactly what I needed!
    A full tutorial would be great.

  • @xerafenix
    @xerafenix Pƙed 2 lety +5

    You should definitely do a full tutorial! This seems like such an amazing technology.

  • @motae999
    @motae999 Pƙed 2 lety +1

    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

  • @theweirdsquid
    @theweirdsquid Pƙed 2 lety +9

    I would love a full prisma tutorial! This sounds like it would save so much time!

  • @gastond7277
    @gastond7277 Pƙed 2 lety +8

    Seeing a beyond 100 seconds for prisma would be awesome! Thanks for all the awesome content !!

  • @cjezinne
    @cjezinne Pƙed 2 lety +8

    Congrats on 1 Million Subs! Great to see SWE content growing as rapidly as yours 🎉

  • @krishgarg2806
    @krishgarg2806 Pƙed 2 lety +2

    Thank you! I have been using it for few months now and its great with the amazing intellisense and easy relational mapping.

  • @ThiagoVieira91
    @ThiagoVieira91 Pƙed 2 lety +4

    A full tutorial is required! Great as always!

  • @andriotis
    @andriotis Pƙed 2 lety +3

    A full tutorial would be GREAT. It is one of the most interesting tools I’ve seen here. Yes. 100% Yes

  • @umang5559
    @umang5559 Pƙed 2 lety +2

    That's was really good, appreciate it man for making it so beautifully and explaining important things in such a short time.👏👏👏👏👏

  • @moibe182
    @moibe182 Pƙed 7 měsĂ­ci

    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!

  • @tennhard
    @tennhard Pƙed 2 lety +1

    Amazing video as always! I’d definitely watch a long form version of this!

  • @samlopezco
    @samlopezco Pƙed 2 lety +16

    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.

  • @snetterfield56
    @snetterfield56 Pƙed 2 lety

    Been using prisma for a few work related projects and it's incredible! Makes it stupid easy to work with databases in node

  • @ethanleo3365
    @ethanleo3365 Pƙed 2 lety +2

    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

  • @razorbelle
    @razorbelle Pƙed 2 lety +9

    Would love to see authentication and authorization covered in a full Prisma tutorial! đŸ„°

  • @NaumRusomarov
    @NaumRusomarov Pƙed 2 lety +39

    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.

    • @proosee
      @proosee Pƙed 7 měsĂ­ci +4

      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.

  • @yadusolparterre
    @yadusolparterre Pƙed 2 lety +2

    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!

  • @michaelshepard3380
    @michaelshepard3380 Pƙed rokem

    These videos are terrific and have been very helpful in the masters program I'm in. Thank you for making these!!

  • @morchedlafferty8614
    @morchedlafferty8614 Pƙed 2 lety +11

    I used it lately along Postgres in an entreprise project, and dev experience was super great! Really recommend it!

    • @omare5383
      @omare5383 Pƙed 2 lety

      If I am understanding correctly, I don't need to use back-end endpoint? I can write directly to the database ?

    • @TheQuinn50
      @TheQuinn50 Pƙed 2 lety

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

    • @SirM0linarius
      @SirM0linarius Pƙed 2 lety +1

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

    • @morchedlafferty8614
      @morchedlafferty8614 Pƙed 2 lety

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

    • @darkcss1054
      @darkcss1054 Pƙed 2 měsĂ­ci

      @@TheQuinn50 or use React Server Component to do all db communication in the server.

  • @Fizbun
    @Fizbun Pƙed 2 lety +5

    I got excited thinking this is a video about the Finnish store chain also called "Prisma" that also has stores in Estonia

  • @Alex-xl4xe
    @Alex-xl4xe Pƙed 2 lety +1

    How freaking awesome is this? I've watched this the second time now and only now understood how amazing this is. Damn!

  • @harrisongilbert
    @harrisongilbert Pƙed 2 lety

    Even though I’ve been working with Prisma for quite a while now, it’s still fun to watch these videos!

  • @MuhammadUzair-vw4hw
    @MuhammadUzair-vw4hw Pƙed 2 lety +6

    Prisma looks very interesting! It will be great if you do a full tutorial about it.

  • @faceboy1392
    @faceboy1392 Pƙed 2 lety +1

    A full tutorial would be great, especially if it can briefly go into things like usage on hosting services such as Heroku. Great video!

  • @oraqlle
    @oraqlle Pƙed 2 lety +112

    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.

    • @ThijmenCodes
      @ThijmenCodes Pƙed 2 lety +1

      Agreed!

    • @shambhav9534
      @shambhav9534 Pƙed 2 lety +47

      It should end with an unreadable compiler error that spans a hundred lines.

    • @Mnerd7368
      @Mnerd7368 Pƙed 2 lety +9

      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.

    • @oraqlle
      @oraqlle Pƙed 2 lety +1

      @@shambhav9534 Absolutely đŸ€Ł

    • @oraqlle
      @oraqlle Pƙed 2 lety +5

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

  • @legenuspl4906
    @legenuspl4906 Pƙed 2 lety

    look forward for full prisma tutorial! Thx for this video

  • @pixelknitter
    @pixelknitter Pƙed 2 lety

    FULL TUTORIAL PLZ - love tools like this that make dev-life simpler

  • @Ghileman100
    @Ghileman100 Pƙed 2 lety +1

    I didn't know I needed and now I desperately do. Full tutorial pretty please!

  • @janpawedwa4590
    @janpawedwa4590 Pƙed 2 lety +2

    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.

  • @brunodepaula9145
    @brunodepaula9145 Pƙed 2 lety +1

    I would LOVE an extended video of this!!

  • @soksedthaly8299
    @soksedthaly8299 Pƙed 2 lety

    I have just started using Prisma. This gives me a much better idea of what I can do with it. Thanks a lot!

  • @jessyndaya9487
    @jessyndaya9487 Pƙed 2 lety +3

    Amazingly great video , prisma structure is also complex and require a lot of memorization

  • @brett84c
    @brett84c Pƙed 2 lety +1

    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.

  • @stevealliance4370
    @stevealliance4370 Pƙed 2 lety

    Go ahead with the full course, you are the best

  • @shaiyanollaciu3694
    @shaiyanollaciu3694 Pƙed rokem

    this is the best video i had see in youtube ! Thank u for that awesome explaination 👏👏👏

  • @harveyaptx7356
    @harveyaptx7356 Pƙed 2 lety

    Definitely go for the full tutorial. Rich content as always. 👌

  • @huluradio8496
    @huluradio8496 Pƙed 2 lety +1

    Prisma is crazy good. Been with them since prisma 1 and the new one is even way more powerful.

  • @LohenYumnam
    @LohenYumnam Pƙed 2 lety +2

    I love Prisma, I would love to see a full tutorial from you.

  • @kagedevshorts4886
    @kagedevshorts4886 Pƙed 2 lety +6

    I would really love it if you made more videos on svelte

  • @davidbd
    @davidbd Pƙed 2 lety

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

  • @mcdazzzled
    @mcdazzzled Pƙed 2 lety +1

    Yes please! Full tutorial sounds great 👍

  • @coob404
    @coob404 Pƙed 2 lety

    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!

  • @colorfulvoid1473
    @colorfulvoid1473 Pƙed 2 lety +3

    I need a full tutorial NOW!
    Thank you UwU

  • @TheIQo
    @TheIQo Pƙed 2 lety

    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

  • @21Blankenship
    @21Blankenship Pƙed 2 lety

    I’ve gotten to run this on a few projects. Super helpful!

  • @flam1ngicecream
    @flam1ngicecream Pƙed 2 lety

    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.

  • @chullupa
    @chullupa Pƙed 2 lety +2

    this looks awesome. always found orms to have painpoints but ill def be checking this out

  • @kataii
    @kataii Pƙed 2 lety +13

    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.

    • @Fanoflix
      @Fanoflix Pƙed 2 lety +1

      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.

    • @tooru
      @tooru Pƙed rokem

      lose*

  • @Ollinho12
    @Ollinho12 Pƙed 2 lety

    I'm using Prisma in my current project - really enjoying it, would definitely recommend.

  • @jmagrippis
    @jmagrippis Pƙed 2 lety

    Lovely summary! I find showing the Typescript autocomplete is what makes people get their “Aha!” moment with Prisma 💡

  • @temaelbouaazzaoui8709
    @temaelbouaazzaoui8709 Pƙed 9 měsĂ­ci

    I don't think it needs only 100sec, a full tutorial would be great !!

  • @professorvarox
    @professorvarox Pƙed 2 lety +1

    I use Prisma since a few months now and I really love it. I will never switch back to another ORM

  • @Rasecz
    @Rasecz Pƙed 2 lety

    Yes for the full tut. Had no idea Prisma was this deep. Would love to know if there are other tools like it too

  • @itssNiraj
    @itssNiraj Pƙed 2 lety

    Born ready for this prisma tutorialđŸ˜ŽđŸ€©!!!

  • @bridgeburner100
    @bridgeburner100 Pƙed 10 měsĂ­ci

    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.

  • @krush845
    @krush845 Pƙed 2 lety

    A full-stack tutorial with prisma and nextjs would be greatly appreciated!

  • @putuandy
    @putuandy Pƙed 2 lety

    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 🙃

  • @kiv0x
    @kiv0x Pƙed 2 lety +1

    I've used prisma for a while, but a tutorial on how to properly use it with best practices would be great!

  • @rx2316
    @rx2316 Pƙed 2 lety +1

    I definitely wanna see a full developed tutorial on Prisma, it reminds Django in lots of ways

  • @ProtonChicken
    @ProtonChicken Pƙed 2 lety

    Awesome, just started a bunch of school projects using Postgres!

  • @DaggieBlanqx
    @DaggieBlanqx Pƙed 2 lety

    Unlike your politician, Fireship keeps promises. I always see new short videos after I like a previous one.
    Thank you so much.

  • @falxie_
    @falxie_ Pƙed 2 lety +3

    The first version of Prisma has some super rough patches, but the new Prisma seems like a huge step up

  • @Andressuquaz156
    @Andressuquaz156 Pƙed 2 lety +1

    This reminds me a hella lot of Django, the model system looks great, I'll definitely checking it out

  • @theatypicaldeveloper
    @theatypicaldeveloper Pƙed 2 lety

    quality stuff as always. Never used prisma before, but it looks very convenient.

  • @currymagc
    @currymagc Pƙed 2 lety +1

    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

  • @codingtise9187
    @codingtise9187 Pƙed 2 lety

    Yes please!!! A tutorial on this would be awesome; a project which is small but really awesomeđŸ‘ŒđŸœđŸ‘ŒđŸœđŸ‘ŒđŸœ.

  • @felipeflores5403
    @felipeflores5403 Pƙed 2 lety

    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

  • @gustavofarias9662
    @gustavofarias9662 Pƙed 2 lety

    I would very much like a full Prisma tutorial covering the main pros and cons of the ORM 😀

  • @nanonkay5669
    @nanonkay5669 Pƙed rokem

    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

  • @chromek9812
    @chromek9812 Pƙed 2 lety

    Ofc we want to see the full Prisma tutorial!

  • @hellogoodbye4894
    @hellogoodbye4894 Pƙed 2 lety

    This entire channel is pure gold

  • @matthewaxisa6058
    @matthewaxisa6058 Pƙed 2 lety +5

    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.

    • @seandemers8147
      @seandemers8147 Pƙed 2 lety +1

      A cool thing could be 'flyway' in 100 seconds. It's a database versioning tool.

    • @gethermedel3620
      @gethermedel3620 Pƙed 2 lety

      that's where code level migrations and seeders come's in. it's still way better to have all these in code/application level.

    • @gto433
      @gto433 Pƙed rokem

      For mongodb, is mongoose orm fine for large teams?

  • @VietLe-rn2xi
    @VietLe-rn2xi Pƙed 2 lety

    Amazing! Would love to see a NextJS + Prisma + Supabase tutorial!

  • @vinayrwt
    @vinayrwt Pƙed 2 lety

    Buddy, love the way you teach ❀

  • @HanumanVonZibben
    @HanumanVonZibben Pƙed 2 lety

    awesome! Thanks a lot for sneak peak section of new technologies/

  • @misaelpereira9679
    @misaelpereira9679 Pƙed 2 lety

    This is Incredible! Please make a beyond 100 seconds!

  • @imed-boumalek
    @imed-boumalek Pƙed 2 lety

    Was using it last week. It’s AWESOME đŸ”„

  • @poulette2937
    @poulette2937 Pƙed 2 lety

    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

  • @Erik-rj5xz
    @Erik-rj5xz Pƙed 2 lety +2

    Nice video as always! Full tutorial pls!

  • @AmxCsifier
    @AmxCsifier Pƙed 2 lety

    Finally 😁, I requested this like two times. It's so awesome

  • @joebuydem
    @joebuydem Pƙed 2 lety +1

    definitely need a tutorial this is perfect.

  • @giuseppedipierri5164
    @giuseppedipierri5164 Pƙed 2 lety

    Fantastic tool, I've been using it in project and I am very happy

  • @Remolhunter97
    @Remolhunter97 Pƙed 2 lety +1

    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.

  • @vishaldharmawat
    @vishaldharmawat Pƙed rokem

    Lovely video!! Full tutorial would be great!

  • @esportsnexus
    @esportsnexus Pƙed 2 lety +1

    Yes, we want full prisma tutorials.

  • @saulramirez727
    @saulramirez727 Pƙed 2 lety

    I’d like to watch a full Prisma tutorial, that’ll be amazing

  • @roziscoding
    @roziscoding Pƙed 2 lety

    Prisma is awesome! I'd love a full tutorial

  • @haruruben
    @haruruben Pƙed 2 lety

    Whoa whoa you’re blowing my mind. How have I never heard of this?

  • @alinawaz4034
    @alinawaz4034 Pƙed 2 lety

    We want a full prisma tutorials we Love it.

  • @Blasto
    @Blasto Pƙed 2 lety

    Thanks for your videos, I love your channel so much!

  • @AngeloSantarella
    @AngeloSantarella Pƙed 2 lety

    A full tutorial will be great!!

  • @andyiscool5463
    @andyiscool5463 Pƙed 2 lety

    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

  • @chiamakaojiyi7126
    @chiamakaojiyi7126 Pƙed 2 lety

    Nice video. Please make a full tutorial and demonstrate how to dockerize a prisma + postgres Nodejs project. Will be appreciated

  • @lucasbarreto-dev
    @lucasbarreto-dev Pƙed rokem

    A tutorial about that would be awesome! đŸ™đŸ»