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

Method FormatSQL

parser/format.go:1325–1340  ·  view source on GitHub ↗
(formatter *Formatter)

Source from the content-addressed store, hash-verified

1323}
1324
1325func (d *DictionarySchemaClause) FormatSQL(formatter *Formatter) {
1326 formatter.WriteByte('(')
1327 formatter.Indent()
1328 for i, attr := range d.Attributes {
1329 if i == 0 {
1330 formatter.NewLine()
1331 } else {
1332 formatter.WriteByte(',')
1333 formatter.Break()
1334 }
1335 formatter.WriteExpr(attr)
1336 }
1337 formatter.Dedent()
1338 formatter.NewLine()
1339 formatter.WriteByte(')')
1340}
1341
1342func (d *DictionarySourceClause) FormatSQL(formatter *Formatter) {
1343 formatter.WriteString("SOURCE(")

Callers

nothing calls this directly

Calls 6

WriteByteMethod · 0.80
IndentMethod · 0.80
NewLineMethod · 0.80
BreakMethod · 0.80
WriteExprMethod · 0.80
DedentMethod · 0.80

Tested by

no test coverage detected