Documentation
¶
Index ¶
- func GetTypesForBOperationExpr(opcode_ opcode.Op) (expression.LogicalOpType, expression.ComparisonType)
- func PrintParsedNodes(sqlStr *string)
- func ValueExprToValue(expr *driver.ValueExpr) *types.Value
- type AggFuncVisitor
- type AssignVisitor
- type BinaryOpExpression
- type BinaryOpVisitor
- type ChildDataVisitor
- type ColDefExpression
- type IndexDefExpression
- type JoinVisitor
- type OrderByExpression
- type PrintNodesVisitor
- type QueryInfo
- type QueryType
- type RootSQLVisitor
- type SelectFieldExpression
- type SelectFieldsVisitor
- type SetExpression
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTypesForBOperationExpr ¶
func GetTypesForBOperationExpr(opcode_ opcode.Op) (expression.LogicalOpType, expression.ComparisonType)
func PrintParsedNodes ¶ added in v0.0.2
func PrintParsedNodes(sqlStr *string)
for utity func on develop phase
Types ¶
type AggFuncVisitor ¶
type AssignVisitor ¶
type BinaryOpExpression ¶
type BinaryOpExpression struct {
LogicalOperationType_ expression.LogicalOpType
ComparisonOperationType_ expression.ComparisonType
Left_ interface{}
Right_ interface{}
}
type BinaryOpVisitor ¶
type BinaryOpVisitor struct {
QueryInfo_ *QueryInfo
BinaryOpExpression_ *BinaryOpExpression
}
type ChildDataVisitor ¶
type ChildDataVisitor struct {
ChildDatas_ []interface{}
}
type ColDefExpression ¶
type IndexDefExpression ¶
type JoinVisitor ¶
type JoinVisitor struct {
QueryInfo_ *QueryInfo
}
type OrderByExpression ¶
type PrintNodesVisitor ¶ added in v0.0.2
type PrintNodesVisitor struct {
}
func NewPrintNodesVisitor ¶ added in v0.0.2
func NewPrintNodesVisitor() *PrintNodesVisitor
type QueryInfo ¶
type QueryInfo struct {
QueryType_ *QueryType
SelectFields_ []*SelectFieldExpression // SELECT
SetExpressions_ []*SetExpression // UPDATE
NewTable_ *string // CREATE TABLE
ColDefExpressions_ []*ColDefExpression // CREATE TABLE
IndexDefExpressions_ []*IndexDefExpression // CREATE TABLE
TargetCols_ []*string // INSERT
Values_ []*types.Value // INSERT
OnExpressions_ *BinaryOpExpression // SELECT (with JOIN)
JoinTables_ []*string // SELECT
WhereExpression_ *BinaryOpExpression // SELECT, UPDATE, DELETE
LimitNum_ int32 // SELECT
OffsetNum_ int32 // SELECT
OrderByExpressions_ []*OrderByExpression // SELECT
}
func ProcessSQLStr ¶
type RootSQLVisitor ¶
type RootSQLVisitor struct {
QueryInfo_ *QueryInfo
}
func NewRootSQLVisitor ¶
func NewRootSQLVisitor() *RootSQLVisitor
type SelectFieldExpression ¶
type SelectFieldExpression struct {
IsAgg_ bool
AggType_ plans.AggregationType
TableName_ *string // if specified
ColName_ *string
}
type SelectFieldsVisitor ¶
type SelectFieldsVisitor struct {
QueryInfo_ *QueryInfo
}
type SetExpression ¶
Click to show internal directories.
Click to hide internal directories.