Skip to content
Advertisement

Tag: prisma

Generating a global connection in prisma python client

I’m using Prisma python client for my mysql database. I’m wondering if its possible to do a single global connection instead of having to open and close them whenever I make a query? I tried doing the following: However, I get an error: Answer It is recommended that you create one instance of PrismaClient and reuse it across your application

Advertisement