Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Sean Corfield
In no way did I want to criticize your awesome library None taken! I'll see if I can expand on the documentation. Thank you! I’m not great at documentation, never have been (one of my first jobs, they hired a technical writer to turn my attempt at documentation into something usable…), so I’m

Re: Examples of core.async usage in production?

2015-11-09 Thread James Elliott
We have as well, for a similar time frame. And, separately, I don’t know if you would consider it “production” or “server” since it is a completely different realm, but my open-source live-coding environment for creating light shows with theatrical lighting hardware uses core.async as well. On

if-let and friends with multiple bindings

2015-11-09 Thread Karl Mikkelsen
If you have ever wished if-let and friends would allow multiple bindings wish no more. Check out... https://github.com/LockedOn/if-let -Karl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Using cookies with clj-http.client

2015-11-09 Thread Jeff Mad
I don't see any problem with your code. Try to add :debug true to both of those maps and look at the output. Ensure that for both URLs share exact same hostname and protocol http/https. Look at the Set-Cookie header in the POST response and ensure that the path matches the url in the GET.

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Niels van Klaveren
Performance wise the conclusion is batch queries done this way are around 60% faster than doing separate queries for even very simple queries. On Monday, November 9, 2015 at 11:45:48 AM UTC+1, Niels van Klaveren wrote: > > While answering this question >

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Sean Corfield
Niels van Klaveren wrote on Monday, November 9, 2015 at 7:20 AM: OK, so after some more experimentation I found out I needed to do the get-connection in the prepare-statement instead of the with-db-connection binding. A bit counter-intuitive, and I hope it will still work when a connection pool

[ANN] Ultra 0.4.0

2015-11-09 Thread W. David Jarvis
Howdy all - I'm happy to announce the release of Ultra 0.4.0. CHANGELOG: * Fixed the diff-dispatching interface to correctly diff types - in particular, resolves a bug when diffing hash-maps and array-maps. * Adds a syntax-highlighted `source`! * Adds support for custom printer options,

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Niels van Klaveren
OK, so after some more experimentation I found out I needed to do the get-connection in the prepare-statement instead of the with-db-connection binding. A bit counter-intuitive, and I hope it will still work when a connection pool is used. (j/with-db-connection [c datasource]

I am using jvm-breakglass and getting a NoClassDefFoundError

2015-11-09 Thread Michael Zazzali
Hi, Hopefully someone here has some experience with the jvm-breakglass. I am trying to use the jvm-breakglass library with a java web application and it's not able to find the core clojure libraries when i connect. macbook:server$ lein repl :connect localhost:5 Connecting to nREPL at

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Niels van Klaveren
Thanks for the explanation Sean, that makes a whole lot more sense to me now. I knew I had to miss something when I saw query would also accept prepared statements! In no way did I want to criticize your awesome library, and I'll see if I can expand on the documentation. The use of prepared

Re: Examples of core.async usage in production?

2015-11-09 Thread blake watson
I just got through putting async into production. It allowed me to decouple my Clojure code from underlying Java objects which allowed me to intelligently manage the Java objects. On Mon, Oct 26, 2015 at 12:40 PM, Moe Aboulkheir wrote: > I've used core.async in production a

clojure.java.jdbc prepared select statement

2015-11-09 Thread Niels van Klaveren
While answering this question on stackoverflow about do-prepared I wanted to show the way to do multiple queries with the same prepared statement

Re: Examples of core.async usage in production?

2015-11-09 Thread Derek Troy-West
We have a number of back-end services which use core.async fairly extensively, some of which have been in production for over a year. They tend to utilise Netty (Java non-blocking networking framework) to serve/send requests, for example Alia (https://github.com/mpenet/alia) is an excellent

Re: Cryptic crashes in Leiningen

2015-11-09 Thread Gary Trakhman
Hahaha to the chances :). Looks like it'll help. Lein deps :tree will give you more information about the dependencies that are resolved On Nov 8, 2015 8:50 PM, "James Elliott" wrote: > Thanks, Gary! Kevin tried a :verbose require, and the last few lines > involved loading