Skip to content

routier-collection


routier-collection / plugins/postgresql/src / RECOVERABLE_SQLSTATE

Variable: RECOVERABLE_SQLSTATE ​

const RECOVERABLE_SQLSTATE: object

Defined in: plugins/postgres-core/dist/plugin.d.ts:11

The SQLSTATE codes this plugin recovers from, rather than message text, which is localised.

Exported because a driver whose transport drops the code has to put it back — see @routier/pglite-plugin, where a worker rebuilds the error from its message alone.

Type Declaration ​

undefinedTable ​

readonly undefinedTable: "42P01"

duplicateTable ​

readonly duplicateTable: "42P07"

uniqueViolation ​

readonly uniqueViolation: "23505"

Released under the MIT License.