Function: org-roam-db--close
org-roam-db--close is a natively compiled function defined in
org-roam-db.el.
Signature
(org-roam-db--close &optional DB)
Documentation
Closes the database connection for database DB.
If DB is nil, closes the database connection for the database in
the current org-roam-directory.
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--close (&optional db)
"Closes the database connection for database DB.
If DB is nil, closes the database connection for the database in
the current `org-roam-directory'."
(unless db
(setq db (org-roam-db--get-connection)))
(when (and db (emacsql-live-p db))
(emacsql-close db)))