Browse modulesPersistenceFunctions
Function: isPrismaDeadlock()
function isPrismaDeadlock(error: unknown): boolean;Defined in: server/persistence/prisma-errors.ts:105
Postgres 40P01 — deadlock detected. Concurrent lock cycles (e.g. two writers racing an exclusion check) can abort one as the deadlock victim rather than returning the underlying constraint error. No dedicated Prisma code.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
boolean