package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

Build builds a plan based on the schema.
BuildMessageStreaming builds a plan for message streaming.
BuildPermissions builds the list of required permissions for all the tables referenced in a query.
BuildStreaming builds a streaming plan based on the schema.
DDLParse parses a DDL and produces a DDLPlan.
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.
GenerateLimitQuery 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 updates.
PlanByName find a PlanType by its string name.

# Constants

NumPlans stores the total number of plans.
Reason codes give a hint about why a certain plan was chosen.
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.
PlanInsertMessage is for inserting into message tables.
PlanInsertPK is insert statement where the PK value is supplied with the query.
PlanInsertSubquery is same as PlanDMLSubquery but for inserts.
PlanMessageStream is used for streaming messages.
PlanNextval is for NEXTVAL.
PlanOtherAdmin is for REPAIR, OPTIMIZE and TRUNCATE statements.
PlanOtherRead 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.
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.
PassthroughDMLs will return PlanPassDML for all update or delete statements.

# Structs

DDLPlan provides a plan for DDLs.
Permission associates the required access permission for each table.
Plan is built for selects and DMLs.

# Type aliases

PlanType indicates a query plan type.
ReasonType indicates why a query plan fails to build.