(buf *TrackedBuffer, d format.Dialect)
| 17 | } |
| 18 | |
| 19 | func (n *RangeVar) Format(buf *TrackedBuffer, d format.Dialect) { |
| 20 | if n == nil { |
| 21 | return |
| 22 | } |
| 23 | if n.Schemaname != nil && *n.Schemaname != "" { |
| 24 | buf.WriteString(d.QuoteIdent(*n.Schemaname)) |
| 25 | buf.WriteString(".") |
| 26 | } |
| 27 | if n.Relname != nil { |
| 28 | buf.WriteString(d.QuoteIdent(*n.Relname)) |
| 29 | } |
| 30 | if n.Alias != nil { |
| 31 | buf.WriteString(" AS ") |
| 32 | buf.astFormat(n.Alias, d) |
| 33 | } |
| 34 | } |
nothing calls this directly
no test coverage detected