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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

291}
292
293func (a *AlterTableClearIndex) FormatSQL(formatter *Formatter) {
294 formatter.WriteString("CLEAR INDEX ")
295 if a.IfExists {
296 formatter.WriteString("IF EXISTS ")
297 }
298 formatter.WriteExpr(a.IndexName)
299 if a.PartitionExpr != nil {
300 formatter.Break()
301 formatter.WriteString("IN ")
302 formatter.WriteExpr(a.PartitionExpr)
303 }
304
305}
306
307func (a *AlterTableClearProjection) FormatSQL(formatter *Formatter) {
308 formatter.WriteString("CLEAR PROJECTION ")

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
WriteExprMethod · 0.80
BreakMethod · 0.80

Tested by

no test coverage detected