1

Running Doom Emacs 2.0.9 on Emacs 27.1.

I have in installation of org-roam with the following set-up:

(setq org-roam-directory "~/Documents/organize/org-mode")

FWIW, I use the same directory as my org directory:

(setq org-directory "~/Documents/organize/org-mode")

I have created a few notes with several backlinks and everything works as expected.

One thing is bothering me, though. There is no trace of the database needed to run roam.

Where should the roam database file be? In what name?

2
  • org-roam-db-location gives necessary db path. Commented Jan 8, 2021 at 10:09
  • 1
    @itirazimvar Thanks. That solved it. Please post this as an answer so I can accept it.
    – deshmukh
    Commented Jan 9, 2021 at 8:32

1 Answer 1

5

The variable which you are looking is org-roam-db-location

It's defined in org-roam-db.el

The full path to file where the Org-roam database is stored.

If this is non-nil, the Org-roam sqlite database is saved here.

It is the user's responsibility to set this correctly, especially
when used with multiple Org-roam instances.

References
References in org-roam-db.el:
(defcustom org-roam-db-location ...)   1 reference
(defun org-roam-db ...)                3 references
(defun org-roam-db-mark-dirty ...)     1 reference
(defun org-roam-db--initialized-p ...) 1 reference
(defun org-roam-db-clear ...)          1 reference
(defun org-roam-db-build-cache ...)    1 reference

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.