MCPcopy
hub / github.com/prisma/prisma / createItxScopeId

Function createItxScopeId

packages/client/src/runtime/getPrismaClient.ts:291–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289}
290
291function createItxScopeId(): string {
292 return typeof globalThis.crypto?.randomUUID === 'function'
293 ? globalThis.crypto.randomUUID()
294 : `${Date.now()}-${Math.random().toString(16).slice(2)}`
295}
296
297const BatchTxIdCounter = {
298 id: 0,

Callers 1

Calls 3

randomMethod · 0.80
sliceMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected