The code with only its class kept: sqlstate_class(.UNIQUE_VIOLATION) == .INTEGRITY_CONSTRAINT_VIOLATION.
- code: the full code.
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.