MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / formatNodeSummary

Method formatNodeSummary

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

formatNodeSummary recurses into a node for pretty-printing a summarized version.

(n NodeFormatter)

Source from the content-addressed store, hash-verified

771
772// formatNodeSummary recurses into a node for pretty-printing a summarized version.
773func (ctx *FmtCtx) formatNodeSummary(n NodeFormatter) {
774 switch node := n.(type) {
775 case *Insert:
776 ctx.formatSummaryInsert(node)
777 return
778 case *Select:
779 ctx.formatSummarySelect(node)
780 return
781 case *Update:
782 ctx.formatSummaryUpdate(node)
783 return
784 }
785 ctx.FormatNode(n)
786}
787
788// AsStringWithFlags pretty prints a node to a string given specific flags; only
789// flags that don't require Annotations can be used.

Callers 3

formatLimitLengthMethod · 0.95
formatSummaryInsertMethod · 0.95
AsStringWithFlagsFunction · 0.95

Calls 4

formatSummaryInsertMethod · 0.95
formatSummarySelectMethod · 0.95
formatSummaryUpdateMethod · 0.95
FormatNodeMethod · 0.95

Tested by

no test coverage detected