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

Method FormatSQL

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

Source from the content-addressed store, hash-verified

326}
327
328func (a *AlterTableDetachPartition) FormatSQL(formatter *Formatter) {
329 formatter.WriteString("DETACH ")
330 formatter.WriteExpr(a.Partition)
331 if a.Settings != nil {
332 formatter.Break()
333 formatter.WriteExpr(a.Settings)
334 }
335}
336
337func (a *AlterTableDropColumn) FormatSQL(formatter *Formatter) {
338 formatter.WriteString("DROP COLUMN ")

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
WriteExprMethod · 0.80
BreakMethod · 0.80

Tested by

no test coverage detected