You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let input = "SELECT a, created_at FROM b ORDER BY (CASE $3 WHEN 'created_at_asc' THEN created_at END) ASC, (CASE $3 WHEN 'created_at_desc' THEN created_at END) DESC;";
1605
+
let max_line = 120;
1606
+
let options = FormatOptions{
1607
+
max_inline_block: max_line,
1608
+
max_inline_arguments:Some(max_line),
1609
+
joins_as_top_level:true,
1610
+
uppercase:Some(true),
1611
+
ignore_case_convert:Some(vec!["status"]),
1612
+
..Default::default()
1613
+
};
1614
+
1615
+
let expected = indoc!(
1616
+
"
1617
+
SELECT
1618
+
a, created_at
1619
+
FROM
1620
+
b
1621
+
ORDER BY
1622
+
(CASE $3 WHEN 'created_at_asc' THEN created_at END) ASC,
1623
+
(CASE $3 WHEN 'created_at_desc' THEN created_at END) DESC;"
0 commit comments