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
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.
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.
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...You can also find some details on using Row Level Security (RLS) with Prisma here: supabase.com/partners/integrations...
Excellent guide !
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?
Excellent guide!