MCPcopy
hub / github.com/sqldef/sqldef / String

Function String

parser/node.go:74–82  ·  view source on GitHub ↗

String returns a string representation of an SQLNode.

(node SQLNode)

Source from the content-addressed store, hash-verified

72
73// String returns a string representation of an SQLNode.
74func 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.
85type Statement interface {

Calls 2

FormatMethod · 0.65
StringMethod · 0.45