From b5b495e61e41cdc962b4240d8aa8a7089e3e4e64 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 30 Dec 2023 09:57:07 +0200 Subject: Redo gnosis-db: emacsql-sqlite-open fix Redo with emacsql-sqlite as emacsql-sqlite-open has proven to be buggy --- gnosis.el | 6 ++++-- 1 file 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." -- cgit v1.2.3