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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

305}
306
307func (a *AlterTableClearProjection) FormatSQL(formatter *Formatter) {
308 formatter.WriteString("CLEAR PROJECTION ")
309 if a.IfExists {
310 formatter.WriteString("IF EXISTS ")
311 }
312 formatter.WriteExpr(a.ProjectionName)
313 if a.PartitionExpr != nil {
314 formatter.Break()
315 formatter.WriteString("IN ")
316 formatter.WriteExpr(a.PartitionExpr)
317 }
318
319}
320
321func (a *AlterTableDelete) FormatSQL(formatter *Formatter) {
322 formatter.WriteString("DELETE")

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
WriteExprMethod · 0.80
BreakMethod · 0.80

Tested by

no test coverage detected