MCPcopy Index your code
hub / github.com/simstudioai/sim / isTransientConnectError

Function isTransientConnectError

packages/db/scripts/migrate.ts:99–103  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

97])
98
99function isTransientConnectError(error: unknown): boolean {
100 const code = getPostgresErrorCode(error)
101 if (!code) return false
102 return TRANSIENT_CONNECT_CODES.has(code) || code.startsWith('08')
103}
104
105/** Backend pid of the lock-holding session; a change means the lock was lost. */
106let lockSessionPid = 0

Callers 1

connectWithRetryFunction · 0.85

Calls 1

getPostgresErrorCodeFunction · 0.90

Tested by

no test coverage detected