mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 16:58:28 +00:00
11 lines
230 B
TypeScript
11 lines
230 B
TypeScript
import { PrismaClient } from "@prisma/client";
|
|
import { singleton } from "~/utils/singleton";
|
|
|
|
export const prisma = singleton("prisma", getClient);
|
|
|
|
function getClient() {
|
|
const client = new PrismaClient();
|
|
|
|
return client;
|
|
}
|