Next.js Discord

Discord Forum

Two Prisma instances connecting to the same database

Unanswered
ncls. posted this in #help-forum
Open in Discord
Avatar
Is it possible to use the same database with two "Prisma instances" having access to it? One will just use a fraction of it and I don't want it to overwrite the database schema of the other one, just want it to work with the database. Is that possible? Do I constantly have to keep both schema files in sync?

3 Replies

Avatar
bump
Avatar
bump
Avatar
you mean something like this? it seems in preview though. https://www.prisma.io/docs/guides/other/multi-schema