Is there a way to pass a custom `pg` instance to p...
# orm-help
m
Is there a way to pass a custom
pg
instance to prisma?
More specifically I would like to use this: https://github.com/oguimbal/pg-mem
But it exposes a custom
pg
driver
need to plug that in somehow
r
Prisma doesn't use
pg
in any way so I don't think that can be done.
m
I see, any updates on the mocking prisma front?
Would love some sort of type-safe factory system
r
Not at the moment unfortunately, we will be currently focusing on the features in the Roadmap.
o
@Ryan Out of curiosity, which lib is used to issue generated request to postgres ? (a quick search would have hinted me at pg as well) pg-mem is not limited to
pg
lib ... it could replace any library that issues valid postgresql statements... so if you can point out where those statements are sent to the db, that would be of great help to see if I can do something 🙂 Otherwise, I'll dig myself, no worries.
r
I am not sure but that most probably happens at the rust end of things via the Query engine somewhere here.
o
Thanks, I'll look into it 🙂
👍 1