Versions in this module Expand all Collapse all v2 v2.0.1 Apr 22, 2026 v2.0.0 Apr 22, 2026 Changes in this version + const ADD + const AND + const AS + const ASC + const AUTO + const BY + const COLON + const COMMA + const COMMENT + const DESC + const DIV + const DOT + const DURATION + const Digits + const EOF + const EQ + const ERROR + const FALSE + const FILTER + const FLOAT + const FillFloat + const FillInt + const FillLinear + const FillNil + const FillPrevious + const FillStr + const GT + const GTE + const HexDigits + const ID + const IDENTIFIER + const IN + const INT + const LEFT_BRACE + const LEFT_BRACKET + const LEFT_PAREN + const LIMIT + const LINK + const LT + const LTE + const MATCH + const MOD + const MUL + const NAMESPACE + const NEQ + const NIL + const NOT_IN + const NOT_MATCH + const NULL + const NUMBER + const Nil + const OFFSET + const OR + const ORDER + const POINT + const POW + const QUOTED_STRING + const RE + const RIGHT_BRACE + const RIGHT_BRACKET + const RIGHT_PAREN + const SEMICOLON + const SLIMIT + const SOFFSET + const SPACE + const START_BINARY_EXPRESSION + const START_FUNC_EXPRESSION + const START_STMTS + const START_WHERE_CONDITION + const STRING + const SUB + const TIMEZONE + const TRUE + const WITH + var ItemTypeStr = map[ItemType]string + func Init() + type Anonymous struct + func (n *Anonymous) Pos() *PositionRange + func (n *Anonymous) String() string + type AttrExpr struct + Attr Node + Obj Node + func (n *AttrExpr) Pos() *PositionRange + func (n *AttrExpr) String() string + type BinaryExpr struct + LHS Node + Op ItemType + RHS Node + ReturnBool bool + func (e *BinaryExpr) DQLExpr() + func (e *BinaryExpr) Eval(data KVs) bool + func (e *BinaryExpr) Pos() *PositionRange + func (e *BinaryExpr) String() string + func (e *BinaryExpr) Type() ValueType + type BoolLiteral struct + Val bool + func (n *BoolLiteral) Pos() *PositionRange + func (n *BoolLiteral) String() string + type CascadeFunctions struct + Funcs []*FuncExpr + func (n *CascadeFunctions) Pos() *PositionRange + func (n *CascadeFunctions) String() string + type DFQuery struct + Anonymous bool + GroupBy *GroupBy + Helper *Helper + Highlight bool + Limit *Limit + Names []string + Namespace string + Offset *Offset + OrderBy *OrderBy + RegexNames []*Regex + SLimit *SLimit + SOffset *SOffset + SearchAfter *SearchAfter + Subquery *DFQuery + Targets []*Target + TimeZone *TimeZone + WhereCondition []Node + func (m *DFQuery) From() string + func (m *DFQuery) GroupByList() []string + func (m *DFQuery) IsAllTargets() bool + func (m *DFQuery) IsMatchTargetsNum(num int) bool + func (m *DFQuery) JSON() ([]byte, error) + func (m *DFQuery) Pos() *PositionRange + func (m *DFQuery) String() string + type DeleteFunc struct + DeleteIndex bool + DeleteMeasurement bool + Func *FuncExpr + StrDql string + func (d *DeleteFunc) Pos() *PositionRange + func (d *DeleteFunc) String() string + type ESTRes struct + AggsFromSize int + Alias map[string]string + ClassNames string + EndTime int64 + FLFuncCount int + HighlightFields []string + Show bool + ShowFields bool + SortFields []string + StartTime int64 + TimeField string + type Evaluable interface + Eval func(data KVs) bool + type Expr interface + DQLExpr func() + Type func() ValueType + type Fill struct + Boolean bool + FillType int + Float float64 + Int int64 + Str string + func (n *Fill) MarshalJSON() ([]byte, error) + func (n *Fill) Pos() *PositionRange + func (n *Fill) String() string + func (n *Fill) StringInfluxql() string + type FuncArg struct + ArgName string + ArgVal Node + func (n *FuncArg) Pos() *PositionRange + func (n *FuncArg) String() string + type FuncArgList []Node + func (n FuncArgList) Pos() *PositionRange + func (n FuncArgList) String() string + type FuncExpr struct + Name string + Param []Node + func (n *FuncExpr) Pos() *PositionRange + func (n *FuncExpr) SplitFill() (val Node, fill *Fill, err error) + func (n *FuncExpr) String() string + type GroupBy struct + List NodeList + func (n *GroupBy) ColumnList() []string + func (n *GroupBy) Pos() *PositionRange + func (n *GroupBy) String() string + type Helper struct + ESTResPtr *ESTRes + type Identifier struct + Name string + func (e *Identifier) DQLExpr() + func (e *Identifier) Pos() *PositionRange + func (e *Identifier) String() string + func (e *Identifier) Type() ValueType + type Item struct + Pos Pos + Typ ItemType + Val string + func (i *Item) PositionRange() *PositionRange + func (i Item) String() string + type ItemType int + func (i *ItemType) MarshalJSON() ([]byte, error) + func (i ItemType) IsKeyword() bool + func (i ItemType) IsOperator() bool + func (i ItemType) String() string + type KVs interface + Get func(k string) (v any, ok bool) + type Lexer struct + func Lex(input string) *Lexer + func (l *Lexer) NextItem(itemp *Item) + type Limit struct + Limit int64 + func (n *Limit) Pos() *PositionRange + func (n *Limit) String() string + type NilLiteral struct + func (n *NilLiteral) Pos() *PositionRange + func (n *NilLiteral) String() string + type Node interface + Pos func() *PositionRange + String func() string + type NodeList []Node + func (n NodeList) Pos() *PositionRange + func (n NodeList) String() string + type NumberLiteral struct + Float float64 + Int int64 + IsInt bool + func (e *NumberLiteral) DQLExpr() + func (e *NumberLiteral) IsPositiveInteger() bool + func (e *NumberLiteral) MarshalJSON() ([]byte, error) + func (e *NumberLiteral) Pos() *PositionRange + func (e *NumberLiteral) Reverse() + func (e *NumberLiteral) String() string + func (e *NumberLiteral) Type() ValueType + type Offset struct + Offset int64 + func (n *Offset) Pos() *PositionRange + func (n *Offset) String() string + type OrderBy struct + List NodeList + func (n *OrderBy) Pos() *PositionRange + func (n *OrderBy) String() string + type OrderByElem struct + Column string + Opt OrderType + func (n *OrderByElem) MarshalJSON() ([]byte, error) + func (n *OrderByElem) Pos() *PositionRange + func (n *OrderByElem) String() string + type OrderType int + const OrderAsc + const OrderDesc + type OuterFunc struct + Func *FuncExpr + FuncArgNames []string + FuncArgTypes []string + FuncArgVals []interface{} + func (ofuncs *OuterFunc) Pos() *PositionRange + func (ofuncs *OuterFunc) String() string + type OuterFuncs struct + Funcs []*OuterFunc + func (ofuncs *OuterFuncs) JSON() ([]byte, error) + func (ofuncs *OuterFuncs) Pos() *PositionRange + func (ofuncs *OuterFuncs) String() string + type ParenExpr struct + Param Node + func (*ParenExpr) DQLExpr() + func (*ParenExpr) Pos() *PositionRange + func (*ParenExpr) Type() ValueType + func (p *ParenExpr) Eval(data KVs) bool + func (p *ParenExpr) String() string + type ParseError struct + Err error + LineOffset int + Pos *PositionRange + Query string + func (e *ParseError) Error() string + type ParseErrors []ParseError + func (errs ParseErrors) Error() string + type Pos int + type PositionRange struct + End Pos + Start Pos + type Regex struct + Re *regexp.Regexp + Regex string + func (e *Regex) DQLExpr() + func (e *Regex) MarshalJSON() ([]byte, error) + func (e *Regex) Pos() *PositionRange + func (e *Regex) String() string + func (e *Regex) Type() ValueType + type SLimit struct + SLimit int64 + func (n *SLimit) Pos() *PositionRange + func (n *SLimit) String() string + type SOffset struct + SOffset int64 + func (n *SOffset) Pos() *PositionRange + func (n *SOffset) String() string + type SearchAfter struct + Vals []interface{} + func (sa *SearchAfter) Pos() *PositionRange + func (sa *SearchAfter) String() string + type Star struct + func (n *Star) MarshalJSON() ([]byte, error) + func (n *Star) Pos() *PositionRange + func (n *Star) String() string + type Statement interface + DQLStmt func() + type StaticCast struct + IsFloat bool + IsInt bool + Val *Identifier + func (e *StaticCast) DQLExpr() + func (e *StaticCast) MarshalJSON() ([]byte, error) + func (e *StaticCast) Pos() *PositionRange + func (e *StaticCast) String() string + func (e *StaticCast) Type() ValueType + type Stmts []Node + func (n Stmts) Pos() *PositionRange + func (n Stmts) String() string + type StringLiteral struct + Val string + func (e *StringLiteral) DQLExpr() + func (e *StringLiteral) Pos() *PositionRange + func (e *StringLiteral) String() string + func (e *StringLiteral) Type() ValueType + type Target struct + Alias string + Col Node + Fill *Fill + Talias string + func (n *Target) Pos() *PositionRange + func (n *Target) String() string + func (n *Target) String2() string + type TimeResolution struct + Auto bool + Duration time.Duration + PointNum *NumberLiteral + func (n *TimeResolution) Pos() *PositionRange + func (n *TimeResolution) String() string + type TimeZone struct + Input string + TimeZone string + func (n *TimeZone) Pos() *PositionRange + func (n *TimeZone) String() string + type Value interface + String func() string + Type func() ValueType + type ValueType string + type WhereCondition struct + func (x *WhereCondition) Eval(data KVs) bool + func (x *WhereCondition) Pos() *PositionRange + func (x *WhereCondition) String() string + type WhereConditions []Node + func GetConds(input string) (WhereConditions, error) + func (x WhereConditions) Eval(data KVs) int + func (x WhereConditions) Pos() *PositionRange + func (x WhereConditions) String() string Other modules containing this package github.com/GuanceCloud/cliutils