SQLite Forum

Help to solve database locked
Login
According to my reading of the code, `pragma lock_status` returns the lock status of the database file (bTree) for the specified connection on which the command is executed, not the interplanetary lock status of the database file (bTree).

It would therefore be entirely possible for a particular connection to not have a lock on the database file (bTree) on the connection on which you are asking for the lock status, yet at the same time for SOME OTHER CONNECTION to have a lock which precludes the connection which does not have a lock from acquiring one.