Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,8 @@ const (
AdminCaptureBindings
AdminEvolveBindings
AdminReloadBindings
AdminShowTelemetry
AdminResetTelemetryID
)

// HandleRange represents a range where handle value >= Begin and < End.
Expand Down Expand Up @@ -1827,6 +1829,10 @@ func (n *AdminStmt) Restore(ctx *format.RestoreCtx) error {
ctx.WriteKeyWord("EVOLVE BINDINGS")
case AdminReloadBindings:
ctx.WriteKeyWord("RELOAD BINDINGS")
case AdminShowTelemetry:
ctx.WriteKeyWord("SHOW TELEMETRY")
case AdminResetTelemetryID:
ctx.WriteKeyWord("RESET TELEMETRY_ID")
default:
return errors.New("Unsupported AdminStmt type")
}
Expand Down
3 changes: 3 additions & 0 deletions misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ var tokenMap = map[string]int{
"REPLICA": replica,
"REPLICATION": replication,
"REQUIRE": require,
"RESET": reset,
"RESPECT": respect,
"RESTORE": restore,
"RESTORES": restores,
Expand Down Expand Up @@ -637,6 +638,8 @@ var tokenMap = map[string]int{
"TABLE": tableKwd,
"TABLES": tables,
"TABLESPACE": tablespace,
"TELEMETRY": telemetry,
"TELEMETRY_ID": telemetryID,
"TEMPORARY": temporary,
"TEMPTABLE": temptable,
"TERMINATED": terminated,
Expand Down
Loading