Skip to content

Commit

Permalink
Change column spec ns
Browse files Browse the repository at this point in the history
  • Loading branch information
r0man committed Dec 5, 2017
1 parent 8cd372c commit ad5216f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/datumbazo/table.clj
Expand Up @@ -47,16 +47,10 @@
@(sql/truncate ~'db [~(util/table-keyword table)]
(sql/cascade (:cascade ~'opts)))))

(defn- column-spec-ns
"Return the name of the `column` spec in `ns`."
[table column]
(str (str *ns*) "." (-> table :name name i/singular)))

(defn- column-spec-name
"Return the name of the `column` spec in `ns`."
[table column]
(keyword (column-spec-ns table column)
(-> column :name name)))
(keyword (str *ns*) (-> column :name name)))

(defmulti column-spec-type
"Return the type of the `column` in the `datumbazo.types` namespace."
Expand Down

0 comments on commit ad5216f

Please sign in to comment.