Subject How to mark a database read-only?
Author Shawn Rutledge
I found this command

gfix -user SYSDBA -password masterkey dbfile -mode read_only

which makes it possible to do queries on a database file which is
read-only (located on a read-only filesystem for example). Is there a
way to accomplish that using a SQL command instead?

Alternatively is there a way to open a database in read-only mode
using QSqlDatabase, even when it has not been marked read_only? Maybe
using setConnectOptions() or some such?