parser: github.com/pingcap/parser/opcode Index | Files

package opcode

import "github.com/pingcap/parser/opcode"

Index

Package Files

opcode.go

type Op Uses

type Op int

Op is opcode type.

const (
    LogicAnd Op  = iota + 1
    LeftShift
    RightShift
    LogicOr
    GE
    LE
    EQ
    NE
    LT
    GT
    Plus
    Minus
    And
    Or
    Mod
    Xor
    Div
    Mul
    Not
    BitNeg
    IntDiv
    LogicXor
    NullEQ
    In
    Like
    Case
    Regexp
    IsNull
    IsTruth
    IsFalsity
)

List operators.

func (Op) Format Uses

func (o Op) Format(w io.Writer)

Format the ExprNode into a Writer.

func (Op) IsKeyword Uses

func (o Op) IsKeyword() bool

IsKeyword returns whether the operator is a keyword.

func (Op) Restore Uses

func (o Op) Restore(ctx *format.RestoreCtx) error

Restore the Op into a Writer

func (Op) String Uses

func (o Op) String() string

String implements Stringer interface.

Package opcode imports 2 packages (graph) and is imported by 48 packages. Updated 2020-04-20. Refresh now. Tools for package owners.