MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / writeKeyword

Method writeKeyword

cmd/gosqlx/cmd/sql_formatter.go:1057–1063  ·  view source on GitHub ↗

Indentation and formatting helpers

(keyword string)

Source from the content-addressed store, hash-verified

1055
1056// Indentation and formatting helpers
1057func (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

Callers 15

formatSelectMethod · 0.95
formatSetOperationMethod · 0.95
formatInsertMethod · 0.95
formatUpdateMethod · 0.95
formatDeleteMethod · 0.95
formatCreateTableMethod · 0.95
formatCreateIndexMethod · 0.95
formatAlterTableMethod · 0.95
formatAlterStatementMethod · 0.95
formatWithClauseMethod · 0.95
formatJoinMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected