isRetryable property
bool
get
isRetryable
Returns true if the error is transient and may be retried.
Connection errors with SQLSTATE starting with '08' are typically retryable, as they often indicate temporary network issues or timeouts.
Implementation
bool get isRetryable {
if (sqlState == null) return false;
// Connection errors (08xxx) are often retryable
return sqlState!.startsWith('08');
}