Skip to content

Instantly share code, notes, and snippets.

@lambdahands
Last active February 28, 2018 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lambdahands/5d773934b4918d5f7b38f02bcba63f9b to your computer and use it in GitHub Desktop.
Save lambdahands/5d773934b4918d5f7b38f02bcba63f9b to your computer and use it in GitHub Desktop.
(ns sql-formatter.core)
(def phrases
{:begin-clauses #{"left" "right" "inner" "outer" "group" "order"}
:end-clauses #{"where" "set" "having" "join" "from" "onto" "union"}
:logical #{"and" "or" "when" "else" "end"}
:quantifiers #{"in" "all" "exists" "some" "any"}
:dml #{"insert" "update" "delete"}
:misc #{"select" "on"}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment