MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / WithIndent

Method WithIndent

parser/format.go:42–45  ·  view source on GitHub ↗

WithIndent sets the indentation string used when beautifying SQL. The indent parameter should not be empty to maintain proper formatting.

(indent string)

Source from the content-addressed store, hash-verified

40// WithIndent sets the indentation string used when beautifying SQL.
41// The indent parameter should not be empty to maintain proper formatting.
42func (f *Formatter) WithIndent(indent string) *Formatter {
43 f.indent = indent
44 return f
45}
46
47func (f *Formatter) writeIndentIfNeeded() {
48 if !f.lineStart {

Calls

no outgoing calls