47ng/prisma-field-encryption

Support custom path of PrismaClient

pwdevbcf opened this issue · 1 comments

Is there a possibility to add support for custom path of prisma client?

I am using prisma client like that: import { PrismaClient } from './prisma/dir/generated/generalClient';

because of multiple connections.
Is there any possibility to add new configuration property like:

prisma.$use(fieldEncryptionMiddleware(
prismaClient: mainPrismaClient
))

because @prisma/client is not that much flexible

Duplicate of #18, let's move the discussion there.