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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

394}
395
396func (a *AlterTableMaterializeProjection) FormatSQL(formatter *Formatter) {
397 formatter.WriteString("MATERIALIZE PROJECTION")
398
399 if a.IfExists {
400 formatter.WriteString(" IF EXISTS")
401 }
402 formatter.WriteByte(whitespace)
403 formatter.WriteExpr(a.ProjectionName)
404 if a.Partition != nil {
405 formatter.Break()
406 formatter.WriteString("IN ")
407 formatter.WriteExpr(a.Partition)
408 }
409}
410
411func (a *AlterTableModifyColumn) FormatSQL(formatter *Formatter) {
412 formatter.WriteString("MODIFY COLUMN ")

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