Comments (2)
Implemented in 15.1.0 release.
from sql-formatter.
SQL Formatter is not Prettier. It has not been developed to be compatible with Prettier. Heck, the first version of SQL Formatter was released before Prettier existed.
I know there exists prettier-plugin-sql, which uses SQL Formatter under the hood, but I have no control over that project.
If you're interested in more Prettier-compatible SQL formatting solution, I suggest you try prettier-plugin-sql-cst. This doesn't support the ignore-comments, but there exists more of a chance that such a feature gets implemented.
In this project, the best one could hope for would be a feature where you mark both start and end of the code you don't want to be formatted, like:
/* sql-formatter-disable */
SELECT * FROM tbl
/* sql-formatter-enable */
There could be a point for implementing something like this, as it would help in working around scenarios where the formatter currently fails to produce a sensible output or even crashes. Like:
from sql-formatter.
Related Issues (20)
- [FORMATTING] Postgres formatter throws error when '@?' operator is used for json filtering HOT 2
- [FORMATTING] No new line except before `;` and no caps HOT 2
- [FORMATTING] Field named "password" converted to uppercase when "keywordCase" is "upper" HOT 9
- [FORMATTING] function name should not be changed in pgsql HOT 2
- Failure on schema-qualified special `OPERATOR` in PostgreSQL HOT 3
- Unable to configure to use the configuration setting for placeholders HOT 3
- [FORMATTING] Why are tabularLeft parentheses so ugly? Can you add hierarchical styles or align backspace HOT 3
- Cannot read properties of undefined (reading 'nestedBlockComments') HOT 3
- Feature Request: Option to Configure Indentation for SQL JOIN Clauses HOT 2
- Unable to use "#" in table names HOT 2
- [FORMATTING] `DEFAULT VALUES` not properly supported in INSERT statement HOT 3
- [FORMATTING] When the language is postgres, executing "select * from test. [User]" will result in an error message HOT 5
- [Question] How to apply formatting inside of table definition? HOT 4
- PL/SQL error parsing FOR x IN a..b LOOP HOT 1
- Feature Request: Support TiDB syntax
- Error thrown parsing fairly long (but valid) postgresql statement HOT 3
- [FORMATTING] Column named `text` is converted to upper case HOT 1
- Feature Request: Databricks SQL Support HOT 2
- [VS Code] Support for oracle_sql language files HOT 3
- mysql: create procedure LOOP bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sql-formatter.