Docstrings
This commit is contained in:
parent
f4137d3fc1
commit
0bb7740f69
1 changed files with 7 additions and 0 deletions
|
|
@ -300,6 +300,7 @@
|
||||||
"Accepts either a table name or a table/alias pair.
|
"Accepts either a table name or a table/alias pair.
|
||||||
|
|
||||||
(-> (update :table) (set {:id 1 :cost 32.1}))"
|
(-> (update :table) (set {:id 1 :cost 32.1}))"
|
||||||
|
{:arglists '([table])}
|
||||||
[& args]
|
[& args]
|
||||||
(generic-1 :update args))
|
(generic-1 :update args))
|
||||||
|
|
||||||
|
|
@ -308,6 +309,7 @@
|
||||||
Accepts a collection of table names to delete from.
|
Accepts a collection of table names to delete from.
|
||||||
|
|
||||||
(-> (delete [:films :directors]) (where [:= :id 1]))"
|
(-> (delete [:films :directors]) (where [:= :id 1]))"
|
||||||
|
{:arglists '([table-coll])}
|
||||||
[& args]
|
[& args]
|
||||||
(generic-1 :delete args))
|
(generic-1 :delete args))
|
||||||
|
|
||||||
|
|
@ -316,6 +318,7 @@
|
||||||
Accepts a single table name to delete from.
|
Accepts a single table name to delete from.
|
||||||
|
|
||||||
(-> (delete-from :films) (where [:= :id 1]))"
|
(-> (delete-from :films) (where [:= :id 1]))"
|
||||||
|
{:arglists '([table])}
|
||||||
[& args]
|
[& args]
|
||||||
(generic :delete-from args))
|
(generic :delete-from args))
|
||||||
|
|
||||||
|
|
@ -480,10 +483,14 @@
|
||||||
(generic-1 :on-conflict args))
|
(generic-1 :on-conflict args))
|
||||||
|
|
||||||
(defn on-constraint
|
(defn on-constraint
|
||||||
|
"Accepts a single constraint name."
|
||||||
|
{:arglists '([constraint])}
|
||||||
[& args]
|
[& args]
|
||||||
(generic :on-constraint args))
|
(generic :on-constraint args))
|
||||||
|
|
||||||
(defn do-nothing
|
(defn do-nothing
|
||||||
|
"Called with no arguments, produces DO NOTHING"
|
||||||
|
{:arglists '([])}
|
||||||
[& args]
|
[& args]
|
||||||
(generic :do-nothing args))
|
(generic :do-nothing args))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue