pub fn extract_constraint_value(db_err: &dyn DatabaseError) -> Option<String>Expand description
Extracts the conflicting value from a database error’s constraint violation.
Downcasts to sqlx::postgres::PgDatabaseError, reads its detail(),
and parses the conflicting value.