Documentation ¶
Index ¶
- func UnwrapFromSingleQuotes(inStr string) string
- func WrapInSingleQuotes(inStr string) string
- type ParamMarkerExpr
- type ValueExpr
- func (n *ValueExpr) Accept(v ast.Visitor) (ast.Node, bool)
- func (n *ValueExpr) Format(w io.Writer)
- func (n *ValueExpr) GetDatumString() string
- func (n *ValueExpr) GetProjectionOffset() int
- func (n *ValueExpr) Restore(ctx *format.RestoreCtx) error
- func (n *ValueExpr) SetProjectionOffset(offset int)
- func (n *ValueExpr) SetValue(res interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnwrapFromSingleQuotes ¶
UnwrapFromSingleQuotes the reverse of WrapInSingleQuotes but also allows non single quoted strings
func WrapInSingleQuotes ¶
WrapInSingleQuotes escapes single quotes and backslashs and adds single quotes arond the string
Types ¶
type ParamMarkerExpr ¶
ParamMarkerExpr expression holds a place for another expression. Used in parsing prepare statement.
func (*ParamMarkerExpr) Format ¶
func (*ParamMarkerExpr) Format(_ io.Writer)
Format the ExprNode into a Writer.
func (*ParamMarkerExpr) Restore ¶
func (*ParamMarkerExpr) Restore(ctx *format.RestoreCtx) error
Restore implements Node interface.
func (*ParamMarkerExpr) SetOrder ¶
func (n *ParamMarkerExpr) SetOrder(order int)
SetOrder implements the ast.ParamMarkerExpr interface.
type ValueExpr ¶
ValueExpr is the simple value expression.
func (*ValueExpr) GetDatumString ¶
GetDatumString implements the ast.ValueExpr interface.
func (*ValueExpr) GetProjectionOffset ¶
GetProjectionOffset returns ValueExpr.projectionOffset.
func (*ValueExpr) Restore ¶
func (n *ValueExpr) Restore(ctx *format.RestoreCtx) error
Restore implements Node interface.
func (*ValueExpr) SetProjectionOffset ¶
SetProjectionOffset sets ValueExpr.projectionOffset for logical plan builder.