Function: org-roam-db-query!

org-roam-db-query! is a natively compiled function defined in org-roam-db.el.

Signature

(org-roam-db-query! HANDLER SQL &rest ARGS)

Documentation

Run SQL query on Org-roam database with ARGS.

SQL can be either the emacsql vector representation, or a string. The query is expected to be able to fail, in this situation, run HANDLER.

Source Code

;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam-db.el
(defun org-roam-db-query! (handler sql &rest args)
  "Run SQL query on Org-roam database with ARGS.
SQL can be either the emacsql vector representation, or a string.
The query is expected to be able to fail, in this situation, run HANDLER."
  (condition-case err
      (org-roam-db-query sql args)
    (emacsql-constraint
     (funcall handler err))))