[FEATURE] I want to keep the comments #2018
Replies: 2 comments 1 reply
-
I noticed the issue https://github.com/JSQLParser/JSqlParser/issues/1776 , but still can't think of a good solution |
Beta Was this translation helpful? Give feedback.
-
Greetings! There is no direct way to access such SQL comments because they do not have clear position in the AST. Example: SELECT /*comment 1*/ /*comment 2*/ column1 from dual; It's impossible to decide if those comments are properties of the Nodes However, there are certain work arounds:
|
Beta Was this translation helpful? Give feedback.
-
SQL Example
I want to keep the comments
I use these comments as placeholders. Since I want to replace these comments after Jsqlparser finishes parsing, I hope that they can still be retained after parsing.
Is there any way to use it? Or is there a better solution?
Also,JSqlParser is a near-perfect work. I often use it in my projects and I love it very much.
Beta Was this translation helpful? Give feedback.
All reactions