Hi everyone! Does anyone have experience with usin...
# orm-help
m
Hi everyone! Does anyone have experience with using multiple datasources within Prisma? We are using two separate databases with two different schemas, but are struggling to get it to work.
r
@Max Torre Schau 👋 What’s the issue you’re facing?
m
I have two Postgres-databases I want to connect to. I need to read from one database, and insert some of the data from database A to database B. But I am struggling to find a good way to do this
r
Have two separate
PrismaClient
connecting to two separate endpoints. And then you can fetch from one client and insert data using the other.
m
Is it then possible two have two different prisma schemas aswell?
r
Yes, In two separate folders.
m
Okay. I will try this. Thank you!
👍 1