MCPcopy Index your code
hub / github.com/formbricks/formbricks / prismaClientSingleton

Function prismaClientSingleton

packages/database/src/client.ts:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { createPrismaPgAdapter } from "./prisma-adapter";
3
4const prismaClientSingleton = (): PrismaClient => {
5 const { adapter } = createPrismaPgAdapter();
6
7 return new PrismaClient({
8 adapter,
9 ...(process.env.DEBUG === "1" && {
10 log: ["query", "info"],
11 }),
12 });
13};
14
15type PrismaClientSingleton = ReturnType<typeof prismaClientSingleton>;
16

Callers 1

client.tsFile · 0.85

Calls 1

createPrismaPgAdapterFunction · 0.90

Tested by

no test coverage detected