We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5848906 commit 6fd27d5Copy full SHA for 6fd27d5
README.md
@@ -89,10 +89,14 @@ keywords, the following should hold true for all SQL:
89
90
```rust
91
// Parse SQL
92
+let sql = "SELECT 'hello'";
93
let ast = Parser::parse_sql(&GenericDialect, sql).unwrap();
94
95
// The original SQL text can be generated from the AST
96
assert_eq!(ast[0].to_string(), sql);
97
+
98
+// The SQL can also be pretty-printed with newlines and indentation
99
+assert_eq!(format!("{:#}", ast[0]), "SELECT\n 'hello'");
100
```
101
102
There are still some cases in this crate where different SQL with seemingly
0 commit comments