Perform the following operations:
PRAGMA locking_mode = EXCLUSIVE; BEGIN EXCLUSIVE;
This will lock the entire database until you complete:
COMMIT;
For simplicity, you can do this with the sqlite3 command line sqlite3 .
See the documentation for more information.
source share