Name

.timeout — Set a lock retry timer

Common Usage

.timeout milliseconds

Description

The .timeout command is used to set a retry timer. If a timer value is set and a locked database is encountered, rather than immediately returning a “database locked” error, in most cases SQLite will keep attempting to reacquire the lock until the timer expires.

A value of 0 or less disables the timeout value.