Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
soar
提交
3fd8c8a0
S
soar
项目概览
Xiaomi
/
soar
大约 1 年 前同步成功
通知
387
Star
8512
Fork
1328
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
soar
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3fd8c8a0
编写于
12月 04, 2018
作者:
martianzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
vendor daily update
上级
b76eaf45
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
6161 addition
and
5929 deletion
+6161
-5929
vendor/github.com/pingcap/parser/ast/ddl.go
vendor/github.com/pingcap/parser/ast/ddl.go
+25
-6
vendor/github.com/pingcap/parser/ast/functions.go
vendor/github.com/pingcap/parser/ast/functions.go
+4
-0
vendor/github.com/pingcap/parser/checkout-pr-branch.sh
vendor/github.com/pingcap/parser/checkout-pr-branch.sh
+24
-0
vendor/github.com/pingcap/parser/misc.go
vendor/github.com/pingcap/parser/misc.go
+3
-0
vendor/github.com/pingcap/parser/model/ddl.go
vendor/github.com/pingcap/parser/model/ddl.go
+2
-0
vendor/github.com/pingcap/parser/model/model.go
vendor/github.com/pingcap/parser/model/model.go
+81
-0
vendor/github.com/pingcap/parser/parser.go
vendor/github.com/pingcap/parser/parser.go
+5474
-5424
vendor/github.com/pingcap/parser/parser.y
vendor/github.com/pingcap/parser/parser.y
+34
-12
vendor/github.com/pingcap/tidb/types/parser_driver/value_expr.go
...github.com/pingcap/tidb/types/parser_driver/value_expr.go
+28
-2
vendor/vendor.json
vendor/vendor.json
+63
-63
vendor/vitess.io/vitess/go/vt/proto/query/query.pb.go
vendor/vitess.io/vitess/go/vt/proto/query/query.pb.go
+187
-187
vendor/vitess.io/vitess/go/vt/proto/topodata/topodata.pb.go
vendor/vitess.io/vitess/go/vt/proto/topodata/topodata.pb.go
+52
-52
vendor/vitess.io/vitess/go/vt/proto/vtgate/vtgate.pb.go
vendor/vitess.io/vitess/go/vt/proto/vtgate/vtgate.pb.go
+177
-177
vendor/vitess.io/vitess/go/vt/proto/vtrpc/vtrpc.pb.go
vendor/vitess.io/vitess/go/vt/proto/vtrpc/vtrpc.pb.go
+6
-6
vendor/vitess.io/vitess/go/vt/sqlparser/sql.go
vendor/vitess.io/vitess/go/vt/sqlparser/sql.go
+1
-0
未找到文件。
vendor/github.com/pingcap/parser/ast/ddl.go
浏览文件 @
3fd8c8a0
...
...
@@ -14,6 +14,7 @@
package
ast
import
(
"github.com/pingcap/parser/auth"
"github.com/pingcap/parser/model"
"github.com/pingcap/parser/types"
)
...
...
@@ -552,16 +553,34 @@ func (n *TableToTable) Accept(v Visitor) (Node, bool) {
type
CreateViewStmt
struct
{
ddlNode
OrReplace
bool
ViewName
*
TableName
Cols
[]
model
.
CIStr
Select
StmtNode
OrReplace
bool
ViewName
*
TableName
Cols
[]
model
.
CIStr
Select
StmtNode
Algorithm
model
.
ViewAlgorithm
Definer
*
auth
.
UserIdentity
Security
model
.
ViewSecurity
CheckOption
model
.
ViewCheckOption
}
// Accept implements Node Accept interface.
func
(
n
*
CreateViewStmt
)
Accept
(
v
Visitor
)
(
Node
,
bool
)
{
// TODO: implement the details.
return
n
,
true
newNode
,
skipChildren
:=
v
.
Enter
(
n
)
if
skipChildren
{
return
v
.
Leave
(
newNode
)
}
n
=
newNode
.
(
*
CreateViewStmt
)
node
,
ok
:=
n
.
ViewName
.
Accept
(
v
)
if
!
ok
{
return
n
,
false
}
n
.
ViewName
=
node
.
(
*
TableName
)
selnode
,
ok
:=
n
.
Select
.
Accept
(
v
)
if
!
ok
{
return
n
,
false
}
n
.
Select
=
selnode
.
(
*
SelectStmt
)
return
v
.
Leave
(
n
)
}
// CreateIndexStmt is a statement to create an index.
...
...
vendor/github.com/pingcap/parser/ast/functions.go
浏览文件 @
3fd8c8a0
...
...
@@ -484,6 +484,10 @@ const (
AggFuncBitXor
=
"bit_xor"
// AggFuncBitAnd is the name of bit_and function.
AggFuncBitAnd
=
"bit_and"
// AggFuncVarPop is the name of var_pop function
AggFuncVarPop
=
"var_pop"
// AggFuncVarSamp is the name of var_samp function
AggFuncVarSamp
=
"var_samp"
// AggFuncStddevPop is the name of stddev_pop function
AggFuncStddevPop
=
"stddev_pop"
// AggFuncStddevSamp is the name of stddev_samp function
...
...
vendor/github.com/pingcap/parser/checkout-pr-branch.sh
0 → 100755
浏览文件 @
3fd8c8a0
#!/bin/bash
# This script is used to checkout a Parser PR branch in a forked repo.
if
test
-z
$1
;
then
echo
-e
"Usage:
\n
"
echo
-e
"
\t
checkout-pr-branch.sh [github-username]:[pr-branch]
\n
"
echo
-e
"The argument can be copied directly from github PR page."
echo
-e
"The local branch name would be [github-username]/[pr-branch]."
exit
0
;
fi
username
=
$(
echo
$1
|
cut
-d
':'
-f1
)
branch
=
$(
echo
$1
|
cut
-d
':'
-f2
)
local_branch
=
$username
/
$branch
fork
=
"https://github.com/
$username
/parser"
exists
=
`
git show-ref refs/heads/
$local_branch
`
if
[
-n
"
$exists
"
]
;
then
git checkout
$local_branch
git pull
$fork
$branch
:
$local_branch
else
git fetch
$fork
$branch
:
$local_branch
git checkout
$local_branch
fi
vendor/github.com/pingcap/parser/misc.go
浏览文件 @
3fd8c8a0
...
...
@@ -516,6 +516,9 @@ var tokenMap = map[string]int{
"VARBINARY"
:
varbinaryType
,
"VARCHAR"
:
varcharType
,
"VARIABLES"
:
variables
,
"VARIANCE"
:
varPop
,
"VAR_POP"
:
varPop
,
"VAR_SAMP"
:
varSamp
,
"VIEW"
:
view
,
"VIRTUAL"
:
virtual
,
"WARNINGS"
:
warnings
,
...
...
vendor/github.com/pingcap/parser/model/ddl.go
浏览文件 @
3fd8c8a0
...
...
@@ -50,6 +50,7 @@ const (
ActionRenameIndex
ActionType
=
18
ActionAddTablePartition
ActionType
=
19
ActionDropTablePartition
ActionType
=
20
ActionCreateView
ActionType
=
21
)
// AddIndexStr is a string related to the operation of "add index".
...
...
@@ -76,6 +77,7 @@ var actionMap = map[ActionType]string{
ActionRenameIndex
:
"rename index"
,
ActionAddTablePartition
:
"add partition"
,
ActionDropTablePartition
:
"drop table partition"
,
ActionCreateView
:
"create view"
,
}
// String return current ddl action in string
...
...
vendor/github.com/pingcap/parser/model/model.go
浏览文件 @
3fd8c8a0
...
...
@@ -19,6 +19,7 @@ import (
"time"
"github.com/pingcap/errors"
"github.com/pingcap/parser/auth"
"github.com/pingcap/parser/mysql"
"github.com/pingcap/parser/types"
"github.com/pingcap/tipb/go-tipb"
...
...
@@ -169,6 +170,8 @@ type TableInfo struct {
Partition
*
PartitionInfo
`json:"partition"`
Compression
string
`json:"compression"`
View
*
ViewInfo
`json:"view"`
}
// GetPartitionInfo returns the partition information.
...
...
@@ -287,6 +290,84 @@ func (t *TableInfo) ColumnIsInIndex(c *ColumnInfo) bool {
return
false
}
// IsView checks if tableinfo is a view
func
(
t
*
TableInfo
)
IsView
()
bool
{
return
t
.
View
!=
nil
}
// ViewAlgorithm is VIEW's SQL AlGORITHM characteristic.
// See https://dev.mysql.com/doc/refman/5.7/en/view-algorithms.html
type
ViewAlgorithm
int
const
(
AlgorithmUndefined
ViewAlgorithm
=
iota
AlgorithmMerge
AlgorithmTemptable
)
func
(
v
*
ViewAlgorithm
)
String
()
string
{
switch
*
v
{
case
AlgorithmMerge
:
return
"MERGE"
case
AlgorithmTemptable
:
return
"TEMPTABLE"
case
AlgorithmUndefined
:
return
"UNDEFINED"
default
:
return
"UNDEFINED"
}
}
// ViewSecurity is VIEW's SQL SECURITY characteristic.
// See https://dev.mysql.com/doc/refman/5.7/en/create-view.html
type
ViewSecurity
int
const
(
SecurityDefiner
ViewSecurity
=
iota
SecurityInvoker
)
func
(
v
*
ViewSecurity
)
String
()
string
{
switch
*
v
{
case
SecurityInvoker
:
return
"INVOKER"
case
SecurityDefiner
:
return
"DEFINER"
default
:
return
"DEFINER"
}
}
// ViewCheckOption is VIEW's WITH CHECK OPTION clause part.
// See https://dev.mysql.com/doc/refman/5.7/en/view-check-option.html
type
ViewCheckOption
int
const
(
CheckOptionLocal
ViewCheckOption
=
iota
CheckOptionCascaded
)
func
(
v
*
ViewCheckOption
)
String
()
string
{
switch
*
v
{
case
CheckOptionLocal
:
return
"LOCAL"
case
CheckOptionCascaded
:
return
"CASCADED"
default
:
return
"CASCADED"
}
}
// ViewInfo provides meta data describing a DB view.
type
ViewInfo
struct
{
Algorithm
ViewAlgorithm
`json:"view_algorithm"`
Definer
*
auth
.
UserIdentity
`json:"view_definer"`
Security
ViewSecurity
`json:"view_security"`
SelectStmt
string
`json:"view_select"`
CheckOption
ViewCheckOption
`json:"view_checkoption"`
Cols
[]
CIStr
`json:"view_cols"`
}
// PartitionType is the type for PartitionInfo
type
PartitionType
int
...
...
vendor/github.com/pingcap/parser/parser.go
浏览文件 @
3fd8c8a0
此差异已折叠。
点击以展开。
vendor/github.com/pingcap/parser/parser.y
浏览文件 @
3fd8c8a0
...
...
@@ -462,6 +462,9 @@ import (
timestampDiff
"TIMESTAMPDIFF"
top
"TOP"
trim
"TRIM"
variance
"VARIANCE"
varPop
"VAR_POP"
varSamp
"VAR_SAMP"
/*
The
following
tokens
belong
to
TiDBKeyword
.
*/
admin
"ADMIN"
...
...
@@ -2132,15 +2135,25 @@ CreateViewStmt:
{
startOffset
:=
parser
.
startOffset
(&
yyS
[
yypt
-
1
])
selStmt
:=
$
10.
(*
ast
.
SelectStmt
)
selStmt
.
SetText
(
string
(
parser
.
src
[
startOffset
:]))
selStmt
.
SetText
(
string
s
.
TrimSpace
(
parser
.
src
[
startOffset
:]))
x
:=
&
ast
.
CreateViewStmt
{
OrReplace
:
$
2.
(
bool
),
ViewName
:
$
7.
(*
ast
.
TableName
),
Select
:
selStmt
,
Algorithm
:
$
3.
(
model
.
ViewAlgorithm
),
Definer
:
$
4.
(*
auth
.
UserIdentity
),
Security
:
$
5.
(
model
.
ViewSecurity
),
}
if
$
8
!= nil{
x
.
Cols
=
$
8.
([]
model
.
CIStr
)
}
if
$
11
!=nil {
x
.
CheckOption
=
$
11.
(
model
.
ViewCheckOption
)
endOffset
:=
parser
.
startOffset
(&
yyS
[
yypt
])
selStmt
.
SetText
(
strings
.
TrimSpace
(
parser
.
src
[
startOffset
:
endOffset
]))
}
else
{
x
.
CheckOption
=
model
.
CheckOptionCascaded
}
$$
=
x
}
...
...
@@ -2156,25 +2169,25 @@ OrReplace:
ViewAlgorithm
:
/*
EMPTY
*/
{
$$
=
"UNDEFINED"
$$
=
model
.
AlgorithmUndefined
}
|
"ALGORITHM"
"="
"UNDEFINED"
{
$$
=
strings
.
ToUpper
($
3
)
$$
=
model
.
AlgorithmUndefined
}
|
"ALGORITHM"
"="
"MERGE"
{
$$
=
strings
.
ToUpper
($
3
)
$$
=
model
.
AlgorithmMerge
}
|
"ALGORITHM"
"="
"TEMPTABLE"
{
$$
=
strings
.
ToUpper
($
3
)
$$
=
model
.
AlgorithmTemptable
}
ViewDefiner
:
/*
EMPTY
*/
{
$$
=
nil
$$
=
&
auth
.
UserIdentity
{
CurrentUser
:
true
}
}
|
"DEFINER"
"="
Username
{
...
...
@@ -2184,15 +2197,15 @@ ViewDefiner:
ViewSQLSecurity
:
/*
EMPTY
*/
{
$$
=
"DEFINER"
$$
=
model
.
SecurityDefiner
}
|
"SQL"
"SECURITY"
"DEFINER"
{
$$
=
$
3
$$
=
model
.
SecurityDefiner
}
|
"SQL"
"SECURITY"
"INVOKER"
{
$$
=
$
3
$$
=
model
.
SecurityInvoker
}
ViewName
:
...
...
@@ -2228,11 +2241,11 @@ ViewCheckOption:
}
|
"WITH"
"CASCADED"
"CHECK"
"OPTION"
{
$$
=
$
2
$$
=
model
.
CheckOptionCascaded
}
|
"WITH"
"LOCAL"
"CHECK"
"OPTION"
{
$$
=
$
2
$$
=
model
.
CheckOptionLocal
}
/******************************************************************
...
...
@@ -2973,7 +2986,8 @@ TiDBKeyword:
NotKeywordToken
:
"ADDDATE"
|
"BIT_AND"
|
"BIT_OR"
|
"BIT_XOR"
|
"CAST"
|
"COPY"
|
"COUNT"
|
"CURTIME"
|
"DATE_ADD"
|
"DATE_SUB"
|
"EXTRACT"
|
"GET_FORMAT"
|
"GROUP_CONCAT"
|
"INPLACE"
|
"INTERNAL"
|
"MIN"
|
"MAX"
|
"MAX_EXECUTION_TIME"
|
"NOW"
|
"RECENT"
|
"POSITION"
|
"SUBDATE"
|
"SUBSTRING"
|
"SUM"
|
"STD"
|
"STDDEV"
|
"STDDEV_POP"
|
"STDDEV_SAMP"
|
"INPLACE"
|
"INTERNAL"
|
"MIN"
|
"MAX"
|
"MAX_EXECUTION_TIME"
|
"NOW"
|
"RECENT"
|
"POSITION"
|
"SUBDATE"
|
"SUBSTRING"
|
"SUM"
|
"STD"
|
"STDDEV"
|
"STDDEV_POP"
|
"STDDEV_SAMP"
|
"VARIANCE"
|
"VAR_POP"
|
"VAR_SAMP"
|
"TIMESTAMPADD"
|
"TIMESTAMPDIFF"
|
"TOP"
|
"TRIM"
|
"NEXT_ROW_ID"
/************************************************************************************
...
...
@@ -4010,6 +4024,14 @@ SumExpr:
$$
=
&
ast
.
AggregateFuncExpr
{
F
:
$
1
,
Args
:
[]
ast
.
ExprNode
{$
4
},
Distinct
:
$
3.
(
bool
)}
}
}
|
builtinVarPop
'('
BuggyDefaultFalseDistinctOpt
Expression
')'
OptWindowingClause
{
$$
=
&
ast
.
AggregateFuncExpr
{
F
:
ast
.
AggFuncVarPop
,
Args
:
[]
ast
.
ExprNode
{$
4
},
Distinct
:
$
3.
(
bool
)}
}
|
builtinVarSamp
'('
BuggyDefaultFalseDistinctOpt
Expression
')'
OptWindowingClause
{
$$
=
&
ast
.
AggregateFuncExpr
{
F
:
$
1
,
Args
:
[]
ast
.
ExprNode
{$
4
},
Distinct
:
$
3.
(
bool
)}
}
OptGConcatSeparator
:
{
...
...
vendor/github.com/pingcap/tidb/types/parser_driver/value_expr.go
浏览文件 @
3fd8c8a0
...
...
@@ -17,7 +17,9 @@ import (
"fmt"
"io"
"strconv"
"strings"
"github.com/pingcap/errors"
"github.com/pingcap/parser/ast"
"github.com/pingcap/parser/mysql"
"github.com/pingcap/tidb/types"
...
...
@@ -67,13 +69,22 @@ type ValueExpr struct {
projectionOffset
int
}
// Restore implements Recoverable interface.
func
(
n
*
ValueExpr
)
Restore
(
sb
*
strings
.
Builder
)
error
{
err
:=
n
.
format
(
sb
)
if
err
!=
nil
{
return
errors
.
Trace
(
err
)
}
return
nil
}
// GetDatumString implements the ast.ValueExpr interface.
func
(
n
*
ValueExpr
)
GetDatumString
()
string
{
return
n
.
GetString
()
}
// Format the ExprNode into a Writer.
func
(
n
*
ValueExpr
)
Format
(
w
io
.
Writer
)
{
func
(
n
*
ValueExpr
)
format
(
w
io
.
Writer
)
error
{
var
s
string
switch
n
.
Kind
()
{
case
types
.
KindNull
:
...
...
@@ -105,9 +116,18 @@ func (n *ValueExpr) Format(w io.Writer) {
s
=
n
.
GetBinaryLiteral
()
.
ToBitLiteralString
(
true
)
}
default
:
panic
(
"C
an't format to string"
)
return
errors
.
New
(
"c
an't format to string"
)
}
fmt
.
Fprint
(
w
,
s
)
return
nil
}
// Format the ExprNode into a Writer.
func
(
n
*
ValueExpr
)
Format
(
w
io
.
Writer
)
{
err
:=
n
.
format
(
w
)
if
err
!=
nil
{
panic
(
"Can't format to string"
)
}
}
// newValueExpr creates a ValueExpr with value, and sets default field type.
...
...
@@ -150,6 +170,12 @@ type ParamMarkerExpr struct {
Order
int
}
// Restore implements Recoverable interface.
func
(
n
*
ParamMarkerExpr
)
Restore
(
sb
*
strings
.
Builder
)
error
{
sb
.
WriteString
(
"?"
)
return
nil
}
func
newParamMarkerExpr
(
offset
int
)
ast
.
ParamMarkerExpr
{
return
&
ParamMarkerExpr
{
Offset
:
offset
,
...
...
vendor/vendor.json
浏览文件 @
3fd8c8a0
...
...
@@ -105,106 +105,106 @@
"revisionTime"
:
"2018-10-24T15:10:47Z"
},
{
"checksumSHA1"
:
"
oFNBj222ad7LvyQ9TMUPienQZOI
="
,
"checksumSHA1"
:
"
jBf42FXXePd8z/qP4g5n1K0H2vQ
="
,
"path"
:
"github.com/pingcap/parser"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"
s7hZrsoenMYJ2An3wl4EbvJSZJY
="
,
"checksumSHA1"
:
"
xuDucshl6h8s/D6FVXIiWcgdu9I
="
,
"path"
:
"github.com/pingcap/parser/ast"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"skWGV4FNvD3vr+5olepaPPnylUw="
,
"path"
:
"github.com/pingcap/parser/auth"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"grkBf/zf8cTJRtI64P1jV6B+p/4="
,
"path"
:
"github.com/pingcap/parser/charset"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"SInoXbsRe0tnBwmatmtZYfSFbdk="
,
"path"
:
"github.com/pingcap/parser/format"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"
2bdcxM8NQIArMyIIf4Q8tsNzyuw
="
,
"checksumSHA1"
:
"
+rJd1MX+3A1gwbrFZHFWbC8l8ao
="
,
"path"
:
"github.com/pingcap/parser/model"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"QBa9yiMDQNl2cLLwqlRoNTpCPNg="
,
"path"
:
"github.com/pingcap/parser/mysql"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"oNBCSwJRykKuzIKgPCttatB9hAo="
,
"path"
:
"github.com/pingcap/parser/opcode"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"XvnUllvwMYd6HrMvMiKnn4cGN2M="
,
"path"
:
"github.com/pingcap/parser/terror"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"s96v2EoeGKcWHO3mpMOQk/z2iaI="
,
"path"
:
"github.com/pingcap/parser/types"
,
"revision"
:
"
a38036a60de70cf02a30eb0b5496537bffffb6d0
"
,
"revisionTime"
:
"2018-1
1-26T11:16:51
Z"
"revision"
:
"
83f31aa7980adf30ef67a744d599804c4ca67faa
"
,
"revisionTime"
:
"2018-1
2-04T02:04:44
Z"
},
{
"checksumSHA1"
:
"kO63T5plq+V7HWnkzB9WlOnp9Iw="
,
"path"
:
"github.com/pingcap/tidb/sessionctx/stmtctx"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"U/Wz15G+PgX5yjPBvxRpTywvvCw="
,
"path"
:
"github.com/pingcap/tidb/types"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"DWVD7+ygtT66IQ+cqXmMJ5OVqUk="
,
"path"
:
"github.com/pingcap/tidb/types/json"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"
78GI/0/9CTFg5FMZc1WcB9EcIp4
="
,
"checksumSHA1"
:
"
Zp5ME8OXNTmHnYTwJJUZlydN4/U
="
,
"path"
:
"github.com/pingcap/tidb/types/parser_driver"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"s709bhSrG2Ec35406mGtrySid4s="
,
"path"
:
"github.com/pingcap/tidb/util/execdetails"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"nUC7zVoAMNR2a+z2iGqHoN2AkFE="
,
"path"
:
"github.com/pingcap/tidb/util/hack"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"xSyepiuqsoaaeDch7cXeumvVHKM="
,
"path"
:
"github.com/pingcap/tidb/util/memory"
,
"revision"
:
"
36bcf5db4ab610aff7287081da04e2893760a45a
"
,
"revisionTime"
:
"2018-1
1-30T06:30:31
Z"
"revision"
:
"
8ddeeea939747e2d4634beb792d9d3281c49129d
"
,
"revisionTime"
:
"2018-1
2-03T15:37:39
Z"
},
{
"checksumSHA1"
:
"SmYeIK/fIYXNu8IKxD6HOVQVTuU="
,
...
...
@@ -401,62 +401,62 @@
{
"checksumSHA1"
:
"aKn1oKcY74N8TRLm3Ayt7Q4bbI4="
,
"path"
:
"vitess.io/vitess/go/bytes2"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"JVCEN4UGRmg3TofIBdzZMZ3G0Ww="
,
"path"
:
"vitess.io/vitess/go/hack"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"e1WJ7vCnVrlQQQlc6n/FewCDMso="
,
"path"
:
"vitess.io/vitess/go/sqltypes"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"ntFIQYkBS51G6y+FEkjFW40+HOU="
,
"path"
:
"vitess.io/vitess/go/vt/log"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"
XozR8bmeSR5KTe/nlUJkpJY2HKI
="
,
"checksumSHA1"
:
"
tPQFPwbMdjuX0qjNl4Zl8zc37JQ
="
,
"path"
:
"vitess.io/vitess/go/vt/proto/query"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"
OnWsUHLDKcO3spwH0jD55SvKD24
="
,
"checksumSHA1"
:
"
o0tR/c7lgr0pLkxk7CdvjiNDAKU
="
,
"path"
:
"vitess.io/vitess/go/vt/proto/topodata"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"
sBAuZ/itMR8U8qbK4yLHxkP6Cpc
="
,
"checksumSHA1"
:
"
77UojBqi0yyeQvR70j7C3kcKclQ
="
,
"path"
:
"vitess.io/vitess/go/vt/proto/vtgate"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"
pLWM+SPGZs3k+IhjktE/cGUlpM0
="
,
"checksumSHA1"
:
"
QpWGhoVDwM+8+sgYLI/YU+95iGU
="
,
"path"
:
"vitess.io/vitess/go/vt/proto/vtrpc"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"
2ZBC/pPjs13cocUf8PoMSvAO5u4
="
,
"checksumSHA1"
:
"
CZ0WbR7TBTgF9HoY+aRxzOzVlSs
="
,
"path"
:
"vitess.io/vitess/go/vt/sqlparser"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
},
{
"checksumSHA1"
:
"oF4XzuOzwvj1iduX/lYqNSyY/HM="
,
"path"
:
"vitess.io/vitess/go/vt/vterrors"
,
"revision"
:
"
2e2214a2660f9e52e6a1366470fc80849a9ef9ec
"
,
"revisionTime"
:
"2018-1
1-30T04:16:32
Z"
"revision"
:
"
63d2180c9442f64cec8f5cc6e5eb43947034e8ef
"
,
"revisionTime"
:
"2018-1
2-03T23:57:47
Z"
}
],
"rootPath"
:
"github.com/XiaoMi/soar"
...
...
vendor/vitess.io/vitess/go/vt/proto/query/query.pb.go
浏览文件 @
3fd8c8a0
此差异已折叠。
点击以展开。
vendor/vitess.io/vitess/go/vt/proto/topodata/topodata.pb.go
浏览文件 @
3fd8c8a0
...
...
@@ -171,10 +171,10 @@ func (m *KeyRange) GetEnd() []byte {
// TabletAlias is a globally unique tablet identifier.
type
TabletAlias
struct
{
// cell is the cell (or datacenter) the tablet is in
Cell
string
`protobuf:"bytes,1,opt,name=cell" json:"cell,omitempty"`
Cell
string
`protobuf:"bytes,1,opt,name=cell
,proto3
" json:"cell,omitempty"`
// uid is a unique id for this tablet within the shard
// (this is the MySQL server id as well).
Uid
uint32
`protobuf:"varint,2,opt,name=uid" json:"uid,omitempty"`
Uid
uint32
`protobuf:"varint,2,opt,name=uid
,proto3
" json:"uid,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -221,36 +221,36 @@ func (m *TabletAlias) GetUid() uint32 {
// Tablet represents information about a running instance of vttablet.
type
Tablet
struct
{
// alias is the unique name of the tablet.
Alias
*
TabletAlias
`protobuf:"bytes,1,opt,name=alias" json:"alias,omitempty"`
Alias
*
TabletAlias
`protobuf:"bytes,1,opt,name=alias
,proto3
" json:"alias,omitempty"`
// Fully qualified domain name of the host.
Hostname
string
`protobuf:"bytes,2,opt,name=hostname" json:"hostname,omitempty"`
Hostname
string
`protobuf:"bytes,2,opt,name=hostname
,proto3
" json:"hostname,omitempty"`
// Map of named ports. Normally this should include vt and grpc.
// Going forward, the mysql port will be stored in mysql_port
// instead of here.
// For accessing mysql port, use topoproto.MysqlPort to fetch, and
// topoproto.SetMysqlPort to set. These wrappers will ensure
// legacy behavior is supported.
PortMap
map
[
string
]
int32
`protobuf:"bytes,4,rep,name=port_map,json=portMap
" json:"port_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value
"`
PortMap
map
[
string
]
int32
`protobuf:"bytes,4,rep,name=port_map,json=portMap
,proto3" json:"port_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3
"`
// Keyspace name.
Keyspace
string
`protobuf:"bytes,5,opt,name=keyspace" json:"keyspace,omitempty"`
Keyspace
string
`protobuf:"bytes,5,opt,name=keyspace
,proto3
" json:"keyspace,omitempty"`
// Shard name. If range based sharding is used, it should match
// key_range.
Shard
string
`protobuf:"bytes,6,opt,name=shard" json:"shard,omitempty"`
Shard
string
`protobuf:"bytes,6,opt,name=shard
,proto3
" json:"shard,omitempty"`
// If range based sharding is used, range for the tablet's shard.
KeyRange
*
KeyRange
`protobuf:"bytes,7,opt,name=key_range,json=keyRange" json:"key_range,omitempty"`
KeyRange
*
KeyRange
`protobuf:"bytes,7,opt,name=key_range,json=keyRange
,proto3
" json:"key_range,omitempty"`
// type is the current type of the tablet.
Type
TabletType
`protobuf:"varint,8,opt,name=type,enum=topodata.TabletType" json:"type,omitempty"`
Type
TabletType
`protobuf:"varint,8,opt,name=type,
proto3,
enum=topodata.TabletType" json:"type,omitempty"`
// It this is set, it is used as the database name instead of the
// normal "vt_" + keyspace.
DbNameOverride
string
`protobuf:"bytes,9,opt,name=db_name_override,json=dbNameOverride" json:"db_name_override,omitempty"`
DbNameOverride
string
`protobuf:"bytes,9,opt,name=db_name_override,json=dbNameOverride
,proto3
" json:"db_name_override,omitempty"`
// tablet tags
Tags
map
[
string
]
string
`protobuf:"bytes,10,rep,name=tags
" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value
"`
Tags
map
[
string
]
string
`protobuf:"bytes,10,rep,name=tags
,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3
"`
// MySQL hostname.
MysqlHostname
string
`protobuf:"bytes,12,opt,name=mysql_hostname,json=mysqlHostname" json:"mysql_hostname,omitempty"`
MysqlHostname
string
`protobuf:"bytes,12,opt,name=mysql_hostname,json=mysqlHostname
,proto3
" json:"mysql_hostname,omitempty"`
// MySQL port. Use topoproto.MysqlPort and topoproto.SetMysqlPort
// to access this variable. The functions provide support
// for legacy behavior.
MysqlPort
int32
`protobuf:"varint,13,opt,name=mysql_port,json=mysqlPort" json:"mysql_port,omitempty"`
MysqlPort
int32
`protobuf:"varint,13,opt,name=mysql_port,json=mysqlPort
,proto3
" json:"mysql_port,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -364,27 +364,27 @@ type Shard struct {
// shard for reparenting operations (InitShardMaster,
// PlannedReparentShard,EmergencyReparentShard), to guarantee
// exclusive operation.
MasterAlias
*
TabletAlias
`protobuf:"bytes,1,opt,name=master_alias,json=masterAlias" json:"master_alias,omitempty"`
MasterAlias
*
TabletAlias
`protobuf:"bytes,1,opt,name=master_alias,json=masterAlias
,proto3
" json:"master_alias,omitempty"`
// key_range is the KeyRange for this shard. It can be unset if:
// - we are not using range-based sharding in this shard.
// - the shard covers the entire keyrange.
// This must match the shard name based on our other conventions, but
// helpful to have it decomposed here.
// Once set at creation time, it is never changed.
KeyRange
*
KeyRange
`protobuf:"bytes,2,opt,name=key_range,json=keyRange" json:"key_range,omitempty"`
KeyRange
*
KeyRange
`protobuf:"bytes,2,opt,name=key_range,json=keyRange
,proto3
" json:"key_range,omitempty"`
// served_types has at most one entry per TabletType
// The keyspace lock is always taken when changing this.
ServedTypes
[]
*
Shard_ServedType
`protobuf:"bytes,3,rep,name=served_types,json=servedTypes" json:"served_types,omitempty"`
ServedTypes
[]
*
Shard_ServedType
`protobuf:"bytes,3,rep,name=served_types,json=servedTypes
,proto3
" json:"served_types,omitempty"`
// SourceShards is the list of shards we're replicating from,
// using filtered replication.
// The keyspace lock is always taken when changing this.
SourceShards
[]
*
Shard_SourceShard
`protobuf:"bytes,4,rep,name=source_shards,json=sourceShards" json:"source_shards,omitempty"`
SourceShards
[]
*
Shard_SourceShard
`protobuf:"bytes,4,rep,name=source_shards,json=sourceShards
,proto3
" json:"source_shards,omitempty"`
// Cells is the list of cells that contain tablets for this shard.
// No lock is necessary to update this field.
Cells
[]
string
`protobuf:"bytes,5,rep,name=cells" json:"cells,omitempty"`
Cells
[]
string
`protobuf:"bytes,5,rep,name=cells
,proto3
" json:"cells,omitempty"`
// tablet_controls has at most one entry per TabletType.
// The keyspace lock is always taken when changing this.
TabletControls
[]
*
Shard_TabletControl
`protobuf:"bytes,6,rep,name=tablet_controls,json=tabletControls" json:"tablet_controls,omitempty"`
TabletControls
[]
*
Shard_TabletControl
`protobuf:"bytes,6,rep,name=tablet_controls,json=tabletControls
,proto3
" json:"tablet_controls,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -458,8 +458,8 @@ func (m *Shard) GetTabletControls() []*Shard_TabletControl {
// ServedType is an entry in the served_types
type
Shard_ServedType
struct
{
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,enum=topodata.TabletType" json:"tablet_type,omitempty"`
Cells
[]
string
`protobuf:"bytes,2,rep,name=cells" json:"cells,omitempty"`
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,
proto3,
enum=topodata.TabletType" json:"tablet_type,omitempty"`
Cells
[]
string
`protobuf:"bytes,2,rep,name=cells
,proto3
" json:"cells,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -508,15 +508,15 @@ func (m *Shard_ServedType) GetCells() []string {
// of that shard will run filtered replication.
type
Shard_SourceShard
struct
{
// Uid is the unique ID for this SourceShard object.
Uid
uint32
`protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"`
Uid
uint32
`protobuf:"varint,1,opt,name=uid
,proto3
" json:"uid,omitempty"`
// the source keyspace
Keyspace
string
`protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"`
Keyspace
string
`protobuf:"bytes,2,opt,name=keyspace
,proto3
" json:"keyspace,omitempty"`
// the source shard
Shard
string
`protobuf:"bytes,3,opt,name=shard" json:"shard,omitempty"`
Shard
string
`protobuf:"bytes,3,opt,name=shard
,proto3
" json:"shard,omitempty"`
// the source shard keyrange
KeyRange
*
KeyRange
`protobuf:"bytes,4,opt,name=key_range,json=keyRange" json:"key_range,omitempty"`
KeyRange
*
KeyRange
`protobuf:"bytes,4,opt,name=key_range,json=keyRange
,proto3
" json:"key_range,omitempty"`
// the source table list to replicate
Tables
[]
string
`protobuf:"bytes,5,rep,name=tables" json:"tables,omitempty"`
Tables
[]
string
`protobuf:"bytes,5,rep,name=tables
,proto3
" json:"tables,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -584,14 +584,14 @@ func (m *Shard_SourceShard) GetTables() []string {
// TabletControl controls tablet's behavior
type
Shard_TabletControl
struct
{
// which tablet type is affected
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,enum=topodata.TabletType" json:"tablet_type,omitempty"`
Cells
[]
string
`protobuf:"bytes,2,rep,name=cells" json:"cells,omitempty"`
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,
proto3,
enum=topodata.TabletType" json:"tablet_type,omitempty"`
Cells
[]
string
`protobuf:"bytes,2,rep,name=cells
,proto3
" json:"cells,omitempty"`
// what to do
DisableQueryService
bool
`protobuf:"varint,3,opt,name=disable_query_service,json=disableQueryService" json:"disable_query_service,omitempty"`
BlacklistedTables
[]
string
`protobuf:"bytes,4,rep,name=blacklisted_tables,json=blacklistedTables" json:"blacklisted_tables,omitempty"`
DisableQueryService
bool
`protobuf:"varint,3,opt,name=disable_query_service,json=disableQueryService
,proto3
" json:"disable_query_service,omitempty"`
BlacklistedTables
[]
string
`protobuf:"bytes,4,rep,name=blacklisted_tables,json=blacklistedTables
,proto3
" json:"blacklisted_tables,omitempty"`
// frozen is set if we've started failing over traffic for
// the master. If set, this record should not be removed.
Frozen
bool
`protobuf:"varint,5,opt,name=frozen" json:"frozen,omitempty"`
Frozen
bool
`protobuf:"varint,5,opt,name=frozen
,proto3
" json:"frozen,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -660,13 +660,13 @@ func (m *Shard_TabletControl) GetFrozen() bool {
type
Keyspace
struct
{
// name of the column used for sharding
// empty if the keyspace is not sharded
ShardingColumnName
string
`protobuf:"bytes,1,opt,name=sharding_column_name,json=shardingColumnName" json:"sharding_column_name,omitempty"`
ShardingColumnName
string
`protobuf:"bytes,1,opt,name=sharding_column_name,json=shardingColumnName
,proto3
" json:"sharding_column_name,omitempty"`
// type of the column used for sharding
// UNSET if the keyspace is not sharded
ShardingColumnType
KeyspaceIdType
`protobuf:"varint,2,opt,name=sharding_column_type,json=shardingColumnType,enum=topodata.KeyspaceIdType" json:"sharding_column_type,omitempty"`
ShardingColumnType
KeyspaceIdType
`protobuf:"varint,2,opt,name=sharding_column_type,json=shardingColumnType,
proto3,
enum=topodata.KeyspaceIdType" json:"sharding_column_type,omitempty"`
// ServedFrom will redirect the appropriate traffic to
// another keyspace.
ServedFroms
[]
*
Keyspace_ServedFrom
`protobuf:"bytes,4,rep,name=served_froms,json=servedFroms" json:"served_froms,omitempty"`
ServedFroms
[]
*
Keyspace_ServedFrom
`protobuf:"bytes,4,rep,name=served_froms,json=servedFroms
,proto3
" json:"served_froms,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -721,11 +721,11 @@ func (m *Keyspace) GetServedFroms() []*Keyspace_ServedFrom {
// keyspace name that's serving it.
type
Keyspace_ServedFrom
struct
{
// the tablet type (key for the map)
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,enum=topodata.TabletType" json:"tablet_type,omitempty"`
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,
proto3,
enum=topodata.TabletType" json:"tablet_type,omitempty"`
// the cells to limit this to
Cells
[]
string
`protobuf:"bytes,2,rep,name=cells" json:"cells,omitempty"`
Cells
[]
string
`protobuf:"bytes,2,rep,name=cells
,proto3
" json:"cells,omitempty"`
// the keyspace name that's serving it
Keyspace
string
`protobuf:"bytes,3,opt,name=keyspace" json:"keyspace,omitempty"`
Keyspace
string
`protobuf:"bytes,3,opt,name=keyspace
,proto3
" json:"keyspace,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -781,7 +781,7 @@ func (m *Keyspace_ServedFrom) GetKeyspace() string {
type
ShardReplication
struct
{
// Note there can be only one Node in this array
// for a given tablet.
Nodes
[]
*
ShardReplication_Node
`protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
Nodes
[]
*
ShardReplication_Node
`protobuf:"bytes,1,rep,name=nodes
,proto3
" json:"nodes,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -820,7 +820,7 @@ func (m *ShardReplication) GetNodes() []*ShardReplication_Node {
// Node describes a tablet instance within the cell
type
ShardReplication_Node
struct
{
TabletAlias
*
TabletAlias
`protobuf:"bytes,1,opt,name=tablet_alias,json=tabletAlias" json:"tablet_alias,omitempty"`
TabletAlias
*
TabletAlias
`protobuf:"bytes,1,opt,name=tablet_alias,json=tabletAlias
,proto3
" json:"tablet_alias,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -860,8 +860,8 @@ func (m *ShardReplication_Node) GetTabletAlias() *TabletAlias {
// ShardReference is used as a pointer from a SrvKeyspace to a Shard
type
ShardReference
struct
{
// Copied from Shard.
Name
string
`protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
KeyRange
*
KeyRange
`protobuf:"bytes,2,opt,name=key_range,json=keyRange" json:"key_range,omitempty"`
Name
string
`protobuf:"bytes,1,opt,name=name
,proto3
" json:"name,omitempty"`
KeyRange
*
KeyRange
`protobuf:"bytes,2,opt,name=key_range,json=keyRange
,proto3
" json:"key_range,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -908,11 +908,11 @@ func (m *ShardReference) GetKeyRange() *KeyRange {
// SrvKeyspace is a rollup node for the keyspace itself.
type
SrvKeyspace
struct
{
// The partitions this keyspace is serving, per tablet type.
Partitions
[]
*
SrvKeyspace_KeyspacePartition
`protobuf:"bytes,1,rep,name=partitions" json:"partitions,omitempty"`
Partitions
[]
*
SrvKeyspace_KeyspacePartition
`protobuf:"bytes,1,rep,name=partitions
,proto3
" json:"partitions,omitempty"`
// copied from Keyspace
ShardingColumnName
string
`protobuf:"bytes,2,opt,name=sharding_column_name,json=shardingColumnName" json:"sharding_column_name,omitempty"`
ShardingColumnType
KeyspaceIdType
`protobuf:"varint,3,opt,name=sharding_column_type,json=shardingColumnType,enum=topodata.KeyspaceIdType" json:"sharding_column_type,omitempty"`
ServedFrom
[]
*
SrvKeyspace_ServedFrom
`protobuf:"bytes,4,rep,name=served_from,json=servedFrom" json:"served_from,omitempty"`
ShardingColumnName
string
`protobuf:"bytes,2,opt,name=sharding_column_name,json=shardingColumnName
,proto3
" json:"sharding_column_name,omitempty"`
ShardingColumnType
KeyspaceIdType
`protobuf:"varint,3,opt,name=sharding_column_type,json=shardingColumnType,
proto3,
enum=topodata.KeyspaceIdType" json:"sharding_column_type,omitempty"`
ServedFrom
[]
*
SrvKeyspace_ServedFrom
`protobuf:"bytes,4,rep,name=served_from,json=servedFrom
,proto3
" json:"served_from,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -972,9 +972,9 @@ func (m *SrvKeyspace) GetServedFrom() []*SrvKeyspace_ServedFrom {
type
SrvKeyspace_KeyspacePartition
struct
{
// The type this partition applies to.
ServedType
TabletType
`protobuf:"varint,1,opt,name=served_type,json=servedType,enum=topodata.TabletType" json:"served_type,omitempty"`
ServedType
TabletType
`protobuf:"varint,1,opt,name=served_type,json=servedType,
proto3,
enum=topodata.TabletType" json:"served_type,omitempty"`
// List of non-overlapping continuous shards sorted by range.
ShardReferences
[]
*
ShardReference
`protobuf:"bytes,2,rep,name=shard_references,json=shardReferences" json:"shard_references,omitempty"`
ShardReferences
[]
*
ShardReference
`protobuf:"bytes,2,rep,name=shard_references,json=shardReferences
,proto3
" json:"shard_references,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -1022,9 +1022,9 @@ func (m *SrvKeyspace_KeyspacePartition) GetShardReferences() []*ShardReference {
// keyspace name that's serving it.
type
SrvKeyspace_ServedFrom
struct
{
// the tablet type
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,enum=topodata.TabletType" json:"tablet_type,omitempty"`
TabletType
TabletType
`protobuf:"varint,1,opt,name=tablet_type,json=tabletType,
proto3,
enum=topodata.TabletType" json:"tablet_type,omitempty"`
// the keyspace name that's serving it
Keyspace
string
`protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"`
Keyspace
string
`protobuf:"bytes,2,opt,name=keyspace
,proto3
" json:"keyspace,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -1076,13 +1076,13 @@ type CellInfo struct {
// The syntax of this field is topology implementation specific.
// For instance, for Zookeeper, it is a comma-separated list of
// server addresses.
ServerAddress
string
`protobuf:"bytes,1,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"`
ServerAddress
string
`protobuf:"bytes,1,opt,name=server_address,json=serverAddress
,proto3
" json:"server_address,omitempty"`
// Root is the path to store data in. It is only used when talking
// to server_address.
Root
string
`protobuf:"bytes,2,opt,name=root" json:"root,omitempty"`
Root
string
`protobuf:"bytes,2,opt,name=root
,proto3
" json:"root,omitempty"`
// Region is a group this cell belongs to. Used by vtgate to route traffic to
// other cells (in same region) when there is no available tablet in the current cell.
Region
string
`protobuf:"bytes,3,opt,name=region" json:"region,omitempty"`
Region
string
`protobuf:"bytes,3,opt,name=region
,proto3
" json:"region,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
vendor/vitess.io/vitess/go/vt/proto/vtgate/vtgate.pb.go
浏览文件 @
3fd8c8a0
此差异已折叠。
点击以展开。
vendor/vitess.io/vitess/go/vt/proto/vtrpc/vtrpc.pb.go
浏览文件 @
3fd8c8a0
...
...
@@ -293,15 +293,15 @@ type CallerID struct {
// came from an automated job or another system component.
// If the request comes directly from the Internet, or if the Vitess client
// takes action on its own accord, it is okay for this field to be absent.
Principal
string
`protobuf:"bytes,1,opt,name=principal" json:"principal,omitempty"`
Principal
string
`protobuf:"bytes,1,opt,name=principal
,proto3
" json:"principal,omitempty"`
// component describes the running process of the effective caller.
// It can for instance be the hostname:port of the servlet initiating the
// database call, or the container engine ID used by the servlet.
Component
string
`protobuf:"bytes,2,opt,name=component" json:"component,omitempty"`
Component
string
`protobuf:"bytes,2,opt,name=component
,proto3
" json:"component,omitempty"`
// subcomponent describes a component inisde the immediate caller which
// is responsible for generating is request. Suggested values are a
// servlet name or an API endpoint name.
Subcomponent
string
`protobuf:"bytes,3,opt,name=subcomponent" json:"subcomponent,omitempty"`
Subcomponent
string
`protobuf:"bytes,3,opt,name=subcomponent
,proto3
" json:"subcomponent,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -357,9 +357,9 @@ func (m *CallerID) GetSubcomponent() string {
// We use this so the clients don't have to parse the error messages,
// but instead can depend on the value of the code.
type
RPCError
struct
{
LegacyCode
LegacyErrorCode
`protobuf:"varint,1,opt,name=legacy_code,json=legacyCode,enum=vtrpc.LegacyErrorCode" json:"legacy_code,omitempty"`
Message
string
`protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
Code
Code
`protobuf:"varint,3,opt,name=code,enum=vtrpc.Code" json:"code,omitempty"`
LegacyCode
LegacyErrorCode
`protobuf:"varint,1,opt,name=legacy_code,json=legacyCode,
proto3,
enum=vtrpc.LegacyErrorCode" json:"legacy_code,omitempty"`
Message
string
`protobuf:"bytes,2,opt,name=message
,proto3
" json:"message,omitempty"`
Code
Code
`protobuf:"varint,3,opt,name=code,
proto3,
enum=vtrpc.Code" json:"code,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
vendor/vitess.io/vitess/go/vt/sqlparser/sql.go
浏览文件 @
3fd8c8a0
...
...
@@ -6,6 +6,7 @@ package sqlparser
import
__yyfmt__
"fmt"
//line sql.y:18
func
setParseTree
(
yylex
interface
{},
stmt
Statement
)
{
yylex
.
(
*
Tokenizer
)
.
ParseTree
=
stmt
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录