tidb: github.com/pingcap/tidb/types/parser_driver Index | Files

package driver

import "github.com/pingcap/tidb/types/parser_driver"

Index

Package Files

value_expr.go

type ParamMarkerExpr Uses

type ParamMarkerExpr struct {
    ValueExpr
    Offset    int
    Order     int
    InExecute bool
}

ParamMarkerExpr expression holds a place for another expression. Used in parsing prepare statement.

func (*ParamMarkerExpr) Accept Uses

func (n *ParamMarkerExpr) Accept(v ast.Visitor) (ast.Node, bool)

Accept implements Node Accept interface.

func (*ParamMarkerExpr) Format Uses

func (n *ParamMarkerExpr) Format(w io.Writer)

Format the ExprNode into a Writer.

func (*ParamMarkerExpr) Restore Uses

func (n *ParamMarkerExpr) Restore(ctx *format.RestoreCtx) error

Restore implements Node interface.

func (*ParamMarkerExpr) SetOrder Uses

func (n *ParamMarkerExpr) SetOrder(order int)

SetOrder implements the ast.ParamMarkerExpr interface.

type ValueExpr Uses

type ValueExpr struct {
    ast.TexprNode
    types.Datum
    // contains filtered or unexported fields
}

ValueExpr is the simple value expression.

func (*ValueExpr) Accept Uses

func (n *ValueExpr) Accept(v ast.Visitor) (ast.Node, bool)

Accept implements Node interface.

func (*ValueExpr) Format Uses

func (n *ValueExpr) Format(w io.Writer)

Format the ExprNode into a Writer.

func (*ValueExpr) GetDatumString Uses

func (n *ValueExpr) GetDatumString() string

GetDatumString implements the ast.ValueExpr interface.

func (*ValueExpr) GetProjectionOffset Uses

func (n *ValueExpr) GetProjectionOffset() int

GetProjectionOffset returns ValueExpr.projectionOffset.

func (*ValueExpr) Restore Uses

func (n *ValueExpr) Restore(ctx *format.RestoreCtx) error

Restore implements Node interface.

func (*ValueExpr) SetProjectionOffset Uses

func (n *ValueExpr) SetProjectionOffset(offset int)

SetProjectionOffset sets ValueExpr.projectionOffset for logical plan builder.

Package driver imports 9 packages (graph) and is imported by 25 packages. Updated 2019-04-03. Refresh now. Tools for package owners.