Accessing the Database
Access to the database is provided singularly by org-roam-db-query, for example:
emacs-lisp
(org-roam-db-query [:select * :from nodes])One can refer to the database schema by looking up org-roam-db--table-schemata. There are multiple helper functions within Org-roam that call org-roam-db-query, these are subject to change. To ensure that extensions/customizations are robust to change, extensions should only use org-roam-db-query, and perhaps replicate the SQL query if necessary.