This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-06
Channels
- # beginners (3)
- # boot (2)
- # cljs-dev (11)
- # cljsrn (122)
- # clojars (9)
- # clojure (8)
- # clojure-austin (5)
- # clojure-korea (1)
- # clojure-russia (3)
- # clojure-spec (7)
- # clojure-uk (14)
- # clojurescript (45)
- # cursive (12)
- # emacs (7)
- # euroclojure (1)
- # hoplon (285)
- # instaparse (1)
- # klipse (37)
- # leiningen (1)
- # off-topic (3)
- # om (11)
- # onyx (4)
- # re-frame (5)
- # reagent (1)
- # sql (3)
- # uncomplicate (2)
- # untangled (17)
- # vim (5)
hey guys! anybody knows if I can use "dynamic" query criteria in yesql? https://github.com/Code-for-Miami/restaurant-inspections-api/blob/modern-18F-api/resources/sql/select_inspections_by_all.sql#L18 -- I would like to change from this line on to the end to something like :dynamicFilter and then in my code use dynamic criteria fields as I need
@leo.ribeiro This might help with yesql. https://medium.com/@trinity/dynamic-sql-generation-in-clojure-27a08f56f97e#.erj0ngxbj
Looks like you're site is using mysql for the database so it's not much help here, but I wrote a postgres specific lib that handles this specific need. https://github.com/mikeball/foundation/blob/master/docs/dynamic-queries.md