Versions in this module Expand all Collapse all v1 v1.38.1 Aug 2, 2022 v1.38.0 Jul 27, 2022 v1.37.0 Jun 30, 2022 v1.36.0 May 31, 2022 v1.35.2 May 31, 2022 v1.35.1 Apr 29, 2022 v1.35.0 Apr 27, 2022 v1.34.0 Apr 6, 2022 v1.33.1 Mar 9, 2022 v1.33.0 Mar 3, 2022 v1.32.0 Jan 10, 2022 v1.31.0 Jan 5, 2022 v1.30.0 Dec 21, 2021 Changes in this version + func ParseQuery(queryString string) ([]types.Node, []*types.Query, *types.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