In this tutorial, we'll explore how to set up Prisma + Postgres. We'll use real-world examples involving books and authors.
Prerequisites...
For further actions, you may consider blocking this person and/or reporting abuse
If anyone needs help regarding Prisma / Postgres you can get support in our discord
Hopefully this might be helpful - there's a set of handy instructions on your projects' home page if you click the "Connect" button and select the "ORMs" tab
Yes! Thanks for sharing @joshenlim
Prisma Postgres is an incredible pairing for a backend. Both tools are used and loved by the Supabase Community.
AMAZING!!
The memes in there are crazy lol
Also note for anyone else who's wondering the official Prisma documentation related to this is here: prisma.io/docs/orm/overview/databa...
The important step adding
Very nice.
I was trying initially without the direct_url but apparently it's required if you need to do migrations.
You can also find some details on using Row Level Security (RLS) with Prisma here: supabase.com/partners/integrations...
This is an absolute game changer!
The discord is very welcoming to new comers!
Prisma + Supabse is an awesome combo.
💚 Prisma + Supabase
Easy to setup 👌, thanks!
Prisma and Supabase are really a great fit. Great combo!
yes yes yes
Nice guide. I would add that if you want to use prisma to generate migrations. For those to be usable with
supabase-js
andpostgrest
I recommend to leverage thenative database functions
in your "id" definitions like mentioned here: github.com/supabase/cli/issues/277...Thanks, will check it out
This is so sick! 💯
Super seamless, nice 😃🚀
I know a lot of apps built with this combination!
Awesome! 🤩
awesome
This is great!!
Prisma + Supabase is the perfect combo.
This is awesome!
Supabase and Prisma makes development so much easier. Love this combo
Nice share!
Supabase and Prisma is the perfect match for us, it makes life so easy to build things quickly.
Brilliant, thank you!
I was just trying out setting up Prisma with Postgres and found this guide. Thanks for writing this.
Thank you so much, this is what I was looking for. A great guide to setup Prisma with Postgres.
Thank you!
That is awesome!
Always happy to help
This is amazing! 💪💪
Thankyou!
Thank you so much. I wish I had known how easy this was in the past. Grateful for this resource!
thanks for this! If I am using a pooler like Supavisor does that mean I do not use Accelerate or anything, just the Prisma library and Supabase handles the rest?
Bingo! You got it
Excellent guide !
Thanks for the starter tutorial -- it's clear and simple. Things can get tricker if you modify the schema and want to actually push to production:
prisma migrate dev
is only for dev environment. Usenpx prisma migrate deploy
for production and testing (CI/CD pipelines). Docsnpx prisma generate
to generate new client code whenever you modify the schema as well.Also, I noticed that Prisma doesn't really support rolling back schema changes. So to revert changes you need to revert your schema file and generate a "new" migration/client to undo the previous change instead.
Excellent guide!
This is great!
Interesting guide, but honestly, why go through all this setup with Prisma + Postgres when you could use Drizzle ORM? Drizzle is so much cleaner and more TypeScript friendly without all the heavy migration overhead.
What an incredibly powerful stack! Prisma and Postgres powered by Supabase! 🚀
Excited to use Prisma and Supabase together! This makes it so easy to get started and distinguish between which database connection strings to use and why.
Super valuable guide, thanks
This is great! Easy to setup.