Hello everyone. Question for you, do we have the f...
# orm-help
d
Hello everyone. Question for you, do we have the following features (I assume not due to lack of documentation, but I thought I would ask): 1. The ability to import/use multiple schema files. For example, I have a framework that integrates Prisma and it's perfect and works well, but my framework is expandable, and I would like to work on let's say a Blog plugin for my framework. I would of course want to define the schema required for the blog and when it gets setup in my database, that the prisma CLI could look for the additional schema and when the user runs
yarn prisma generate
that would take into account the other
*.schema
file(s) as well. 2. The ability to use multiple databases, I did find a github issue here, what is the actual status of this? As I see it was made almost 2 years ago: https://github.com/prisma/prisma/issues/1122
n
Hey Danny 👋 These are great questions! 1. We are actively working on providing native support for multiple schemas. Please refer to this GitHub Issue. You can use the community built Aurora tool for splitting your schema files. 2. For using Multiple Databases you could achieve this by having multiple PrismaClient Instances, one for each database. Each database would have a separate schema file.
d
Ahh I see, okay. I shall have a look, thanks.
@Nurul is it expected that VSCode throws tons of errors for these files?
Relating to use Aurora with Prisma that is.
n
Can you open a GitHub Issue in Aurora Repo: https://github.com/sabinadams/aurora/issues? @Sabin Adams should be able to look into this.