mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🔥 Remove commented code.
This commit is contained in:
parent
d1f7bc6198
commit
4afd9e75da
1 changed files with 1 additions and 8 deletions
|
@ -184,17 +184,10 @@
|
|||
(sql/insert table params opts)
|
||||
(assoc opts :return-keys true))))
|
||||
|
||||
;; (defn- select-values [map ks]
|
||||
;; (reduce #(conj %1 (map %2)) [] ks))
|
||||
|
||||
(defn insert-multi!
|
||||
[ds table param-list]
|
||||
(doseq [params param-list]
|
||||
(insert! ds table params))
|
||||
;; FIXME: Won't work
|
||||
#_(let [keys (->> param-list first keys (into []))
|
||||
params (->> param-list (mapv #(->> keys (select-values %) (into []))) )]
|
||||
(jdbc-sql/insert-multi! ds table keys params default-options)))
|
||||
(insert! ds table params)))
|
||||
|
||||
(defn update!
|
||||
([ds table params where] (update! ds table params where nil))
|
||||
|
|
Loading…
Add table
Reference in a new issue