prisma / extension-read-replicas

Prisma Client Extension to add read replica support to your Prisma Client
Apache License 2.0
96 stars 6 forks source link

Add options for replica clients #30

Open yicrotkd opened 7 months ago

yicrotkd commented 7 months ago

This PR resolves #20 .

Changes:

Inheriting the configuration from the primary, as discussed here, seems challenging because the constructor arguments are unavailable from the instance.

If implementing for this inheritance, it seems to make modifications to the Prisma Client core, allowing for the retrieval of constructor arguments from the instance.

Close #20

pciruzzi commented 3 weeks ago

Hey @SevInf ! Is there any chance we can get this merged soon? We would really benefit from having these changes in the library 🙂 thanks!

SevInf commented 2 weeks ago

Hey everyone, sorry it completely slipped from me. I am off now, but I plan to look and move this forward when I come back (first week of July)