Documentation ¶
Overview ¶
Package stage1: The implication oracle cannot handle these features, remove them.
1. remove aggregate functions
2. remove window functions.
3. remove LEFT|RIGHT JOIN
4. remove Limit
Note that:
(1) The transformed sql may fail to execute.
(2) we only Support SELECT statement.
How to use: see Init, InitAndExec
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitResult ¶
func Init ¶
func Init(sql string) *InitResult
Init: for the input sql, remove aggregate function(and group by), window function, LEFT|RIGHT JOIN, Limit.
Note that:
(1) The transformed sql may fail to execute.
(2) we only Support SELECT statement.
func InitAndExec ¶
func InitAndExec(sql string, conn *connector.Connector) *InitResult
InitAndExec: Init + exec
type InitVisitor ¶
type InitVisitor struct { }
InitVisitor: Remove aggregate function(and group by), window function, LEFT|RIGHT JOIN, Limit.