Comments (5)
Thank you so much, I will look into that. I have been heavily invested in working on JSQLParser, which is the foundation of the Formatter. You can expected much improved parsing speed, especially when using nested expression soon.
At the moment, a lot of Expressions like Cast, Interval, Between are only "passed through" because it won't affect the layout of the formatted SQL. But of course it affects the Spelling and the (Ansi) Syntax Highlighting, so I need die hard and complete this part and address ALL Expressions.
from jsqlformatter.
from jsqlformatter.
Currently I'm using formatter in job hours for real business cases while working. So it's under beta testing now.
from jsqlformatter.
0.1.7
brings some keyword fixes to this issue.
I have two examples which may require additional work to cover for keywords: distinct
, null
, interval
update sms_queue sq
set sq.gateway_sms_id = NULL
, sq.date_sent_sms = NULL
, sq.sms_status_id = 1
, sq.date_added = Now() - INTERVAL 1 minute
, sq.date_should_sent = Now() - INTERVAL 1 minute
where sq.sms_id = 2864158
;
select ccp.product_id
, Count( DISTINCT ccp.campaign_id )
from campaign_constraint_product ccp
left join campaign c
on c.campaign_id = ccp.campaign_id
and c.status = 1
where product_id in ( 414732, 530729 )
group by ccp.product_id
order by 2 desc
limit 10
;
from jsqlformatter.
Related Issues (8)
- BadLocationException: Wrong (offset+length) HOT 3
- How to be compatible with sqls containing keywords HOT 2
- ParseException: Encountered unexpected token:<EOF> HOT 4
- missing "limit" keyword after format HOT 3
- group_concat section in select remains unformatted HOT 5
- NullPointerException with a "select ... case when" query HOT 5
- "Encountered unexpected token" when SQL has comment
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 jsqlformatter.