Kaizen
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

ParameterType
errorunknown

Returns

boolean

On this page