String returns a string representation of an SQLNode.
(node SQLNode)
| 256 | |
| 257 | // String returns a string representation of an SQLNode. |
| 258 | func String(node SQLNode) string { |
| 259 | if node == nil { |
| 260 | return "<nil>" |
| 261 | } |
| 262 | |
| 263 | buf := NewTrackedBuffer(nil) |
| 264 | buf.Myprintf("%v", node) |
| 265 | return buf.String() |
| 266 | } |
| 267 | |
| 268 | // Append appends the SQLNode to the buffer. |
| 269 | func Append(buf *strings.Builder, node SQLNode) { |