Exclusively lock database

This commit is contained in:
Vincent Riquer 2025-01-21 00:31:06 +01:00
parent 3f26d983c8
commit 4e59449d40

View File

@ -18,5 +18,8 @@ openDatabase() {
echo 'PRAGMA foreign_keys = ON;' >&3 echo 'PRAGMA foreign_keys = ON;' >&3
echo 'PRAGMA recursive_triggers = ON;' >&3 echo 'PRAGMA recursive_triggers = ON;' >&3
echo 'PRAGMA temp_store = 2;' >&3 echo 'PRAGMA temp_store = 2;' >&3
echo 'PRAGMA locking_mode = EXCLUSIVE;' >&3
read -u4
unset REPLY
checkDatabaseVersion checkDatabaseVersion
} }