package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev
# Functions
DDLParse parses a DDL and produces a DDLPlan.
FormatImpossible is a callback function used by TrackedBuffer to generate a modified version of the query where all selects have impossible where clauses.
GenerateDeleteOuterQuery generates the outer query for deletes.
GenerateDeleteSubquery generates the subquery for deletes.
GenerateFieldQuery generates a query to just fetch the field info by adding impossible where clauses as needed.
GenerateFullQuery generates the full query from the ast.
GenerateInsertOuterQuery generates the outer query for inserts.
GenerateSelectLimitQuery generates a select query with a limit clause.
GenerateSubquery generates a subquery based on the input parameters.
GenerateUpdateOuterQuery generates the outer query for updates.
GenerateUpdateSubquery generates the subquery for updats.
GetExecPlan generates a ExecPlan given a sql query and a TableGetter.
GetStreamExecPlan generates a ExecPlan given a sql query and a TableGetter.
PlanByName find a PlanType by its string name.
# Constants
NumPlans stores the total number of plans.
PlanDDL is for DDL statements.
PlanDMLPK is an update or delete with an equality where clause(s) on primary key(s).
PlanDMLSubquery is an update or delete with a subselect statement.
PlanInsertPK is insert statement where the PK value is supplied with the query.
PlanInsertSubquery is same as PlanDMLSubquery but for inserts.
PlanNextval is for NEXTVAL.
PlanOther is for SHOW, DESCRIBE & EXPLAIN statements.
PlanPassDML is pass through update & delete statements.
PlanPassSelect is pass through select statements.
PlanSelectLock is for a select that locks.
PlanSelectStream is used for streaming queries.
PlanSet is for SET statements.
PlanUpsertPK is for insert ..
Reason codes give a hint about why a certain plan was chosen.
Reason codes give a hint about why a certain plan was chosen.
Reason codes give a hint about why a certain plan was chosen.
Reason codes give a hint about why a certain plan was chosen.
Reason codes give a hint about why a certain plan was chosen.
Reason codes give a hint about why a certain plan was chosen.
# Variables
ErrTooComplex indicates given sql query is too complex.
# Type aliases
PlanType indicates a query plan type.
ReasonType indicates why a query plan fails to build.
TableGetter returns a schema.Table given the table name.