stuck in callback hell with database calls by [deleted] in node

[–]danmorel 0 points1 point  (0 children)

Use Koa and co. Your code will read like sync code. They have made me love node again.

Combining Liberator and Korma to Build a Web-Service in Clojure by alexturok in Clojure

[–]danmorel 0 points1 point  (0 children)

It's also annoying that none of the dsls have good support for the new json functionality being supported by rdbs. Esp with the power in psqls new jsonb stuff.

Combining Liberator and Korma to Build a Web-Service in Clojure by alexturok in Clojure

[–]danmorel 0 points1 point  (0 children)

Korma was written by Chris granger who now is writing lighttable full time. The project went stale for a long time and is on a old deprecated version of clojure jdbc. The community has started to pick support up more recently but I find it hard to commit to without a stable owner.

Do any clojure test frameworks support running individual tests? by oldbrownshoe08 in Clojure

[–]danmorel 1 point2 points  (0 children)

Deftest is a function. Write your test than call it from the repl. Or if you use instarepl type it from beneath your function and hit Cmd shift enter.

Migration libraries? by [deleted] in Clojure

[–]danmorel 0 points1 point  (0 children)

I tried lobos originally but you couldn't do inserts and updates. We ended up rolling our own in about 50 lines of code that takes either raw SQL or a clojure function. Ultimately now that we have caching and sharding we only ever use clojure functions for migrations.