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

Method Restore

parser/ast/ddl.go:916–925  ·  view source on GitHub ↗

Restore implements Node interface.

(ctx *format.RestoreCtx)

Source from the content-addressed store, hash-verified

914
915// Restore implements Node interface.
916func (n *TableToTable) Restore(ctx *format.RestoreCtx) error {
917 if err := n.OldTable.Restore(ctx); err != nil {
918 return errors.Annotate(err, "An error occurred while restore TableToTable.OldTable")
919 }
920 ctx.WriteKeyWord(" TO ")
921 if err := n.NewTable.Restore(ctx); err != nil {
922 return errors.Annotate(err, "An error occurred while restore TableToTable.NewTable")
923 }
924 return nil
925}
926
927// Accept implements Node Accept interface.
928func (n *TableToTable) Accept(v Visitor) (Node, bool) {

Callers

nothing calls this directly

Calls 2

WriteKeyWordMethod · 0.80
RestoreMethod · 0.65

Tested by

no test coverage detected