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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

371}
372
373func (a *AlterTableFreezePartition) FormatSQL(formatter *Formatter) {
374 formatter.WriteString("FREEZE")
375 if a.Partition != nil {
376 formatter.WriteByte(whitespace)
377 formatter.WriteExpr(a.Partition)
378 }
379}
380
381func (a *AlterTableMaterializeIndex) FormatSQL(formatter *Formatter) {
382 formatter.WriteString("MATERIALIZE INDEX")

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
WriteByteMethod · 0.80
WriteExprMethod · 0.80

Tested by

no test coverage detected