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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

379}
380
381func (a *AlterTableMaterializeIndex) FormatSQL(formatter *Formatter) {
382 formatter.WriteString("MATERIALIZE INDEX")
383
384 if a.IfExists {
385 formatter.WriteString(" IF EXISTS")
386 }
387 formatter.WriteByte(whitespace)
388 formatter.WriteExpr(a.IndexName)
389 if a.Partition != nil {
390 formatter.Break()
391 formatter.WriteString("IN ")
392 formatter.WriteExpr(a.Partition)
393 }
394}
395
396func (a *AlterTableMaterializeProjection) FormatSQL(formatter *Formatter) {
397 formatter.WriteString("MATERIALIZE PROJECTION")

Callers

nothing calls this directly

Calls 4

WriteStringMethod · 0.80
WriteByteMethod · 0.80
WriteExprMethod · 0.80
BreakMethod · 0.80

Tested by

no test coverage detected