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

Feature Request: Multi-Schema Support #42

Open
albertilagan opened this issue Dec 29, 2022 · 3 comments
Open

Feature Request: Multi-Schema Support #42

albertilagan opened this issue Dec 29, 2022 · 3 comments

Comments

@albertilagan
Copy link

Seems like Prisma's multiSchema previewFeature does not work with the latest version (0.10.0).

Are we waiting for it to be on GA? or is this something we can implement already?

@marcjulian
Copy link
Member

marcjulian commented Jan 2, 2023

Hi @albertilagan, we don't need to wait for multiSchema to hit GA. If you like you could create a PR to support this feature.

Things to consider:

  1. Does Prisma surface multiSchema information in the DMMF? (clone this project and comment in https://github.com/notiz-dev/prisma-dbml-generator/blob/main/src/cli/dbml-generator.ts#L26 to receive a DMMF file and run npm run dev)
  2. How does schema look like in the DBML?

@albertilagan
Copy link
Author

Hi @albertilagan, we don't need to wait for multiSchema to hit GA. If you like you could create a PR to support this feature.

Things to consider:

  1. Does Prisma surface multiSchema information in the DMMF? (clone this project and comment in https://github.com/notiz-dev/prisma-dbml-generator/blob/main/src/cli/dbml-generator.ts#L26 to receive a DMMF file and run npm run dev)
  2. How does schema look like in the DBML?

Hi, @marcjulian just saw this, and upon checking looks like the schema value is not yet exposed on DMMF.
Will wait for Prisma, or maybe I'll create a PR there as well when I have the time :)

@albertilagan
Copy link
Author

Hi @albertilagan, we don't need to wait for multiSchema to hit GA. If you like you could create a PR to support this feature.

Things to consider:

  1. Does Prisma surface multiSchema information in the DMMF? (clone this project and comment in https://github.com/notiz-dev/prisma-dbml-generator/blob/main/src/cli/dbml-generator.ts#L26 to receive a DMMF file and run npm run dev)
  2. How does schema look like in the DBML?

Can't wait for Prisma so I just bruteforce my way into it. multiSchema Support

Definitely not the best way to implement this but this works for us for now.

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

No branches or pull requests

2 participants