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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

351}
352
353func (a *AlterTableDropPartition) FormatSQL(formatter *Formatter) {
354 formatter.WriteString("DROP ")
355 if a.HasDetached {
356 formatter.WriteString("DETACHED ")
357 }
358 formatter.WriteExpr(a.Partition)
359 if a.Settings != nil {
360 formatter.Break()
361 formatter.WriteExpr(a.Settings)
362 }
363}
364
365func (a *AlterTableDropProjection) FormatSQL(formatter *Formatter) {
366 formatter.WriteString("DROP PROJECTION ")

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
WriteExprMethod · 0.80
BreakMethod · 0.80

Tested by

no test coverage detected