branch: elpa/emacsql
commit 3eb06cdd73a51f7cba83b18b95236d134de1f653
Author: Christopher Wellons <well...@nullprogram.com>
Commit: Christopher Wellons <well...@nullprogram.com>

    Add GROUP BY expander.
---
 emacsql.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/emacsql.el b/emacsql.el
index 01ee0ddd49..91be4b9b3a 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -508,6 +508,10 @@ definitions for return from a `emacsql-defexpander'."
   (emacsql-with-vars "WHERE "
     (combine (emacsql--expr expr))))
 
+(emacsql-defexpander :group-by (expr)
+  (emacsql-with-vars "GROUP BY "
+    (combine (emacsql--expr expr))))
+
 (emacsql-defexpander :create-table (table schema)
   (emacsql-with-vars "CREATE "
     (let (temporary if-not-exists name)

Reply via email to