Now actually working!
This commit is contained in:
parent
df9d12e572
commit
0800756288
|
@ -250,7 +250,7 @@
|
||||||
:entity entity-map
|
:entity entity-map
|
||||||
:type :delete-1
|
:type :delete-1
|
||||||
:query
|
:query
|
||||||
(str "-- :name " query-name ":! " signature "\n"
|
(str "-- :name " query-name " " signature "\n"
|
||||||
"-- :doc updates an existing " pretty-name " record\n"
|
"-- :doc updates an existing " pretty-name " record\n"
|
||||||
"DELETE FROM " entity-name "\n"
|
"DELETE FROM " entity-name "\n"
|
||||||
(where-clause entity-map)
|
(where-clause entity-map)
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
"."))
|
"."))
|
||||||
:select-many
|
:select-many
|
||||||
(generate-handler-src
|
(generate-handler-src
|
||||||
handler-name query :post
|
handler-name query :get
|
||||||
(str "select all records from the "
|
(str "select all records from the "
|
||||||
(-> query :entity :attrs :name)
|
(-> query :entity :attrs :name)
|
||||||
" table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: "
|
" table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: "
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
(map
|
(map
|
||||||
#(let [handler (handlers-map %)]
|
#(let [handler (handlers-map %)]
|
||||||
(list
|
(list
|
||||||
(s/upper-case (name (:method handler)))
|
(symbol (s/upper-case (name (:method handler))))
|
||||||
(str "/json/auto/" (:name handler))
|
(str "/json/auto/" (:name handler))
|
||||||
'request
|
'request
|
||||||
(list
|
(list
|
||||||
|
|
Loading…
Reference in a new issue