summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-30 09:57:07 +0200
committerThanos Apollo <[email protected]>2023-12-30 09:57:07 +0200
commitb5b495e61e41cdc962b4240d8aa8a7089e3e4e64 (patch)
tree745ae98fd23ca97f8209af8a27d1b80a9024fe66 /gnosis.el
parentbbef2d27ea620caeb32e495a9c23aa786afcb1f7 (diff)
Redo gnosis-db: emacsql-sqlite-open fix
Redo with emacsql-sqlite as emacsql-sqlite-open has proven to be buggy
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index da3f7b5..c576cfd 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -53,9 +53,11 @@
(defvar gnosis-images-dir (concat gnosis-dir "/" "images")
"Gnosis images directory.")
+(defvar gnosis-db (emacsql-sqlite (concat gnosis-dir "/" "gnosis.db"))
+ "Gnosis database file.
+
+WARNING: Do not change this value!")
-(defvar gnosis-db (emacsql-sqlite-open (concat gnosis-dir "/" "gnosis.db"))
- "Gnosis database.")
(cl-defun gnosis-select (value table &optional (restrictions '1=1))
"Select VALUE from TABLE, optionally with RESTRICTIONS."