ibdknox/Korma — pull request #30 by paulrosania (2011-12-05 04:05:39+00:00)
Title: Support custom ON clauses in JOIN statements

I needed to be able to vary the ON clause in JOIN statements, so I added support to Korma.

My thinking was that `join` should work like `where`, so my approach makes a breaking change to the `join` syntax:

(select users (join items (= :users.id :items.user_id)))

Instead of:

(select users (join items :users.id :items.user_id))

The implementation also supports a map of pairs, like `where`.

It would be great to get something like this into Korma! Let me know what you think.