Re: Adding value to the map in sql statement dynamically

2020-12-20 Thread alpeware llc
> Bt this will be dynamic, Any number of keys can come, How to segregate and > assigned to > particular variable? > > Thanking you. > -- > With regards. > Ganesh N Neelekani > > > > > On S

Re: Adding value to the map in sql statement dynamically

2020-12-20 Thread alpeware llc
Welcome to Clojure! You could just define a function taking a map as an argument and return the query as a string using destructering [0] (defn people [{:keys [table person id]}] (str "SELECT * FROM " table " WHERE person_id = " person " ORDER BY " id)) You may want to have a look at Sean Corn

Re: mysterious clj -m behavior

2020-10-09 Thread alpeware llc
You should be able to specify the deps.edn file using a env variable - The Clojure tools will use the following deps.edn map sources, in this order: - Root - found in the installation of clj (or as a resource in tools.deps) - User - cross-project configuration (typically tools) -

Re: Strange behavior with clojure.java.io/copy

2019-08-25 Thread alpeware
The read method returns the number of bytes consumed from the input stream and stored in the provided buffer. The only case the read method would return 0 is when a buffer of length 0 is provided since there would be no place to store any bytes consumed from the input stream. In most cases, a

Re: transducer parallelism

2019-01-25 Thread alpeware
If you want parallelism, you'll want to use fold [0] or async's pipeline [1]. Personally, I've found Rich's talk the best way to help me understand how transducers were added to the language. [2] You may also want to look at cgrand's xforms library [3]. For example, it allows you to express fr