(db): default to sqlite-builtin when available (#2299)

master
Jethro Kuan 3 years ago committed by GitHub
parent 256fe73e7a
commit cdad2ee7f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      org-roam-db.el

@ -36,7 +36,12 @@
(defvar org-outline-path-cache)
;;; Options
(defcustom org-roam-database-connector 'sqlite
(defcustom org-roam-database-connector (if (and (progn
(require 'emacsql-sqlite-builtin nil t)
(functionp 'emacsql-sqlite-builtin))
(functionp 'sqlite-open))
'sqlite-builtin
'sqlite)
"The database connector used by Org-roam.
This must be set before `org-roam' is loaded. To use an alternative
connector you must install the respective package explicitly.

Loading…
Cancel
Save