mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-02 19:26:50 -05:00
14 lines
308 B
TypeScript
14 lines
308 B
TypeScript
// @ts-nocheck
|
|
import { PrismaClient } from "@prisma/client";
|
|
|
|
let prisma: PrismaClient;
|
|
|
|
if (!global.prisma) {
|
|
// if you want to show logs for the DB queries use { log: ["query", "info", "warn"] } as parameter below
|
|
global.prisma = new PrismaClient();
|
|
}
|
|
|
|
prisma = global.prisma;
|
|
|
|
export default prisma;
|