Versions in this module Expand all Collapse all v1 v1.0.3 Jun 17, 2022 Changes in this version type SelectStatement + func (s *SelectStatement) ValidateDimensions(mapper FieldMapper) error v1.0.2 May 27, 2022 v1.0.1 Apr 22, 2022 v0 v0.10.3 Apr 8, 2022 v0.10.2 Mar 25, 2022 v0.10.1 Mar 15, 2022 Changes in this version + const DateFormat + const DateTimeFormat + const MaxTime + const MinTime + var ErrInvalidDuration = errors.New("invalid duration") + var ErrInvalidTime = errors.New("invalid timestamp string") + var Language = &ParseTree + func BinaryExprName(expr *BinaryExpr) string + func ConditionExpr(cond Expr, valuer Valuer) (Expr, TimeRange, error) + func ContainsVarRef(expr Expr) bool + func Eval(expr Expr, m map[string]interface{}) interface + func EvalBool(expr Expr, m map[string]interface{}) bool + func FieldDimensions(sources Sources, m FieldMapper) (fields map[string]DataType, dimensions map[string]struct{}, err error) + func FormatDuration(d time.Duration) string + func HasTimeExpr(expr Expr) bool + func IdentNeedsQuotes(ident string) bool + func IsRegexOp(t Token) bool + func IsSelector(expr Expr) bool + func IsSystemName(name string) bool + func ParseDuration(s string) (time.Duration, error) + func QuoteIdent(segments ...string) string + func QuoteString(s string) string + func Sanitize(query string) string + func ScanBareIdent(r io.RuneScanner) string + func ScanDelimited(r io.RuneScanner, start, end rune, escapes map[rune]rune, escapesPassThru bool) ([]byte, error) + func ScanString(r io.RuneScanner) (string, error) + func Walk(v Visitor, node Node) + func WalkFunc(node Node, fn func(Node)) + type AlterRetentionPolicyStatement struct + Database string + Default bool + Duration *time.Duration + Name string + Replication *int + ShardGroupDuration *time.Duration + func (s *AlterRetentionPolicyStatement) DefaultDatabase() string + func (s *AlterRetentionPolicyStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *AlterRetentionPolicyStatement) String() string + type BinaryExpr struct + LHS Expr + Op Token + RHS Expr + func (e *BinaryExpr) String() string + type BooleanLiteral struct + Val bool + func (l *BooleanLiteral) String() string + type BooleanValue bool + func (v BooleanValue) TokenType() Token + func (v BooleanValue) Value() string + type BoundParameter struct + Name string + func (bp *BoundParameter) String() string + type Call struct + Args []Expr + Name string + func (c *Call) String() string + type CallTypeMapper interface + CallType func(name string, args []DataType) (DataType, error) + type CallValuer interface + Call func(name string, args []interface{}) (interface{}, bool) + type CreateContinuousQueryStatement struct + Database string + Name string + ResampleEvery time.Duration + ResampleFor time.Duration + Source *SelectStatement + func (s *CreateContinuousQueryStatement) DefaultDatabase() string + func (s *CreateContinuousQueryStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *CreateContinuousQueryStatement) String() string + type CreateDatabaseStatement struct + Name string + RetentionPolicyCreate bool + RetentionPolicyDuration *time.Duration + RetentionPolicyName string + RetentionPolicyReplication *int + RetentionPolicyShardGroupDuration time.Duration + func (s *CreateDatabaseStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *CreateDatabaseStatement) String() string + type CreateRetentionPolicyStatement struct + Database string + Default bool + Duration time.Duration + Name string + Replication int + ShardGroupDuration time.Duration + func (s *CreateRetentionPolicyStatement) DefaultDatabase() string + func (s *CreateRetentionPolicyStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *CreateRetentionPolicyStatement) String() string + type CreateSubscriptionStatement struct + Database string + Destinations []string + Mode string + Name string + RetentionPolicy string + func (s *CreateSubscriptionStatement) DefaultDatabase() string + func (s *CreateSubscriptionStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *CreateSubscriptionStatement) String() string + type CreateUserStatement struct + Admin bool + Name string + Password string + func (s *CreateUserStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *CreateUserStatement) String() string + type DataType int + const AnyField + const Boolean + const Duration + const Float + const Integer + const String + const Tag + const Time + const Unknown + const Unsigned + func DataTypeFromString(s string) DataType + func EvalType(expr Expr, sources Sources, typmap TypeMapper) DataType + func InspectDataType(v interface{}) DataType + func (d DataType) LessThan(other DataType) bool + func (d DataType) String() string + func (d DataType) Zero() interface{} + type DeleteSeriesStatement struct + Condition Expr + Sources Sources + func (s *DeleteSeriesStatement) String() string + func (s DeleteSeriesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + type DeleteStatement struct + Condition Expr + Source Source + func (s *DeleteStatement) DefaultDatabase() string + func (s *DeleteStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DeleteStatement) String() string + type Dimension struct + Expr Expr + func (d *Dimension) String() string + type Dimensions []*Dimension + func (a Dimensions) Normalize() (time.Duration, []string) + func (a Dimensions) String() string + type Distinct struct + Val string + func (d *Distinct) NewCall() *Call + func (d *Distinct) String() string + type DropContinuousQueryStatement struct + Database string + Name string + func (s *DropContinuousQueryStatement) DefaultDatabase() string + func (s *DropContinuousQueryStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropContinuousQueryStatement) String() string + type DropDatabaseStatement struct + Name string + func (s *DropDatabaseStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropDatabaseStatement) String() string + type DropMeasurementStatement struct + Name string + func (s *DropMeasurementStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropMeasurementStatement) String() string + type DropRetentionPolicyStatement struct + Database string + Name string + func (s *DropRetentionPolicyStatement) DefaultDatabase() string + func (s *DropRetentionPolicyStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropRetentionPolicyStatement) String() string + type DropSeriesStatement struct + Condition Expr + Sources Sources + func (s *DropSeriesStatement) String() string + func (s DropSeriesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + type DropShardStatement struct + ID uint64 + func (s *DropShardStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropShardStatement) String() string + type DropSubscriptionStatement struct + Database string + Name string + RetentionPolicy string + func (s *DropSubscriptionStatement) DefaultDatabase() string + func (s *DropSubscriptionStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropSubscriptionStatement) String() string + type DropUserStatement struct + Name string + func (s *DropUserStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *DropUserStatement) String() string + type DurationLiteral struct + Val time.Duration + func (l *DurationLiteral) String() string + type DurationValue string + func (v DurationValue) TokenType() Token + func (v DurationValue) Value() string + type ErrorValue string + func (e ErrorValue) TokenType() Token + func (e ErrorValue) Value() string + type ExecutionPrivilege struct + Admin bool + Name string + Privilege Privilege + type ExecutionPrivileges []ExecutionPrivilege + type ExplainStatement struct + Analyze bool + Statement *SelectStatement + func (e *ExplainStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (e *ExplainStatement) String() string + type Expr interface + func CloneExpr(expr Expr) Expr + func MustParseExpr(s string) Expr + func ParseExpr(s string) (Expr, error) + func Reduce(expr Expr, valuer Valuer) Expr + func RewriteExpr(expr Expr, fn func(Expr) Expr) Expr + type Field struct + Alias string + Expr Expr + func (f *Field) Name() string + func (f *Field) String() string + type FieldMapper interface + FieldDimensions func(m *Measurement) (fields map[string]DataType, dimensions map[string]struct{}, err error) + type Fields []*Field + func (a Fields) AliasNames() []string + func (a Fields) Len() int + func (a Fields) Less(i, j int) bool + func (a Fields) Names() []string + func (a Fields) String() string + func (a Fields) Swap(i, j int) + type FillOption int + const LinearFill + const NoFill + const NullFill + const NumberFill + const PreviousFill + type GrantAdminStatement struct + User string + func (s *GrantAdminStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *GrantAdminStatement) String() string + type GrantStatement struct + On string + Privilege Privilege + User string + func (s *GrantStatement) DefaultDatabase() string + func (s *GrantStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *GrantStatement) String() string + type HasDefaultDatabase interface + DefaultDatabase func() string + type Identifier string + func (v Identifier) TokenType() Token + func (v Identifier) Value() string + type IntegerLiteral struct + Val int64 + func (l *IntegerLiteral) String() string + type IntegerValue int64 + func (v IntegerValue) TokenType() Token + func (v IntegerValue) Value() string + type KillQueryStatement struct + Host string + QueryID uint64 + func (s *KillQueryStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *KillQueryStatement) String() string + type ListLiteral struct + Vals []string + func (s *ListLiteral) String() string + type Literal interface + type MapValuer map[string]interface + func (m MapValuer) Value(key string) (interface{}, bool) + type Measurement struct + Database string + IsTarget bool + Name string + Regex *RegexLiteral + RetentionPolicy string + SystemIterator string + func (m *Measurement) Clone() *Measurement + func (m *Measurement) MarshalBinary() ([]byte, error) + func (m *Measurement) String() string + func (m *Measurement) UnmarshalBinary(buf []byte) error + type Measurements []*Measurement + func (a Measurements) String() string + type NilLiteral struct + func (l *NilLiteral) String() string + type Node interface + String func() string + func Rewrite(r Rewriter, node Node) Node + func RewriteFunc(node Node, fn func(Node) Node) Node + type NowValuer struct + Location *time.Location + Now time.Time + func (v *NowValuer) Call(name string, args []interface{}) (interface{}, bool) + func (v *NowValuer) Value(key string) (interface{}, bool) + func (v *NowValuer) Zone() *time.Location + type NumberLiteral struct + Val float64 + func (l *NumberLiteral) String() string + type NumberValue float64 + func (v NumberValue) TokenType() Token + func (v NumberValue) Value() string + type ParenExpr struct + Expr Expr + func (e *ParenExpr) String() string + type ParseError struct + Expected []string + Found string + Message string + Pos Pos + func (e *ParseError) Error() string + type ParseTree struct + Handlers map[Token]func(*Parser) (Statement, error) + Keys []string + Tokens map[Token]*ParseTree + func (t *ParseTree) Clone() *ParseTree + func (t *ParseTree) Group(tokens ...Token) *ParseTree + func (t *ParseTree) Handle(tok Token, fn func(*Parser) (Statement, error)) + func (t *ParseTree) Parse(p *Parser) (Statement, error) + func (t *ParseTree) With(fn func(*ParseTree)) + type Parser struct + func NewParser(r io.Reader) *Parser + func (p *Parser) ParseDuration() (time.Duration, error) + func (p *Parser) ParseExpr() (Expr, error) + func (p *Parser) ParseIdent() (string, error) + func (p *Parser) ParseIdentList() ([]string, error) + func (p *Parser) ParseInt(min, max int) (int, error) + func (p *Parser) ParseOptionalTokenAndInt(t Token) (int, error) + func (p *Parser) ParseQuery() (*Query, error) + func (p *Parser) ParseStatement() (Statement, error) + func (p *Parser) ParseUInt64() (uint64, error) + func (p *Parser) ParseVarRef() (*VarRef, error) + func (p *Parser) Scan() (tok Token, pos Pos, lit string) + func (p *Parser) ScanIgnoreWhitespace() (tok Token, pos Pos, lit string) + func (p *Parser) ScanRegex() (tok Token, pos Pos, lit string) + func (p *Parser) SetParams(params map[string]interface{}) + func (p *Parser) Unscan() + type Pos struct + Char int + Line int + type Privilege int + const AllPrivileges + const NoPrivileges + const ReadPrivilege + const WritePrivilege + func NewPrivilege(p Privilege) *Privilege + func (p Privilege) String() string + type Query struct + Statements Statements + func ParseQuery(s string) (*Query, error) + func (q *Query) String() string + type RegexLiteral struct + Val *regexp.Regexp + func CloneRegexLiteral(r *RegexLiteral) *RegexLiteral + func (r *RegexLiteral) String() string + type RegexValue string + func (v RegexValue) TokenType() Token + func (v RegexValue) Value() string + type RevokeAdminStatement struct + User string + func (s *RevokeAdminStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *RevokeAdminStatement) String() string + type RevokeStatement struct + On string + Privilege Privilege + User string + func (s *RevokeStatement) DefaultDatabase() string + func (s *RevokeStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *RevokeStatement) String() string + type Rewriter interface + Rewrite func(Node) Node + type Scanner struct + func NewScanner(r io.Reader) *Scanner + func (s *Scanner) Scan() (tok Token, pos Pos, lit string) + func (s *Scanner) ScanRegex() (tok Token, pos Pos, lit string) + type SelectStatement struct + Condition Expr + Dedupe bool + Dimensions Dimensions + EmitName string + Fields Fields + Fill FillOption + FillValue interface{} + IsRawQuery bool + Limit int + Location *time.Location + Offset int + OmitTime bool + SLimit int + SOffset int + SortFields SortFields + Sources Sources + StripName bool + Target *Target + TimeAlias string + func (s *SelectStatement) Clone() *SelectStatement + func (s *SelectStatement) ColumnNames() []string + func (s *SelectStatement) FieldExprByName(name string) (int, Expr) + func (s *SelectStatement) GroupByInterval() (time.Duration, error) + func (s *SelectStatement) GroupByOffset() (time.Duration, error) + func (s *SelectStatement) HasDimensionWildcard() bool + func (s *SelectStatement) HasFieldWildcard() (hasWildcard bool) + func (s *SelectStatement) HasWildcard() bool + func (s *SelectStatement) Reduce(valuer Valuer) *SelectStatement + func (s *SelectStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *SelectStatement) RewriteDistinct() + func (s *SelectStatement) RewriteFields(m FieldMapper) (*SelectStatement, error) + func (s *SelectStatement) RewriteRegexConditions() + func (s *SelectStatement) RewriteTimeFields() + func (s *SelectStatement) SetTimeRange(start, end time.Time) error + func (s *SelectStatement) String() string + func (s *SelectStatement) TimeAscending() bool + func (s *SelectStatement) TimeFieldName() string + type SetPasswordUserStatement struct + Name string + Password string + func (s *SetPasswordUserStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *SetPasswordUserStatement) String() string + type ShowContinuousQueriesStatement struct + func (s *ShowContinuousQueriesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowContinuousQueriesStatement) String() string + type ShowDatabasesStatement struct + func (s *ShowDatabasesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowDatabasesStatement) String() string + type ShowDiagnosticsStatement struct + Module string + func (s *ShowDiagnosticsStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowDiagnosticsStatement) String() string + type ShowFieldKeyCardinalityStatement struct + Condition Expr + Database string + Dimensions Dimensions + Exact bool + Limit int + Offset int + Sources Sources + func (s *ShowFieldKeyCardinalityStatement) DefaultDatabase() string + func (s *ShowFieldKeyCardinalityStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowFieldKeyCardinalityStatement) String() string + type ShowFieldKeysStatement struct + Database string + Limit int + Offset int + SortFields SortFields + Sources Sources + func (s *ShowFieldKeysStatement) DefaultDatabase() string + func (s *ShowFieldKeysStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowFieldKeysStatement) String() string + type ShowGrantsForUserStatement struct + Name string + func (s *ShowGrantsForUserStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowGrantsForUserStatement) String() string + type ShowMeasurementCardinalityStatement struct + Condition Expr + Database string + Dimensions Dimensions + Exact bool + Limit int + Offset int + Sources Sources + func (s *ShowMeasurementCardinalityStatement) DefaultDatabase() string + func (s *ShowMeasurementCardinalityStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowMeasurementCardinalityStatement) String() string + type ShowMeasurementsStatement struct + Condition Expr + Database string + Limit int + Offset int + RetentionPolicy string + SortFields SortFields + Source Source + WildcardDatabase bool + WildcardRetentionPolicy bool + func (s *ShowMeasurementsStatement) DefaultDatabase() string + func (s *ShowMeasurementsStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowMeasurementsStatement) String() string + type ShowQueriesStatement struct + func (s *ShowQueriesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowQueriesStatement) String() string + type ShowRetentionPoliciesStatement struct + Database string + func (s *ShowRetentionPoliciesStatement) DefaultDatabase() string + func (s *ShowRetentionPoliciesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowRetentionPoliciesStatement) String() string + type ShowSeriesCardinalityStatement struct + Condition Expr + Database string + Dimensions Dimensions + Exact bool + Limit int + Offset int + Sources Sources + func (s *ShowSeriesCardinalityStatement) DefaultDatabase() string + func (s *ShowSeriesCardinalityStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowSeriesCardinalityStatement) String() string + type ShowSeriesStatement struct + Condition Expr + Database string + Limit int + Offset int + SortFields SortFields + Sources Sources + func (s *ShowSeriesStatement) DefaultDatabase() string + func (s *ShowSeriesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowSeriesStatement) String() string + type ShowShardGroupsStatement struct + func (s *ShowShardGroupsStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowShardGroupsStatement) String() string + type ShowShardsStatement struct + func (s *ShowShardsStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowShardsStatement) String() string + type ShowStatsStatement struct + Module string + func (s *ShowStatsStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowStatsStatement) String() string + type ShowSubscriptionsStatement struct + func (s *ShowSubscriptionsStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowSubscriptionsStatement) String() string + type ShowTagKeyCardinalityStatement struct + Condition Expr + Database string + Dimensions Dimensions + Exact bool + Limit int + Offset int + Sources Sources + func (s *ShowTagKeyCardinalityStatement) DefaultDatabase() string + func (s *ShowTagKeyCardinalityStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowTagKeyCardinalityStatement) String() string + type ShowTagKeysStatement struct + Condition Expr + Database string + Limit int + Offset int + SLimit int + SOffset int + SortFields SortFields + Sources Sources + TagKeyExpr Expr + TagKeyOp Token + func (s *ShowTagKeysStatement) DefaultDatabase() string + func (s *ShowTagKeysStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowTagKeysStatement) String() string + type ShowTagValuesCardinalityStatement struct + Condition Expr + Database string + Dimensions Dimensions + Exact bool + Limit int + Offset int + Op Token + Sources Sources + TagKeyExpr Literal + func (s *ShowTagValuesCardinalityStatement) DefaultDatabase() string + func (s *ShowTagValuesCardinalityStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowTagValuesCardinalityStatement) String() string + type ShowTagValuesStatement struct + Condition Expr + Database string + Limit int + Offset int + Op Token + SortFields SortFields + Sources Sources + TagKeyExpr Literal + func (s *ShowTagValuesStatement) DefaultDatabase() string + func (s *ShowTagValuesStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowTagValuesStatement) String() string + type ShowUsersStatement struct + func (s *ShowUsersStatement) RequiredPrivileges() (ExecutionPrivileges, error) + func (s *ShowUsersStatement) String() string + type SortField struct + Ascending bool + Name string + func (field *SortField) String() string + type SortFields []*SortField + func (a SortFields) String() string + type Source interface + type Sources []Source + func (a *Sources) UnmarshalBinary(buf []byte) error + func (a Sources) MarshalBinary() ([]byte, error) + func (a Sources) Measurements() []*Measurement + func (a Sources) RequiredPrivileges() (ExecutionPrivileges, error) + func (a Sources) String() string + type Statement interface + RequiredPrivileges func() (ExecutionPrivileges, error) + func MustParseStatement(s string) Statement + func ParseStatement(s string) (Statement, error) + type Statements []Statement + func (a Statements) String() string + type StringLiteral struct + Val string + func (l *StringLiteral) IsTimeLiteral() bool + func (l *StringLiteral) String() string + func (l *StringLiteral) ToTimeLiteral(loc *time.Location) (*TimeLiteral, error) + type StringValue string + func (v StringValue) TokenType() Token + func (v StringValue) Value() string + type SubQuery struct + Statement *SelectStatement + func (s *SubQuery) String() string + type Target struct + Measurement *Measurement + func (t *Target) String() string + type TimeLiteral struct + Val time.Time + func (l *TimeLiteral) String() string + type TimeRange struct + Max time.Time + Min time.Time + func (t TimeRange) Intersect(other TimeRange) TimeRange + func (t TimeRange) IsZero() bool + func (t TimeRange) MaxTime() time.Time + func (t TimeRange) MaxTimeNano() int64 + func (t TimeRange) MinTime() time.Time + func (t TimeRange) MinTimeNano() int64 + type Token int + const ADD + const ALL + const ALTER + const ANALYZE + const AND + const ANY + const AS + const ASC + const BADESCAPE + const BADREGEX + const BADSTRING + const BEGIN + const BITWISE_AND + const BITWISE_OR + const BITWISE_XOR + const BOUNDPARAM + const BY + const CARDINALITY + const COLON + const COMMA + const COMMENT + const CONTINUOUS + const CREATE + const DATABASE + const DATABASES + const DEFAULT + const DELETE + const DESC + const DESTINATIONS + const DIAGNOSTICS + const DISTINCT + const DIV + const DOT + const DOUBLECOLON + const DROP + const DURATION + const DURATIONVAL + const END + const EOF + const EQ + const EQREGEX + const EVERY + const EXACT + const EXPLAIN + const FALSE + const FIELD + const FOR + const FROM + const GRANT + const GRANTS + const GROUP + const GROUPS + const GT + const GTE + const IDENT + const ILLEGAL + const IN + const INF + const INSERT + const INTEGER + const INTO + const KEY + const KEYS + const KILL + const LIMIT + const LPAREN + const LT + const LTE + const MEASUREMENT + const MEASUREMENTS + const MOD + const MUL + const NAME + const NEQ + const NEQREGEX + const NUMBER + const OFFSET + const ON + const OR + const ORDER + const PASSWORD + const POLICIES + const POLICY + const PRIVILEGES + const QUERIES + const QUERY + const READ + const REGEX + const REPLICATION + const RESAMPLE + const RETENTION + const REVOKE + const RPAREN + const SELECT + const SEMICOLON + const SERIES + const SET + const SHARD + const SHARDS + const SHOW + const SLIMIT + const SOFFSET + const STATS + const STRING + const SUB + const SUBSCRIPTION + const SUBSCRIPTIONS + const TAG + const TO + const TRUE + const USER + const USERS + const VALUES + const WHERE + const WITH + const WRITE + const WS + func Lookup(ident string) Token + func (tok Token) Precedence() int + func (tok Token) String() string + type TypeError struct + Expr Expr + Message string + func (e *TypeError) Error() string + type TypeMapper interface + MapType func(measurement *Measurement, field string) DataType + func MultiTypeMapper(mappers ...TypeMapper) TypeMapper + type TypeValuerEval struct + Sources Sources + TypeMapper TypeMapper + func (v *TypeValuerEval) EvalType(expr Expr) (DataType, error) + type UnsignedLiteral struct + Val uint64 + func (l *UnsignedLiteral) String() string + type Value interface + TokenType func() Token + Value func() string + func BindValue(v interface{}) Value + type Valuer interface + Value func(key string) (interface{}, bool) + func MultiValuer(valuers ...Valuer) Valuer + type ValuerEval struct + IntegerFloatDivision bool + Valuer Valuer + func (v *ValuerEval) Eval(expr Expr) interface{} + func (v *ValuerEval) EvalBool(expr Expr) bool + type VarRef struct + Type DataType + Val string + func ExprNames(expr Expr) []VarRef + func (r *VarRef) String() string + type VarRefs []VarRef + func (a VarRefs) Len() int + func (a VarRefs) Less(i, j int) bool + func (a VarRefs) Strings() []string + func (a VarRefs) Swap(i, j int) + type Visitor interface + Visit func(Node) Visitor + type Wildcard struct + Type Token + func (e *Wildcard) String() string + type ZoneValuer interface + Zone func() *time.Location