String returns a string representation of an SQLNode.
(node SQLNode)
| 72 | |
| 73 | // String returns a string representation of an SQLNode. |
| 74 | func String(node SQLNode) string { |
| 75 | if node == nil { |
| 76 | return "<nil>" |
| 77 | } |
| 78 | |
| 79 | var buf nodeBuffer |
| 80 | node.Format(&buf) |
| 81 | return buf.String() |
| 82 | } |
| 83 | |
| 84 | // Statement represents a statement. |
| 85 | type Statement interface { |