public function dm_db_set_query_only(db, enabled) result(rc)
Sets query-only pragma.
The SQLite query_only pragma prevents data changes on database
files when enabled. When this pragma is enabled, any attempt to
CREATE, DELETE, DROP, INSERT, or UPDATE will result in an
E_READ_ONLY error.
However, the database is not truly read-only. You can still run a
checkpoint or a COMMIT and the return value of the
sqlite3_db_readonly() routine is not affected.
The function returns the following error codes:
E_DB_PREPARE if statement preparation failed.
E_DB_STEP if step execution failed or no write permission.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.