@@ -376,6 +376,7 @@ fn to_formatter_settings(
376376 keyword_case : conf. keyword_case ,
377377 constant_case : conf. constant_case ,
378378 type_case : conf. type_case ,
379+ skip_fn_bodies : conf. skip_fn_bodies ,
379380 ignored_files : to_matcher ( working_directory. clone ( ) , Some ( & conf. ignore ) ) ?,
380381 included_files : to_matcher ( working_directory. clone ( ) , Some ( & conf. include ) ) ?,
381382 } )
@@ -566,6 +567,9 @@ pub struct FormatterSettings {
566567 /// Data type casing (text, varchar, int): upper or lower. Default: lower.
567568 pub type_case : KeywordCase ,
568569
570+ /// If true, skip formatting of SQL function bodies (keep them verbatim). Default: false.
571+ pub skip_fn_bodies : bool ,
572+
569573 /// List of ignored paths/files to match
570574 pub ignored_files : Matcher ,
571575
@@ -583,6 +587,7 @@ impl Default for FormatterSettings {
583587 keyword_case : KeywordCase :: default ( ) ,
584588 constant_case : KeywordCase :: default ( ) ,
585589 type_case : KeywordCase :: default ( ) ,
590+ skip_fn_bodies : false ,
586591 ignored_files : Matcher :: empty ( ) ,
587592 included_files : Matcher :: empty ( ) ,
588593 }
0 commit comments