According to SQLite3 documentation https://sqlite.org/c3ref/open.html it tries opening read-write with a fallback to read-only if writing is rejected by the operating ...