diff options
Diffstat (limited to 'extras/appengine/static/sqlformat_client_example.py')
| -rw-r--r-- | extras/appengine/static/sqlformat_client_example.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/extras/appengine/static/sqlformat_client_example.py b/extras/appengine/static/sqlformat_client_example.py deleted file mode 100644 index 8b2a9e9..0000000 --- a/extras/appengine/static/sqlformat_client_example.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python - -import urllib -import urllib2 - -REMOTE_API = 'http://sqlformat.appspot.com/format/' - -payload = ( - ('data', 'select * from foo join bar on val1 = val2 where id = 123;'), - ('format', 'text'), - ('keyword_case', 'upper'), - ('reindent', True), - ('n_indents', 2), - ) - - -response = urllib2.urlopen(REMOTE_API, - urllib.urlencode(payload)) -print response.read() - |
