Is there a way to change the connection URL betwee...
# prisma-client
c
Is there a way to change the connection URL between connections? I’m trying to set up database test isolation.
šŸ‘€ 1
Ok so I was able to get this to work, but have to call an internal method (
_runDisconnect
), which is of course not fun but seems necessary for this to work. Is there any alternative?
n
Hey Casey šŸ‘‹ Does $disconnect not work for you?
c
It did not--when I reconnected after changing
process.env.DATABASE_URL
the connection was to the original database.
n
Just to confirm, did you regenerate your prisma client after changing env variable?
v
@Casey Chow did you have a chance to see Nurul's last message? Let us know if you still need help!