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

Method indentStr

pkg/formatter/render.go:55–64  ·  view source on GitHub ↗

indentStr returns the current indentation string.

()

Source from the content-addressed store, hash-verified

53
54// indentStr returns the current indentation string.
55func (f *nodeFormatter) indentStr() string {
56 if f.opts.IndentWidth == 0 {
57 return ""
58 }
59 ch := " "
60 if f.opts.IndentStyle == ast.IndentTabs {
61 ch = "\t"
62 }
63 return strings.Repeat(ch, f.opts.IndentWidth*f.depth)
64}
65
66// clauseSep returns the separator between SQL clauses.
67func (f *nodeFormatter) clauseSep() string {

Callers 2

clauseSepMethod · 0.95
renderCreateTableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected