MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Serialize

Function Serialize

pkg/sql/sem/tree/format.go:408–410  ·  view source on GitHub ↗

Serialize pretty prints a node to a string using FmtParsable; it is appropriate when we store expressions into strings that are later parsed back into expressions.

(n NodeFormatter)

Source from the content-addressed store, hash-verified

406// appropriate when we store expressions into strings that are later parsed back
407// into expressions.
408func Serialize(n NodeFormatter) string {
409 return AsStringWithFlags(n, FmtParsable)
410}
411
412var fmtCtxPool = sync.Pool{
413 New: func() interface{} {

Callers

nothing calls this directly

Calls 1

AsStringWithFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…