generatedexpr

package
v7.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExpression

func ParseExpression(expr string) (node ast.ExprNode, err error)

ParseExpression parses an ExprNode from a string. When TiDB loads infoschema from TiKV, `GeneratedExprString` of `ColumnInfo` is a string field, so we need to parse it into ast.ExprNode. This function is for that.

func SimpleResolveName

func SimpleResolveName(node ast.ExprNode, tblInfo *model.TableInfo) (ast.ExprNode, error)

SimpleResolveName resolves all column names in the expression node.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL