Correct database query function (#463)

`org-roam-sql` is obsolete now. Also changed the syntax that works for the new `org-roam-db-query` function.
This commit is contained in:
Sayan 2020-04-15 06:09:58 +00:00 committed by GitHub
parent a71176ee40
commit f79ee9e850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ in-built publishing or ox-hugo -- use the following snippet to add a
(concat acc (format "- [[file:%s][%s]]\n"
(file-relative-name (car it) org-roam-directory)
(org-roam--get-title-or-slug (car it))))
"" (org-roam-sql [:select [from] :from links :where (= to $s1) :and (= from $s2)] file "roam"))
"" (org-roam-db-query [:select [from] :from links :where (= to $s1)] file))
""))
(defun my/org-export-preprocessor (backend)