-
I have an Electron app where a SQLite database can be switched by the user. The issue I'm running into is that for Prisma to recognize this change I need to kill the process of the app that instantiated the I tried running Is there another way I can "reset" the PrismaClient to connect to the new DB without having to restart the entire app? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can try instantiating a new instance by passing the datasource url like so: const prisma = new PrismaClient({
datasources:{
db:{
url:"<your url>"
}
}
})
|
Beta Was this translation helpful? Give feedback.
-
Just created an issue with the feature request: #15746 |
Beta Was this translation helpful? Give feedback.
Just created an issue with the feature request: #15746