Podchaser Logo
Home
Prisma is amazing

Prisma is amazing

Released Thursday, 10th June 2021
Good episode? Give it some love!
Prisma is amazing

Prisma is amazing

Prisma is amazing

Prisma is amazing

Thursday, 10th June 2021
Good episode? Give it some love!
Rate Episode

Hey there friends. So yesterday I was just a fanboying I guess aboutPrisma. If you haven't heard of Prisma, it is a Oh what does that? It'sORN, I can't remember what what the word for that is but it interfacesbetween you and a backend database. So it supports post-grass and SQLite mysequel and a MongoDB support is coming.So yeah, just so you have a database and you tell it what database whatkind of,Database you're hitting and how to connect to it or what theconnection URL is. And then it manages connecting to it and you have therest of your code doesn't have to worry about what type of database it is.You just work with Prisma. And what makes Prisma especially special is thatit has a really great way for defining your schema for the types or themodels that your database supports. It has a really nice way of making thedatabase match that so it'll create the tables for you and everything.It has a great way for my great.Hitting so if you need to change the columnname or something then it will automate that process and and that can bepart of your deployment pipeline is to alter tables to add columns andstuff like that. It doesn't quite help you with like breaking changes.It they have some articles to help, you know, how to go about doing thatand I have successfully done that with Prisma. But yeah, and and it's it'snot like a terribly difficult thing to do necessarily but I mean if it's areally great big breaking change then having zero downtime is tricky.But yeah, I've had a couple like the situations where I needed to remove anenum value and stuff and I was able to do that without too much trouble.Thanks to a lot to prism as migrate feature, but then the thing that youexperience on a regular basis working with Prisma that just I love is itstype script support.So you define this schema and then it generates TypeScript types. So thatas you're using Prisma you say Prisma dot and then the,The table that youwant to get and info from and then find many and then you have a select andaware and an order by and if there's relations so like a user has manyposts or something then you can get all that users posts or if you'relooking for posts, you can get the the author and data from that and it'sall just so nice with TypeScript.It's it's brilliant. So if you are using one of those databases and youhaven't tried Prisma yet give it a look it is fantastic. I'm really reallyhappy with it. Hope you're having an awesome day andWe'll talk to you later.

Show More
Rate

Join Podchaser to...

  • Rate podcasts and episodes
  • Follow podcasts and creators
  • Create podcast and episode lists
  • & much more

Episode Tags

Do you host or manage this podcast?
Claim and edit this page to your liking.
,

Unlock more with Podchaser Pro

  • Audience Insights
  • Contact Information
  • Demographics
  • Charts
  • Sponsor History
  • and More!
Pro Features