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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

277}
278
279func (a *AlterTableClearColumn) FormatSQL(formatter *Formatter) {
280 formatter.WriteString("CLEAR COLUMN ")
281 if a.IfExists {
282 formatter.WriteString("IF EXISTS ")
283 }
284 formatter.WriteExpr(a.ColumnName)
285 if a.PartitionExpr != nil {
286 formatter.Break()
287 formatter.WriteString("IN ")
288 formatter.WriteExpr(a.PartitionExpr)
289 }
290
291}
292
293func (a *AlterTableClearIndex) FormatSQL(formatter *Formatter) {
294 formatter.WriteString("CLEAR INDEX ")

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
WriteExprMethod · 0.80
BreakMethod · 0.80

Tested by

no test coverage detected