From d71b24c71c7fe73a4f837d1b1f409614a82b6a1e Mon Sep 17 00:00:00 2001 From: Null not nil Date: Wed, 14 Oct 2020 10:51:31 -0600 Subject: [PATCH] ast: add explain format=json --- ast/misc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ast/misc.go b/ast/misc.go index a13545f10..8e1929824 100644 --- a/ast/misc.go +++ b/ast/misc.go @@ -66,6 +66,7 @@ const ( // Valid formats for explain statement. ExplainFormatROW = "row" ExplainFormatDOT = "dot" + ExplainFormatJSON = "json" ExplainFormatHint = "hint" ExplainFormatVerbose = "verbose" PumpType = "PUMP" @@ -83,6 +84,7 @@ var ( ExplainFormats = []string{ ExplainFormatROW, ExplainFormatDOT, + ExplainFormatJSON, ExplainFormatHint, ExplainFormatVerbose, }