* 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)
| 167 | * See: https://github.com/prisma/prisma/issues/29111 |
| 168 | */ |
| 169 | function 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 | |
| 173 | function getMappings(mappings: DMMF.Mappings, datamodel: DMMF.Datamodel): DMMF.Mappings { |
| 174 | const modelOperations = mappings.modelOperations |