lovasoa commented on code in PR #1847:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1847#discussion_r2085360498


##########
src/display_utils.rs:
##########
@@ -0,0 +1,133 @@
+//! Utilities for formatting SQL AST nodes with pretty printing support.
+//!
+//! The module provides formatters that implement the `Display` trait with 
support
+//! for both regular (`{}`) and pretty (`{:#}`) formatting modes. Pretty 
printing
+//! adds proper indentation and line breaks to make SQL statements more 
readable.
+
+use core::fmt::{self, Display, Write};
+
+/// A wrapper around a value that adds an indent to the value when displayed 
with {:#}.
+pub(crate) struct Indent<T>(pub T);

Review Comment:
   Unfortunately we cannot really configure much if we are using rust's 
existing Display trait...



-- 
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

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