Using a `db_param_list` `clist` we can preset `SQLITE_OPEN_READONLY` on specific database file, this can be reused for more sqlite specific settings since we probably do not want extand `km_dbase` for db engine specific settings.
This is required when another process is writing to the db
Example: ``modparam("db_sqlite","db_set_readonly","/var/mydb.sqlite")`` You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1133
-- Commit Summary --
* db_sqlite: new param to open some database in read-only
-- File Changes --
M src/modules/db_sqlite/db_sqlite.c (79) M src/modules/db_sqlite/dbase.c (14) M src/modules/db_sqlite/doc/db_sqlite.xml (16) M src/modules/db_sqlite/doc/db_sqlite_admin.xml (26)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1133.patch https://github.com/kamailio/kamailio/pull/1133.diff
Merging it. For the future have in mind to declare the variables at the beginning of the function or blocks, to be compatible with old C standard versions and compilers, as kamailio is used on some embedded devices with strict compilers.
Merged #1133.