Re: Adding value to the map in sql statement dynamically

2020-12-20 Thread Ganesh Neelekani
ECT * FROM " table " WHERE person_id = " person " ORDER BY " > id)) > > You may want to have a look at Sean Cornfield's Honey SQL as well [1]. > > Hope this helps. > > [0] https://clojure.org/guides/destructuring > [1] https://github.com/seancorfield/

Adding value to the map in sql statement dynamically

2020-12-20 Thread Ganesh Neelekani
Hello Team, I am new to clojure and I wanted to write a function where input from map keys are passed as parameter as input to the sql query. (def query-body1 " select first_name, last_name from ${table_name} where person_id=${person_id} order by ${id} ") (def query-body2 " select first_nam

Using asynchronous clojure function

2020-12-13 Thread Ganesh Neelekani
Hello Team, I am a moderate Clojure user and now I planned to explore more Clojure, I used to write different functions every time where I could write asynchronous functions. As came from object-oriented background and trying to understand asynchronous functions I took some example on using