summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-26 10:37:09 +0200
committerThanos Apollo <[email protected]>2024-01-26 10:37:09 +0200
commitf599f5db6839bf7b6b888fb9db2b8cd1f9544a0d (patch)
treebd448e3cd377085cea2da6a128c058b89e9e255f /gnosis.el
parentede4923305e31f9da4933653b89e37b311eeed7b (diff)
gnosis-select: Update docstring
Diffstat (limited to 'gnosis.el')
-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)