RobertCraigie / prisma-client-py

Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
https://prisma-client-py.readthedocs.io
Apache License 2.0
1.85k stars 81 forks source link

Client extension support #942

Open WesleyYue opened 5 months ago

WesleyYue commented 5 months ago

Problem

There are a few Prisma client extensions that would be useful to us, namely: https://github.com/prisma/extension-read-replicas and https://github.com/dthyresson/prisma-extension-supabase-rls

Suggested solution

Be able to use read replicas and RLS with Prisma python.

Alternatives

Use a different ORM or go to js.

Additional context

Can you provide some context as to what a possible implementation might look like at a high level to support client extensions in Prisma python? If it's not too hairy, I wouldn't mind hacking something together.

francis2tm commented 4 months ago

Hey @WesleyYue, Have you found a solution for this in the meantime?

WesleyYue commented 4 months ago

nope :(