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
The open source Firebase alternative.
Supabase gives developers everything they need to build and scale their business so they can spend more time focusing on their users.
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?
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. Use npx prisma migrate deploy for production and testing (CI/CD pipelines). Docs
Run npx 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.
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.
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.
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 !
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.
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.
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! π
Super valuable guide, thanks
This is great! Easy to setup.