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
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.
Prisma Postgres is an incredible pairing for a backend. Both tools are used and loved by the Supabase Community.
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 devis only for dev environment. Usenpx prisma migrate deployfor production and testing (CI/CD pipelines). Docsnpx prisma generateto 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!
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.
What an incredibly powerful stack! Prisma and Postgres powered by Supabase! π
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.
Super valuable guide, thanks
This is great! Easy to setup.