Skip to main content

UNIQUE_VIOLATION_SQLSTATE

Constant UNIQUE_VIOLATION_SQLSTATE 

Source
pub const UNIQUE_VIOLATION_SQLSTATE: &str = "23505";
Expand description

SQLSTATE for Postgres unique-violation errors.

Adapters should map this to crate::AwaError::UniqueConflict when their driver exposes database error codes.