コード例 #1
0
ファイル: schema_info.go プロジェクト: Eric-Chen/vitess
// GetStreamPlan is similar to GetPlan, but doesn't use the cache
// and doesn't enforce a limit. It also just returns the parsed query.
func (si *SchemaInfo) GetStreamPlan(sql string) *sqlparser.ParsedQuery {
	fullQuery, err := sqlparser.StreamExecParse(sql)
	if err != nil {
		panic(NewTabletError(FAIL, "%s", err))
	}
	return fullQuery
}
コード例 #2
0
ファイル: schema_info.go プロジェクト: qman1989/vitess
// GetStreamPlan is similar to GetPlan, but doesn't use the cache
// and doesn't enforce a limit. It also just returns the parsed query.
func (si *SchemaInfo) GetStreamPlan(sql string) *sqlparser.StreamExecPlan {
	plan, err := sqlparser.StreamExecParse(sql, si.sensitiveMode)
	if err != nil {
		panic(NewTabletError(FAIL, "%s", err))
	}
	return plan
}