PgErrorClassification

Type

Signature

type PgErrorClassification = {
  kind: "undefined_table";
  tableName: string;
};

postgres/src/state-provider/state-provider.pg.ts:12

The classification of a driver error the PostgreSQL state adapter acts on, as returned by PgStateProvider.classifyError.

  • undefined_table — SQLSTATE 42P01, with the missing relation's name as the server reports it (relation "<table>" does not exist). Without the name the adapter cannot tell its fence apart from another missing table, so a provider that cannot read it returns undefined.

Properties

  • kind
    "undefined_table"
  • tableName
    string
esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open