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

Allow hiding enums #192

Open
kefniark opened this issue Mar 29, 2023 · 3 comments
Open

Allow hiding enums #192

kefniark opened this issue Mar 29, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@kefniark
Copy link

kefniark commented Mar 29, 2023

Description

It would be nice to be able to hide enums with an extra flag in the schema.
In my case I have enums like locale that are used a bit everywhere, and make the diagram generated really messy.
I would like to keep table, the fields and their relations, just ignore the enums.

Could be implemented in multiple ways:

  • an ignoreEnums flag, similar to the tableOnly flag
  • an ignoreTables list, allowing to hide any table or enums manually. Could be useful to also hide some "technical" tables (logs, revisions, ...)

Issue

I found a previous issue about it: #120
But it was closed few months ago and I can't find any commit or documentation related to that.
tableOnly is partially doing it, but it's two different things and in my case tableOnly is not what I'm looking for.

@keonik
Copy link
Owner

keonik commented Mar 29, 2023

66d2d07 commit looks related. Their example shows a status enum that isn't being included when you use the tableOnly mode. It also hides all the table attributes. Or should at least. It should be relatively easy to move that hiding of enums out to another config param.

Would you be interested in making that change? If not you'll need to wait for me to prioritize it.

@keonik keonik added the enhancement New feature or request label Mar 29, 2023
@kefniark
Copy link
Author

I run into another case which may have similarities, having a way to ignore views.
But that's related to more recent prisma features 😄

I will try to take a look asap, but I can't guarantee anything either

@keonik
Copy link
Owner

keonik commented May 3, 2023

@kefniark checkout 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants