package
0.14.7
Repository: https://github.com/gabereiser/go-mysql-server.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
FixFieldIndexes transforms the given expression by correcting the indexes of columns in GetField expressions, according to the schema given.
FixFieldIndexesForExpressions transforms the expressions in the Node given, fixing the field indexes.
No description provided by the author
FixFieldIndexesForTableNode transforms the expressions in the Node given, fixing the field indexes.
FixFieldIndexesOnExpressions executes FixFieldIndexes on a list of exprs.
GetTransactionDatabase returns the name of the database that should be considered current for the transaction about to begin.
NewBuilder creates a new Builder from a specific catalog.
NewCatalog returns a new empty Catalog with the given provider.
TODO: kill this.
NewDefault creates a default Analyzer instance with all default Rules and configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewProcedureCache returns a *ProcedureCache.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StripPassthroughNodes strips all top-level passthrough nodes meant to apply only to top-level queries (query tracking, transaction logic, etc) from the node tree given and return the first non-passthrough child element.

# Constants

addAutocommitNode.
No description provided by the author
trackProcess.

# Variables

DefaultRules to apply when analyzing nodes.
DefaultValidationRules to apply while analyzing nodes.
No description provided by the author
ErrAggregationUnsupported is returned when the analyzer has failed to push down an Aggregation in an expression to a GroupBy node.
ErrCaseResultType is returned when one or more of the types of the values in a case expression don't match.
ErrExplodeInvalidUse is returned when an EXPLODE function is used outside a Project node.
ErrFieldMissing is returned when the field is not on the schema.
ErrInAnalysis is thrown for generic analyzer errors.
ErrIntervalInvalidUse is returned when an interval expression is not correctly used.
ErrInvalidNodeType is thrown when the analyzer can't handle a particular kind of node type.
ErrMaxAnalysisIters is thrown when the analysis iterations are exceeded.
ErrOrderByColumnIndex is returned when in an order clause there is a column that is unknown.
ErrReadOnlyDatabase is returned when a write is attempted to a ReadOnlyDatabse.
ErrSubqueryFieldIndex is returned when an expression subquery references a field outside the range of the rows it works on.
ErrUnionSchemasDifferentLength is returned when the two sides of a UNION do not have the same number of columns in their schemas.
ErrUnionSchemasMatch is returned when both sides of a UNION do not have the same schema.
ErrUnknownIndexColumns is returned when there are columns in the expr to index that are unknown in the table.
ErrValidationGroupBy is returned when the aggregation expression does not appear in the grouping columns.
ErrValidationOrderBy is returned when the order by contains aggregation expressions.
ErrValidationResolved is returned when the plan can not be resolved.
ErrValidationSchemaSource is returned when there is any column source that does not match the table name.
No description provided by the author
OnceAfterAll contains the rules to be applied just once after all other rules have been applied.
OnceAfterDefault contains the rules to be applied just once after the DefaultRules.
OnceBeforeDefault contains the rules to be applied just once before the DefaultRules.
ParallelQueryCounter describes a metric that accumulates number of parallel queries monotonically.
No description provided by the author
No description provided by the author

# Structs

Analyzer analyzes nodes of the execution plan and applies rules and validations to them.
Batch executes a set of rules a specific number of times.
Builder provides an easy way to generate Analyzer with custom rules and options.
No description provided by the author
No description provided by the author
No description provided by the author
Memo collects a forest of query plans structured by logical and physical equivalency.
ProcedureCache contains all non-built-in stored procedures for each database.
No description provided by the author
Rule to transform nodes.
Scope of the analysis being performed, used when analyzing subqueries to give such analysis access to outer scope.

# Interfaces

Carder types can estimate the cardinality (row count) of relational expressions.
Coster types can estimate the CPU and memory cost of physical execution operators.
No description provided by the author
RoutineTable is a Table that depends on a procedures and functions.

# Type aliases

BatchSelector filters analysis batches by name.
No description provided by the author
RuleFunc is the function to be applied in a rule.
No description provided by the author
RuleSelector filters analysis rules by id.
No description provided by the author
No description provided by the author