Documentation
¶
Index ¶
Constants ¶
View Source
const ( EID_NODE = iota VALUE_NODE LIST_NODE OTHER_NODE )
View Source
const (
MasterComment = "/*master*/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan struct {
//stmt sqlparser.Statement
Rule *router.Rule
Schema *schema.Schema
RouteTableIndexList []int
RouteNodeIndexList []int
RewrittenSqlList map[string][]string
FromSlave bool
KeyIndex int
Rows map[int]sqlparser.Values //insert 条件
Criteria sqlparser.SQLNode
}
func (*Plan) GetIRKeyIndex ¶
GetIRKeyIndex find shard key index in insert or replace SQL plan.Rule cols must not nil
func (*Plan) TIndexListToNIndexList ¶
Click to show internal directories.
Click to hide internal directories.