Created providers

This commit is contained in:
2021-09-14 09:56:11 -07:00
parent 690ec904f4
commit 4ac10ba8b6
4 changed files with 197 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { PrismaClient } from '@prisma/client';
class Prisma {
public client: PrismaClient;
constructor () {
this.client = new PrismaClient;
}
public init(): void {
this.client = new PrismaClient();
}
public end(): void {
this.client.$disconnect();
}
}
export default new Prisma();