Postgres module

sqlstate_class

procedure · 1 overloadsince 0.27.0Source

The code with only its class kept: sqlstate_class(.UNIQUE_VIOLATION) == .INTEGRITY_CONSTRAINT_VIOLATION.

sqlstate_class :: (code: Sqlstate) -> Sqlstate

The code with only its class kept: sqlstate_class(.UNIQUE_VIOLATION) == .INTEGRITY_CONSTRAINT_VIOLATION.

Parameters

code: Sqlstate
the full code.

Returns

See also