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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

244}
245
246func (a *AlterTableAddIndex) FormatSQL(formatter *Formatter) {
247 formatter.WriteString("ADD ")
248 if a.IfNotExists {
249 formatter.WriteString("IF NOT EXISTS ")
250 }
251 formatter.WriteExpr(a.Index)
252 if a.After != nil {
253 formatter.WriteString(" AFTER ")
254 formatter.WriteExpr(a.After)
255 }
256}
257
258func (a *AlterTableAddProjection) FormatSQL(formatter *Formatter) {
259 formatter.WriteString("ADD PROJECTION ")

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
WriteExprMethod · 0.80

Tested by

no test coverage detected