un-select
This commit is contained in:
parent
7a82cfabd3
commit
a9fcd837ca
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@
|
|||
(defn merge-select [sql-map & fields]
|
||||
(update-in sql-map [:select] concat fields))
|
||||
|
||||
(defn un-select [sql-map & fields]
|
||||
(update-in sql-map [:select] #(remove (set fields) %)))
|
||||
|
||||
(defn from [& tables]
|
||||
(let [[m tables] (if (map? (first tables))
|
||||
[(first tables) (rest tables)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue