Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose native types mapping to DMMF #6844

Closed
Tracked by #18561
unlight opened this issue Apr 28, 2021 · 1 comment
Closed
Tracked by #18561

Expose native types mapping to DMMF #6844

unlight opened this issue Apr 28, 2021 · 1 comment
Labels
domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. kind/feature A request for a new feature. topic: dmmf topic: native database types

Comments

@unlight
Copy link

unlight commented Apr 28, 2021

Problem

We have model with defined native type

model Post {
  id         Int    @id
  title      String @db.VarChar(200)
}

Custom generators may want to use this additional information:

  • varchar
  • 200 (limit)

But this information is missing, checked node_modules/.prisma/client/index.js @ dmmfString

Suggested solution

Expose db field attributes data/info to DMMF.

@janpio janpio added kind/feature A request for a new feature. domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. topic: dmmf labels Apr 28, 2021
@janpio
Copy link
Contributor

janpio commented Mar 29, 2023

I am closing this as we now have an issue at #10252 with active discussion about this. Thanks for creating it.

@janpio janpio closed this as completed Mar 29, 2023
@janpio janpio closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. kind/feature A request for a new feature. topic: dmmf topic: native database types
Projects
None yet
Development

No branches or pull requests

2 participants