-
Notifications
You must be signed in to change notification settings - Fork 67
Support for schemas (Postgres Oracle etc.) #301
Comments
What do you mean exactly @vanthome - if we want to support existing databases that already have a schema? Then yes, we have an "Introspection" step that can be used to create a Prisma schema file from an existing database (currently MySQL, Postgres or SQLite) that then can be used to generate Photon. Or did I misunderstand? |
Here you can find docs on introspection: https://github.com/prisma/prisma2/blob/128be311af1a6e0fc47dd4d54e744a5042c43fb7/docs/introspection.md |
Yes, you misunderstood. I'm not referring to the entirety of tables and other objects. I know the term is ambiguous and that's why I mentioned Postgres and Oracle. Please see here what a schema in Postgres is: |
Sorry I didn't get your question in the first try, seemed to obvious to me as we really do support this for quite some time. Does that answer you question @vanthome? |
@janpio well kind of but I would assume you only support one schema at a time and not switching schemas at runtime, right? |
Yes, we don't support querying across multiple schemas right now. Maybe you can open a new issue for that titled "Support for multiple (Postgres, Orcale) schemas". |
Closing in favour of prisma/prisma#1122 |
Hello, great tool! Do you plan to support DB schemas as they exist in PostgreSQL for example?
BG
The text was updated successfully, but these errors were encountered: