Added column-name
This commit is contained in:
parent
50d50aab94
commit
1860790027
1 changed files with 8 additions and 0 deletions
|
|
@ -500,6 +500,14 @@
|
||||||
(user-distinct-properties entity))))
|
(user-distinct-properties entity))))
|
||||||
|
|
||||||
|
|
||||||
|
(defn column-name
|
||||||
|
"Return, as a string, the name for the column which represents this `property`."
|
||||||
|
[property]
|
||||||
|
(safe-name
|
||||||
|
(or (-> property :attrs :column) (-> property :attrs :name))
|
||||||
|
:sql))
|
||||||
|
|
||||||
|
|
||||||
(defmacro insertable-properties
|
(defmacro insertable-properties
|
||||||
"Return all the properties of this `entity` (including key properties) into
|
"Return all the properties of this `entity` (including key properties) into
|
||||||
which user-supplied data can be inserted"
|
which user-supplied data can be inserted"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue