47ng / 47ng/prisma-field-encryption
No dmmf available from new prisma client generator
- Dominant language
- TypeScript
- Stars
- 306
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
I wanted to try out [Prisma's new client generator](https://www.prisma.io/docs/orm/prisma-schema/overview/generators#prisma-client-early-access) (available starting in v6.6) but best I can tell, there's no `dmmf` export available. As such, I don't think it's possible to extend the client based on the ["Custom Prisma client location" readme instructions](https://github.com/47ng/prisma-field-encryption?tab=readme-ov-file#custom-prisma-client-location). The new generator is... well, new... so I thought I'd mention it here in case you know whether this is a bug or feature request that needs to be made at the Prisma project to export `dmmf`.
Here's a snippet that shows the only text match for "dmmf" in the generated `client.ts`:
```ts
export namespace Prisma {
export type DMMF = typeof runtime.DMMF
```
And here's the Prisma generator config I'm using:
```prisma
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
moduleFormat = "esm"
}
```
Contributor guide
Assessment
This issue has not been assessed yet.