/kormafy

Transform SQL to Korma DSL

Primary LanguageClojure

Kormafy

Transform SQL to Korma DSL

Usage

Don't.

Seriously, why would you programmatically first transform SQL to Clojure DSL and then back to SQL?

If you still insist:

(require '[kormafy.core :refer [sql->korma]])

(sql->korma "SELECT foo FROM bar")
=> (select :bar (fields :foo))

Currently supported SQL constructs can be found from the tests.

Why?

Because it can be done.

Because I wanted to to play with Instaparse and test.check.