From 0bb7740f697b58da9e394c5f7ad2ec5abed04bf8 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sun, 14 Feb 2021 20:45:14 -0800 Subject: [PATCH] Docstrings --- src/honey/sql/helpers.cljc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/honey/sql/helpers.cljc b/src/honey/sql/helpers.cljc index ae719fd..bb30f37 100644 --- a/src/honey/sql/helpers.cljc +++ b/src/honey/sql/helpers.cljc @@ -300,6 +300,7 @@ "Accepts either a table name or a table/alias pair. (-> (update :table) (set {:id 1 :cost 32.1}))" + {:arglists '([table])} [& args] (generic-1 :update args)) @@ -308,6 +309,7 @@ Accepts a collection of table names to delete from. (-> (delete [:films :directors]) (where [:= :id 1]))" + {:arglists '([table-coll])} [& args] (generic-1 :delete args)) @@ -316,6 +318,7 @@ Accepts a single table name to delete from. (-> (delete-from :films) (where [:= :id 1]))" + {:arglists '([table])} [& args] (generic :delete-from args)) @@ -480,10 +483,14 @@ (generic-1 :on-conflict args)) (defn on-constraint + "Accepts a single constraint name." + {:arglists '([constraint])} [& args] (generic :on-constraint args)) (defn do-nothing + "Called with no arguments, produces DO NOTHING" + {:arglists '([])} [& args] (generic :do-nothing args))