sql_formatter icon indicating copy to clipboard operation
sql_formatter copied to clipboard

A Python based SQL formatter

Results 11 sql_formatter issues
Sort by recently updated
recently updated
newest added

### Is your feature request related to a problem? Please describe Thanks for this package! Is it possible to have the start of a CTE definition on a new line?...

enhancement

I'd like to be able to pass input from a pipe and format it: ```shell some_command | sql-formatter - ``` Here `-` is the conventional way of indicating that input...

enhancement

### Describe the bug Running the formatter (v0.6.2) with pre-commit fails with an NPE: ``` Traceback (most recent call last): File "/Users/erlendvollset/.cache/pre-commit/repoy6iw_xck/py_env-python3/bin/sql-formatter", line 8, in sys.exit(format_sql_files_cli()) File "/Users/erlendvollset/.cache/pre-commit/repoy6iw_xck/py_env-python3/lib/python3.10/site-packages/sql_formatter/format_file.py", line 204,...

bug

Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.4 to 1.13.4. Release notes Sourced from nokogiri's releases. 1.13.4 / 2022-04-11 Security Address CVE-2022-24836, a regular expression denial-of-service vulnerability. See GHSA-crjr-9rc5-ghw8 for more information. [CRuby] Vendored...

dependencies

### Describe the bug When formatting a query that has a query within the column list ### To Reproduce **python** .from sql_formatter.core import format_sql `print( format_sql( "SELECT Column1, Column2, (SELECT...

bug

### Describe the bug CASE WHEN statements that are longer than 82 characters create new lines that are severely indented. ### To Reproduce Have a CASE WHEN statement with the...

bug

While testing my code with sql_formatter, I saw that the project lacks support for MERGE statements. Since many databases support MERGE, it would be great to get them formatted as...

enhancement

### Is your feature request related to a problem? Please describe Currently, when eliciting columns, comma is added at the end of the column name. ### Describe the solution you'd...

enhancement