summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnosis.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 44e3097..0e7e375 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -264,6 +264,10 @@ Optional argument FLATTEN, when non-nil, flattens the result."
(apply #'append output)
output)))
+(defun gnosis-select-id (value table id)
+ "Select VALUE from TABLE for note ID."
+ (gnosis-select value table `(= id ,id) t))
+
(cl-defun gnosis--create-table (table &optional values)
"Create TABLE for VALUES."
(emacsql gnosis-db `[:create-table ,table ,values]))