Fork me on GitHub
#ldnclj
<
2015-07-14
>
Pablo Fernandez07:07:29

Yesterday at the dojo we found annoying the fact that Korma wouldn’t accept a database uri so I fixed that today: https://github.com/korma/Korma/pull/316

Pablo Fernandez08:07:06

And the Korma Luminus integration we coded mostly yesterday at the dojo: https://github.com/luminus-framework/luminus-template/pull/137

mccraigmccraig09:07:14

korma, i remember you, and clojureql too, i had such high hopes

mccraigmccraig09:07:39

honeysql was ok when query composition was required, but i ended up mostly using java.jdbc and << string splicing

mccraigmccraig09:07:57

though if i'd been taking input from the web to make queries with, a lib which took care of quoting would have been a good idea

Pablo Fernandez09:07:23

mccraigmccraig: maybe you’d like yesql.

mccraigmccraig09:07:00

pupeno: yeah, probably... i would give it a go if i was doing any web-facing sql atm

korny13:07:42

It feels like Korma and pals are repeating the mistakes of other languages, trying to build an “ORM” when what I mostly want is a way to cleanly hook up SQL/JDBC to my objects.

korny13:07:56

In Java-land I’ve had projects that were very successful that just used a low-level JDBCTemplate and hand-rolled SQL. And projects that were painful that used Hibernate and other magic to generate queries for me, usually badly and in unreadable ways.

korny13:07:04

We have a DSL for talking to databases - it’s called “SQL”. simple_smile

mccraigmccraig14:07:31

anyone here got anything to say about https://github.com/juxt/yada ? it looks great ...

aleksanders14:07:13

The problem with SQL is that it’s not composable

aleksanders14:07:58

Korma and others try to fix that

aleksanders14:07:32

I still prefer building up pure SQL

aleksanders14:07:42

layers on top don’t help

mccraigmccraig15:07:44

honeysql did the best job at query composition of any of the clj sql libs i've tried

thomas15:07:18

@mccraigmccraig: I haven't used yada myself yet, but had a chat with Malcolm about it and it does sound very positive indeed

thomas15:07:15

it addresses some of the problems that were found in liberator

mccraigmccraig15:07:13

i'm just putting a new api together, and yada seems to hit everything i want... mostly async with aleph / manifold, swagger and schema validations