| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Option to indent after first line
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a command line argument `--indent_after_first` which sets the
indentation of all lines after the first one, e.g. SELECT, UPDATE, etc. For
example:
$ sqlparse/__main__.py -r sample.sql
UPDATE foo
SET a = 1
WHERE a > 2
AND a < 10;
$ sqlparse/__main__.py -r --indent_after_first sample.sql
UPDATE foo
SET a = 1
WHERE a > 2
AND a < 10;
|
| |
| |
| |
| |
| |
| |
| |
| | |
Appear as:
ResourceWarning: unclosed file ...
Always explicitly close files or detach file wrappers.
|
|/ |
|
|
|
|
|
|
|
|
| |
* Add `--encoding` option with default utf-8
* Make sure input and output are in same encoding
* Add test cases
Signed-off-by: Tao Wang <twang2218@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
| |
Working with non-ascii in Python require all-unicode approach, but
str literals in Python 2.7 are bytes. The patch makes them unicode.
Syntax u'' is supported in Python 2.7 and 3.3+.
|
| |
|
| |
|
|
Also reference example in:
https://github.com/ionelmc/cookiecutter-pylibrary
|