I’d like to open the chromium site data (in ~/.config/chromium/Default) with python-sqlite3 but it gets locked whenever chromium is running, which is understandable since transactions may be made. Is there a way to open it in read-only mode, ensuring that I can’t corrupt the integrity of the db while chromium is using it?
I’d like to open the chromium site data (in ~/.config/chromium/Default) with python-sqlite3 but it
Share
I believe it depends on the lock set by the transaction.
https://www.sqlite.org/lockingv3.html#shared_lock
https://www.sqlite.org/lang_transaction.html
SQLite exclusive transactions lock both read and write where immediate and deferred transactions will still allow readers.
So it really depends on the transactions used by Chromium.