zalando / friboo

Utility library for writing microservices in Clojure, with support for Swagger and OAuth
Apache License 2.0
119 stars 16 forks source link

Consider adding a macro for defining db commands #52

Open dryewo opened 8 years ago

dryewo commented 8 years ago
(defmacro defquery-hystrix-commands [filename]
  `(do
     (defqueries ~filename)
     (generate-hystrix-commands)))
(defquery-hystrix-commands "db/queries.sql")
prayerslayer commented 8 years ago

This sounds like a good idea.

dryewo commented 8 years ago

Also, what about making the cmd- prefix explicit?

(defquery-hystrix-commands "cmd-" "db/queries.sql")
LappleApple commented 7 years ago

Hey @dryewo, can we close this issue? It dates back to May 2016.

Or, we could add a "Help Wanted" label.