summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 0e7e375..09d86d2 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -291,6 +291,10 @@ Example:
"Return caar of VALUE from TABLE, optionally with where RESTRICTIONS."
(caar (gnosis-select value table restrictions)))
+(defun gnosis-get-type (id)
+ "Return note for note ID."
+ (car (gnosis-select-id 'type 'notes id)))
+
(defun gnosis--delete (table value)
"From TABLE use where to delete VALUE."
(emacsql gnosis-db `[:delete :from ,table :where ,value]))