loading relations

This commit is contained in:
Bryce Covert
2018-04-10 09:52:35 -07:00
parent 03f3df8643
commit 4a0275f024
5 changed files with 52 additions and 27 deletions

View File

@@ -5,15 +5,9 @@
[clojure.edn :as edn]
[clojure.java.jdbc :as j]))
(defn merge-data [{:keys [data] :as x}]
(merge x (edn/read-string data)))
(defn parse [x]
(-> x
(db->clj)
merge-data
(assign-namespace "auto-ap.entities.vendors")
))
(db->clj x "auto-ap.entities.vendors"))
(defn unparse [x]
(-> x