lovasoa opened a new issue, #1845:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1845

   In rust, the Display trait allows specifying an "alternate" display style 
for every type
   
   https://github.com/apache/datafusion-sqlparser-rs/issues/1634
   
   I suggest using this to allow "pretty-printing" SQL statements, including 
newlines.
   
   Currently, long queries printed by sqlparser are hardly human-readable, 
since they are displayed as a single long line of text. We could allow 
displaying them with newlines between keywords and expressions when they are 
printed with `{:#}`
   
   this is also a potential more feasible alternative to 
https://github.com/apache/datafusion-sqlparser-rs/issues/1634
   
   I could implement this myself.
   
   What do you think, @alamb , @iffyio ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to