MCPcopy
hub / github.com/prisma/prisma / getCallSite

Function getCallSite

packages/client/src/runtime/utils/CallSite.ts:75–85  ·  view source on GitHub ↗
(errorFormat: ErrorFormat)

Source from the content-addressed store, hash-verified

73}
74
75export function getCallSite(errorFormat: ErrorFormat): CallSite {
76 if (errorFormat === 'minimal' || TARGET_BUILD_TYPE === 'wasm-compiler-edge') {
77 if (typeof $EnabledCallSite === 'function' && errorFormat !== 'minimal') {
78 return new $EnabledCallSite()
79 } else {
80 return new DisabledCallSite()
81 }
82 } else {
83 return new EnabledCallSite()
84 }
85}

Callers 5

$executeRawInternalMethod · 0.90
$runCommandRawMethod · 0.90
$queryRawInternalMethod · 0.90
applyFluentFunction · 0.90
actionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected