MCPcopy
hub / github.com/prisma/prisma / isV8StringLimitError

Function isV8StringLimitError

packages/get-dmmf/src/index.ts:169–171  ·  view source on GitHub ↗

* Check if an error is the V8 string length limit. * V8 has a hard-coded limit of 0x1fffffe8 characters (~536MB) for strings. * No Node.js flags can change this. * See: https://github.com/prisma/prisma/issues/29111

(error: unknown)

Source from the content-addressed store, hash-verified

167 * See: https://github.com/prisma/prisma/issues/29111
168 */
169function isV8StringLimitError(error: unknown): error is Error & { code: 'ERR_STRING_TOO_LONG' } {
170 return error instanceof Error && 'code' in error && error.code === 'ERR_STRING_TOO_LONG'
171}
172
173function getMappings(mappings: DMMF.Mappings, datamodel: DMMF.Datamodel): DMMF.Mappings {
174 const modelOperations = mappings.modelOperations

Callers 1

getDMMFFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected