UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

23 lines 820 B
import type { ClientErrorKind, ClientErrorPostAction } from "../../abstract/ClientError"; /** * Some errors affect the logic of choosing another Client when a query retry is * requested (controlled via ClientError). Mostly, those are the situation when * a PG node goes down. * * Notice that, if a master goes down, we always need to find another master * (and retry hard hoping is a switchover, and it will appear on another node). */ export declare const CLIENT_ERROR_PREDICATES: Array<(error: { code: string; message: string; }) => false | { abbreviation: string; postAction: { ifMaster: ClientErrorPostAction; ifReplica: ClientErrorPostAction; reportConnectionIssue: boolean; }; kind: ClientErrorKind; comment: string; }>; //# sourceMappingURL=misc.d.ts.map