Skip to main content

Function: isSqliteLockedError()

isSqliteLockedError(error: unknown): boolean

Defined in: shared/utils/sqliteErrors.ts:12

Returns true when an error represents an SQLite busy/locked condition.

Parametersโ€‹

errorโ€‹

unknown

Returnsโ€‹

boolean

Remarksโ€‹

SQLite lock errors can surface as explicit code values (e.g. SQLITE_BUSY) or as message strings (e.g. "database is locked"). This helper centralizes the heuristics so services can make consistent retry / fallback decisions.