Skip to content

Commit

Permalink
ast: add explain format=json (pingcap#1055)
Browse files Browse the repository at this point in the history
Co-authored-by: kennytm <[email protected]>
  • Loading branch information
Null not nil and kennytm authored Oct 22, 2020
1 parent a32c620 commit 4660991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const (
// Valid formats for explain statement.
ExplainFormatROW = "row"
ExplainFormatDOT = "dot"
ExplainFormatJSON = "json"
ExplainFormatHint = "hint"
ExplainFormatVerbose = "verbose"
PumpType = "PUMP"
Expand All @@ -83,6 +84,7 @@ var (
ExplainFormats = []string{
ExplainFormatROW,
ExplainFormatDOT,
ExplainFormatJSON,
ExplainFormatHint,
ExplainFormatVerbose,
}
Expand Down

0 comments on commit 4660991

Please sign in to comment.