I've started using prisma with SQL Server. Very ha...
# random
j
I've started using prisma with SQL Server. Very happy that it is now supported. Unfortunately when I run
npx prisma introspect
, the resulting schema file only includes objects in the SQL Server
dbo
schema. Is there a way to include additional schemas?
j
Not yet, but it is high on our todo list to support multiple schemas.
The same limitation applies to PostgreSQL btw.
Here is the issue about it, maybe follow that and/or leave some information about your use case: https://github.com/prisma/prisma/issues/1122
j
Awesome. Thank you. I'm working around this at the moment by prefixing my object names with what will be the schema. So
rawEmployees and stageEmployees
instead of
raw.Employees and stage.Employees
. It's not ideal, but works, and will be easy to update once Prisma supports the schemas.
Is this the right channel for this kind of question?
j
You can use #prisma2
👍 1
I think SQL Server has some feature where you can pull in multiple schemas into one...
So you can keep the stuff in the schema you have it, but have an additional one where it all gets mirrored into.
Something with
i...
but I can not remember the name :(
j
That would be helpful. I'll see if I can find it.
j
The word that start with
i
is
synonyms
. Well 💩
😀 1
That might help.
j
Thank you. I'll check it out.
👍 1