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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

256}
257
258func (a *AlterTableAddProjection) FormatSQL(formatter *Formatter) {
259 formatter.WriteString("ADD PROJECTION ")
260 if a.IfNotExists {
261 formatter.WriteString("IF NOT EXISTS ")
262 }
263 formatter.WriteExpr(a.TableProjection)
264 if a.After != nil {
265 formatter.WriteString(" AFTER ")
266 formatter.WriteExpr(a.After)
267 }
268}
269
270func (a *AlterTableAttachPartition) FormatSQL(formatter *Formatter) {
271 formatter.WriteString("ATTACH ")

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
WriteExprMethod · 0.80

Tested by

no test coverage detected