summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-26 03:02:40 +0200
committerThanos Apollo <[email protected]>2023-12-26 03:03:06 +0200
commit00daa6e96c4b38dfae1c278ee584978aa6d23c2c (patch)
treeb12452f9e68eebec6fdc3e3d1a0902aa79605a82 /gnosis.el
parent47ba471009d0471a4125b3c863b71db2ae4de3a0 (diff)
[Fix] emacsql for issue #113
issue: https://github.com/magit/emacsql/issues/113 - Add emacsql as snapshot - Use emacsql-sqlite-open
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index da4848b..3bb4ef8 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -7,7 +7,7 @@
;; URL: https://git.thanosapollo.org/gnosis
;; Version: 0.0.1
-;; Package-Requires: ((emacs "27.2") (compat "29.1.4.2"))
+;; Package-Requires: ((emacs "27.2") (compat "29.1.4.2") (emacsql "20230228"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@
(make-directory gnosis-dir)
(make-directory gnosis-images-dir))
-(defvar gnosis-db (emacsql-sqlite (concat gnosis-dir "/" "gnosis.db"))
+(defvar gnosis-db (emacsql-sqlite-open (concat gnosis-dir "/" "gnosis.db"))
"Gnosis database.")
(cl-defun gnosis--select (value table &optional (restrictions '1=1))