MCPcopy
hub / github.com/XiaoMi/Gaea / Restore

Method Restore

parser/ast/ast.go:30–30  ·  view source on GitHub ↗

Restore returns the sql text from ast tree

(ctx *format.RestoreCtx)

Source from the content-addressed store, hash-verified

28type Node interface {
29 // Restore returns the sql text from ast tree
30 Restore(ctx *format.RestoreCtx) error
31 // Accept accepts Visitor to visit itself.
32 // The returned node should replace original node.
33 // ok returns false to stop visiting.

Callers 15

NodeToStringWithoutQuoteFunction · 0.65
RunRestoreTestFunction · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65
RestoreMethod · 0.65

Implementers 3

PatternInExprDecoratorproxy/plan/decorator_pattern_in_expr.g
ColumnNameDecoratorproxy/plan/decorator_column_name.go
TableNameDecoratorproxy/plan/decorator_table_name.go

Calls

no outgoing calls

Tested by 3

RunRestoreTestFunction · 0.52
_TestGroupByRewritingFunction · 0.52