SqlxErrorExt

Trait SqlxErrorExt 

Source
pub trait SqlxErrorExt {
    // Required methods
    fn is_unique_violation(&self) -> bool;
    fn is_foreign_key_violation(&self) -> bool;
    fn is_check_violation(&self) -> bool;
    fn code(&self) -> Option<Cow<'_, str>>;
    fn message(&self) -> Option<&str>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl SqlxErrorExt for Error

Implementors§