hi everybody, Sometimes I think it is useful to open a DB in readonly mode eg. to avoid modifying by mistake This is a patch to ob-sqlite.el to accomplish that It adds support for opening a sqlite database in readonly only. It does it by adding a babel parameter readonly. If present, the database will be opened in readonly mode. Example: #+begin_src sqlite :readonly :db /tmp/rip.db insert into a values (1,2); select * from a; #+end_src This will result in the following error: Runtime error near line 2: attempt to write a readonly database (8) [ Babel evaluation exited with code 1 ]