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

Method writeNewline

cmd/gosqlx/cmd/sql_formatter.go:1108–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1106}
1107
1108func (f *SQLFormatter) writeNewline() {
1109 if !f.compact {
1110 f.builder.WriteString("\n")
1111 } else {
1112 f.builder.WriteString(" ")
1113 }
1114}
1115
1116func (f *SQLFormatter) increaseIndent() {
1117 f.newlineLevel++

Callers 14

formatSelectMethod · 0.95
formatSetOperationMethod · 0.95
formatInsertMethod · 0.95
formatUpdateMethod · 0.95
formatDeleteMethod · 0.95
formatCreateTableMethod · 0.95
formatAlterTableMethod · 0.95
formatAlterStatementMethod · 0.95
formatWithClauseMethod · 0.95
formatCreateViewMethod · 0.95
formatMergeStatementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected