Skip to content

Commit

Permalink
*: add show table regions syntax (#349) (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored Jul 15, 2019
1 parent 8190881 commit 98d0068
Show file tree
Hide file tree
Showing 4 changed files with 2,782 additions and 2,736 deletions.
16 changes: 9 additions & 7 deletions ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ const (
ShowPumpStatus
ShowDrainerStatus
ShowOpenTables
ShowRegions
)

// ShowStmt is a statement to provide information about databases, tables, columns and so on.
Expand All @@ -994,13 +995,14 @@ type ShowStmt struct {
dmlNode
resultSetNode

Tp ShowStmtType // Databases/Tables/Columns/....
DBName string
Table *TableName // Used for showing columns.
Column *ColumnName // Used for `desc table column`.
Flag int // Some flag parsed from sql, such as FULL.
Full bool
User *auth.UserIdentity // Used for show grants.
Tp ShowStmtType // Databases/Tables/Columns/....
DBName string
Table *TableName // Used for showing columns.
Column *ColumnName // Used for `desc table column`.
IndexName model.CIStr
Flag int // Some flag parsed from sql, such as FULL.
Full bool
User *auth.UserIdentity // Used for show grants.

// GlobalScope is used by show variables
GlobalScope bool
Expand Down
Loading

0 comments on commit 98d0068

Please sign in to comment.