summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnosis.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index e381c54..9fc9f67 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -146,7 +146,9 @@
:group 'gnosis-face)
(cl-defun gnosis-select (value table &optional (restrictions '1=1) (flatten nil))
- "Select VALUE from TABLE, optionally with RESTRICTIONS."
+ "Select VALUE from TABLE, optionally with RESTRICTIONS.
+
+Optional argument FLATTEN, when non-nil, flattens the result."
(let ((output (emacsql gnosis-db `[:select ,value :from ,table :where ,restrictions])))
(if flatten
(apply #'append output)