Documentation ¶
Index ¶
- Constants
- func ExtractDate(date string) *time.Time
- func New(source string)
- type NodeAdapterBinToConst
- type NodeAnd
- type NodeBinOp
- type NodeConst
- type NodeEmpty
- type NodeEqual
- type NodeExpr
- type NodeGreater
- type NodeId
- func (n *NodeId) Assertion(lvalue string, rvalue string) bool
- func (n *NodeId) LeftValue() NodeExpr
- func (n *NodeId) Operator() uint8
- func (n *NodeId) RightValue() NodeExpr
- func (n *NodeId) SetLeftValue(e NodeExpr)
- func (n *NodeId) SetRightValue(e NodeExpr)
- func (n *NodeId) SetValue(value string)
- func (n *NodeId) Value() string
- type NodeIn
- type NodeLike
- type NodeLiteral
- func (n *NodeLiteral) Assertion(lvalue string, rvalue string) bool
- func (n *NodeLiteral) LeftValue() NodeExpr
- func (n *NodeLiteral) Operator() uint8
- func (n *NodeLiteral) RightValue() NodeExpr
- func (n *NodeLiteral) SetLeftValue(e NodeExpr)
- func (n *NodeLiteral) SetRightValue(e NodeExpr)
- func (n *NodeLiteral) SetValue(value string)
- func (n *NodeLiteral) Value() string
- type NodeMain
- type NodeNotEqual
- type NodeNumber
- func (n *NodeNumber) Assertion(lvalue string, rvalue string) bool
- func (n *NodeNumber) LeftValue() NodeExpr
- func (n *NodeNumber) Operator() uint8
- func (n *NodeNumber) RightValue() NodeExpr
- func (n *NodeNumber) SetLeftValue(e NodeExpr)
- func (n *NodeNumber) SetRightValue(e NodeExpr)
- func (n *NodeNumber) SetValue(value string)
- func (n *NodeNumber) Value() float64
- type NodeOr
- type NodeOrder
- type NodeProgram
- type NodeSelect
- type NodeSmaller
- type SyntaxError
Constants ¶
View Source
const Time_YMD = "2006-01-02"
View Source
const Time_YMDHIS = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func ExtractDate ¶
Types ¶
type NodeAdapterBinToConst ¶
type NodeAdapterBinToConst struct {
// contains filtered or unexported fields
}
type NodeAnd ¶
type NodeAnd struct {
// contains filtered or unexported fields
}
func (*NodeAnd) RightValue ¶
func (*NodeAnd) SetLeftValue ¶
func (*NodeAnd) SetRightValue ¶
type NodeEqual ¶
type NodeEqual struct {
// contains filtered or unexported fields
}
func (*NodeEqual) RightValue ¶
func (*NodeEqual) SetLeftValue ¶
func (*NodeEqual) SetRightValue ¶
type NodeGreater ¶
type NodeGreater struct { Equal bool // contains filtered or unexported fields }
func (*NodeGreater) Assertion ¶
func (n *NodeGreater) Assertion(lvalue string, rvalue string) bool
GREATER
func (*NodeGreater) LeftValue ¶
func (n *NodeGreater) LeftValue() NodeExpr
func (*NodeGreater) Operator ¶
func (n *NodeGreater) Operator() uint8
func (*NodeGreater) RightValue ¶
func (n *NodeGreater) RightValue() NodeExpr
func (*NodeGreater) SetLeftValue ¶
func (n *NodeGreater) SetLeftValue(e NodeExpr)
func (*NodeGreater) SetRightValue ¶
func (n *NodeGreater) SetRightValue(e NodeExpr)
type NodeId ¶
type NodeId struct {
// contains filtered or unexported fields
}
func (*NodeId) RightValue ¶
func (*NodeId) SetLeftValue ¶
func (*NodeId) SetRightValue ¶
type NodeIn ¶
type NodeIn struct { Not bool // contains filtered or unexported fields }
func (*NodeIn) RightValue ¶
func (*NodeIn) SetLeftValue ¶
func (*NodeIn) SetRightValue ¶
type NodeLike ¶
func (*NodeLike) RightValue ¶
func (*NodeLike) SetLeftValue ¶
func (*NodeLike) SetRightValue ¶
type NodeLiteral ¶
type NodeLiteral struct {
// contains filtered or unexported fields
}
func (*NodeLiteral) Assertion ¶
func (n *NodeLiteral) Assertion(lvalue string, rvalue string) bool
LITERAL
func (*NodeLiteral) LeftValue ¶
func (n *NodeLiteral) LeftValue() NodeExpr
func (*NodeLiteral) Operator ¶
func (n *NodeLiteral) Operator() uint8
func (*NodeLiteral) RightValue ¶
func (n *NodeLiteral) RightValue() NodeExpr
func (*NodeLiteral) SetLeftValue ¶
func (n *NodeLiteral) SetLeftValue(e NodeExpr)
func (*NodeLiteral) SetRightValue ¶
func (n *NodeLiteral) SetRightValue(e NodeExpr)
func (*NodeLiteral) SetValue ¶
func (n *NodeLiteral) SetValue(value string)
func (*NodeLiteral) Value ¶
func (n *NodeLiteral) Value() string
type NodeNotEqual ¶
type NodeNotEqual struct {
// contains filtered or unexported fields
}
func (*NodeNotEqual) Assertion ¶
func (n *NodeNotEqual) Assertion(lvalue string, rvalue string) bool
NOT EQUAL
func (*NodeNotEqual) LeftValue ¶
func (n *NodeNotEqual) LeftValue() NodeExpr
func (*NodeNotEqual) Operator ¶
func (n *NodeNotEqual) Operator() uint8
func (*NodeNotEqual) RightValue ¶
func (n *NodeNotEqual) RightValue() NodeExpr
func (*NodeNotEqual) SetLeftValue ¶
func (n *NodeNotEqual) SetLeftValue(e NodeExpr)
func (*NodeNotEqual) SetRightValue ¶
func (n *NodeNotEqual) SetRightValue(e NodeExpr)
type NodeNumber ¶
type NodeNumber struct {
// contains filtered or unexported fields
}
func (*NodeNumber) Assertion ¶
func (n *NodeNumber) Assertion(lvalue string, rvalue string) bool
NUMBER
func (*NodeNumber) LeftValue ¶
func (n *NodeNumber) LeftValue() NodeExpr
func (*NodeNumber) Operator ¶
func (n *NodeNumber) Operator() uint8
func (*NodeNumber) RightValue ¶
func (n *NodeNumber) RightValue() NodeExpr
func (*NodeNumber) SetLeftValue ¶
func (n *NodeNumber) SetLeftValue(e NodeExpr)
func (*NodeNumber) SetRightValue ¶
func (n *NodeNumber) SetRightValue(e NodeExpr)
func (*NodeNumber) SetValue ¶
func (n *NodeNumber) SetValue(value string)
func (*NodeNumber) Value ¶
func (n *NodeNumber) Value() float64
type NodeOr ¶
type NodeOr struct {
// contains filtered or unexported fields
}
func (*NodeOr) RightValue ¶
func (*NodeOr) SetLeftValue ¶
func (*NodeOr) SetRightValue ¶
type NodeProgram ¶
func AST ¶
func AST() (*NodeProgram, error)
type NodeSelect ¶
type NodeSelect struct { WildCard bool Count bool Fields []string Tables []string Where NodeExpr Order *NodeOrder Limit int }
func (*NodeSelect) Run ¶
func (s *NodeSelect) Run()
type NodeSmaller ¶
type NodeSmaller struct { Equal bool // contains filtered or unexported fields }
func (*NodeSmaller) Assertion ¶
func (n *NodeSmaller) Assertion(lvalue string, rvalue string) bool
SMALLER
func (*NodeSmaller) LeftValue ¶
func (n *NodeSmaller) LeftValue() NodeExpr
func (*NodeSmaller) Operator ¶
func (n *NodeSmaller) Operator() uint8
func (*NodeSmaller) RightValue ¶
func (n *NodeSmaller) RightValue() NodeExpr
func (*NodeSmaller) SetLeftValue ¶
func (n *NodeSmaller) SetLeftValue(e NodeExpr)
func (*NodeSmaller) SetRightValue ¶
func (n *NodeSmaller) SetRightValue(e NodeExpr)
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
Click to show internal directories.
Click to hide internal directories.