Skip to content

Instantly share code, notes, and snippets.

@mwicat
Created October 24, 2013 10:56
Show Gist options
  • Select an option

  • Save mwicat/7135088 to your computer and use it in GitHub Desktop.

Select an option

Save mwicat/7135088 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sqlparse
import sys
s = sys.stdin.read()
print sqlparse.format(s, reindent=True, keyword_case='upper')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment