Help with async operations

2015-05-16 Thread Oleg Dashevskii
Hi, I’m new to Clojure async operations (while have a good understanding of other things) and want to get a bit of advice. Atoms & agents still confuse me. What I’m implementing is a small REST webservice with custom in-memory database. Database is indexed by unique key, basically it’s a map (

Re: Help with timestamp with timezone in YeSQL

2015-05-16 Thread Sam Roberton
On Sunday, 17 May 2015 01:46:14 UTC+10, g vim wrote: > > > > (c/to-timestamp "1967-07-31 06:30:00 America/Caracas") > > evaluates to nil. However: > > (c/to-timestamp "1967-07-31 06:30:00") > > gives me an: #inst "1967-07-31T06:30:00.0-00:00" , > whatever that is, so I che

Help with timestamp with timezone in YeSQL

2015-05-16 Thread Michael Cramm
Out of curiosity have you tried clj-time.coerce/to-sqs-time ? -- 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 moderated - please be patient with your

Help with timestamp with timezone in YeSQL

2015-05-16 Thread gvim
I have a YeSQL query: -- name: add-birthINSERT INTO births (date_time) VALUES ('1967-07-31 06:30:00 America/Caracas') ... and all is well but my defquery equivalent: (add-birth fails because the date_time string is passed to PostgreSQL as a varchar, not a timestamp with timezone. So, t

[ANN] Clojars API

2015-05-16 Thread Juho Teperi
Hello, Clojars has now an RESTful API [1] which provides few endpoints to query data about groups, artifacts and users. The API supports multiple output formats (JSON, EDN, Yaml and Transit-json) and the used format can be selected using Accept-header. Probably the first user of the API is Clj