Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code100x/daily-code
/ prismaClientSingleton
Function
prismaClientSingleton
packages/db/src/index.ts:3–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
import
{ PrismaClient } from
"@prisma/client"
;
2
3
const
prismaClientSingleton = () => {
4
return
new
PrismaClient();
5
};
6
type
PrismaClientSingleton = ReturnType<typeof prismaClientSingleton>;
7
8
// eslint-disable-next-line
Callers
1
index.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected