never mind
its
:identifiers identity
i mixed up, it was working already :D
On Monday, 15 September 2014 13:51:13 UTC+2, Amir wrote:
>
> Hi,
>
> We are migrating from old deprecated library to new interface. I have a
> select statement as follows
>
> select
select column name as keywords with camel case. Now as i understand new
library has :identifiers which defaults to identity and lower case. What is
the new option were we can keep camel case keywords as hinted in select
statement.
thanks in advance,
Amir
--
You received this message because yo
Hi everybody
I'm a clojure newbie, so I'm sorry if I'm asking a dumb question.
I'm trying to write a program to crawl a webpage, find all links and
recursively do this until all the links in the website is crawled (of
course I'm omitting external hosts to avoid infinite crawling). So
basically
Hi,
how we can achieve reset! and merge for (transient {})
e.g. when we have a doseq
thanks.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are mode
Is there reset! and merge a possibility for (transient {})
sometimes we have a doseq and it might be requirement sometime.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that
complete example
(ns wm.test
(import [java.util.concurrent Executors])
)
(def deliveries (map char (range 65 90)))
(defn- test-fn
[delivery another param]
(println "in test sleeping" delivery another param)
(let[sleep-for (rand-int 1)]
(println "sleeping for " sleep-for)
(T
I was using the first example to make a process executing parallely
(defn test-stm [nitems nthreads niters]
(let [refs (map ref (repeat nitems 0))
pool (Executors/newFixedThreadPool nthreads)
tasks (map (fn [t]
(fn []
(dotimes [n n
I want to sort a map by its keys according to dictionary when i do the
following
(into (sorted-map) {"1" "A" "2" "B" "11" "C" "3" "D"})
the result is
{"1" "A", "11" "C", "2" "B", "3" "D"}
which is expected result but what i expect is dictionary sort, {"1" "A",
"2" "B", 3 "D", "11" "C"}. is
hey,
thanks, it works. Did not know/think apply can be used in this situation.
Regards,
Amir
On Thursday, December 6, 2012 12:19:28 PM UTC+1, Baishampayan Ghose wrote:
>
> How about using apply?
>
> For example -
>
> (sql/with-connection (db-connection)
> (ap
On Thursday, December 6, 2012 12:18:05 PM UTC+1, Amir Wasim wrote:
>
> I am trying to use insert-values with value-groups which works like the
> following
>
> (sql/with-connection (db-connection)
> (sql/insert-values "table-name" ["id" "val&qu
I am trying to use insert-values with value-groups which works like the
following
(sql/with-connection (db-connection)
(sql/insert-values "table-name" ["id" "val"] [2 "B"][3 "C"]))
here [2 "B"][3 "C"] is with two value groups
the problem is i have list of list [[2 "B"][3 "C"]] and i want
I am trying to use insert-values with value-groups which works like the
following
(sql/with-connection (db-connection)
(sql/insert-values "table-name" ["id" "val"] [2 "B"][3 "C"]))
here [2 "B"][3 "C"] is with two value groups
the problem is i have list of list [[2 "B"][3 "C"]] and i want
o-commands which halts the jvm
but there is no error on terminal.
Do you know a way to raw update statement with "in" within Where clause...
On Wednesday, December 5, 2012 4:53:39 AM UTC+1, Sean Corfield wrote:
>
> ... in ? is not supported in c.j.jdbc
>
>
> On Tue, Dec
I am trying to use the following
(defn commit-acknowledged
[acks]
(sql/with-connection (db-connection)
(sql/transaction
(sql/update-values "MSGIDS" ["msg_id in ?" acks] {"status" "H"})
)
)
)
here acks is type of clojure.lang.PersistentVector when i call this
function i a
14 matches
Mail list logo