0
Fork 0
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:
Andrey Antukh 2021-02-01 09:45:14 +01:00 committed by Alonso Torres
parent d1f7bc6198
commit 4afd9e75da

View file

@ -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))