Skip to main content

is_sqlite_busy

Function is_sqlite_busy 

Source
pub fn is_sqlite_busy(err: &AppError) -> bool
Expand description

Returns true when err wraps an SQLITE_BUSY (or SQLITE_LOCKED) condition reported by rusqlite.

Both SQLITE_BUSY (ErrorCode::DatabaseBusy) and SQLITE_LOCKED (ErrorCode::DatabaseLocked) indicate that the write cannot proceed immediately due to WAL concurrency. We treat both as transient and eligible for retry.