Indentation and formatting helpers
(keyword string)
| 1055 | |
| 1056 | // Indentation and formatting helpers |
| 1057 | func (f *SQLFormatter) writeKeyword(keyword string) { |
| 1058 | if f.uppercaseKw { |
| 1059 | f.builder.WriteString(strings.ToUpper(keyword)) |
| 1060 | } else { |
| 1061 | f.builder.WriteString(strings.ToLower(keyword)) |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | // formatIdentifier formats an identifier, quoting it if it contains special characters |
| 1066 | // or is a reserved keyword |
no outgoing calls
no test coverage detected