Skip to main content

is_retryable_sea_orm_error

Function is_retryable_sea_orm_error 

Source
pub fn is_retryable_sea_orm_error(error: &DbErr) -> bool
Expand description

Returns whether a SeaORM error represents a transient database failure.

Connection acquisition and connection failures are always retryable: they happen before the statement ran, so retrying cannot duplicate work. Query and execution failures are retried only when crate::database_error_kind proves a transient locking conflict (deadlock, serialization failure, lock timeout) from driver-native error codes. Error message text is never inspected.