Versions in this module Expand all Collapse all v1 v1.12.0 Dec 18, 2020 v1.11.0 Dec 11, 2020 v1.10.0 Dec 3, 2020 v1.9.0 Nov 24, 2020 v1.8.0 Nov 12, 2020 v1.7.0 Nov 6, 2020 v1.6.0 Oct 14, 2020 v1.5.0 Sep 16, 2020 v1.4.0 Sep 3, 2020 v1.3.0 Aug 28, 2020 v1.2.0 Aug 21, 2020 v1.1.0 Aug 13, 2020 v1.0.0 Aug 7, 2020 v0 v0.1.1 Aug 12, 2019 Changes in this version + func ParseQuery(queryString string) ([]base.Node, []*base.Query, *base.QueryOptions, error) + 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) + type Orderby struct + ASC bool + Variable string + type ParseError struct + Expected []string + Found string + Message string + Pos Pos + type Parser struct + func NewParser(r io.Reader) *Parser + func (p *Parser) Parse() (*QueryTree, *ParseError) + func (p *Parser) Scan() (tok Token, pos Pos, lit string) + func (p *Parser) ScanIgnoreWhitespace() (tok Token, pos Pos, lit string) + func (p *Parser) Unscan() + type Pos struct + Char int + Line int + type Prologue struct + Base string + Prefix map[string]string + type QueryTree struct + L int + O *Orderby + P *Prologue + S *Select + W *Where + type Scanner struct + func NewScanner(r io.Reader) *Scanner + func (s *Scanner) Scan() (tok Token, pos Pos, lit string) + type Select struct + Distinct bool + Variable []string + type Token int + const AND + const ASC + const BADESCAPE + const BADSTRING + const BASE + const BY + const COMMA + const DESC + const DISTINCT + const DOT + const EOF + const EQ + const FALSE + const FILTER + const FROM + const GT + const HASH + const IDENT + const ILLEGAL + const IN + const LBRAC + const LIMIT + const LPAREN + const LT + const NUMBER + const OR + const ORDER + const PREFIX + const RBRAC + const RPAREN + const SELECT + const SEMICOLON + const STRING + const TRUE + const URI + const VARIABLE + const WHERE + const WS + func Lookup(ident string) Token + func (tok Token) Precedence() int + func (tok Token) String() string + type Triple struct + Objs []string + Pred string + Sub string + type Where struct + Triples []Triple