partiql

package
v0.0.0-...-86e9f11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package partiql implements a SQL-compatible (and somewhat PartiQL-compatible) query text parser.

Index

Constants

View Source
const AGGREGATE = 57397
View Source
const ALL = 57362
View Source
const AND = 57404
View Source
const APPEND = 57433
View Source
const APPROX_COUNT_DISTINCT = 57396
View Source
const AS = 57363
View Source
const ASC = 57368
View Source
const AT = 57371
View Source
const BETWEEN = 57406
View Source
const BOTH = 57376
View Source
const BY = 57354
View Source
const CASE = 57407
View Source
const CAST = 57381
View Source
const COALESCE = 57377
View Source
const CONCAT = 57432
View Source
const CROSS = 57391
View Source
const DATE_ADD = 57383
View Source
const DATE_BIN = 57384
View Source
const DATE_DIFF = 57385
View Source
const DATE_TRUNC = 57380
View Source
const DESC = 57369
View Source
const DISTINCT = 57361
View Source
const EARLIEST = 57386
View Source
const ELSE = 57410
View Source
const END = 57411
View Source
const EOF = 57347
View Source
const EQ = 57414
View Source
const ERROR = 57346
View Source
const ESCAPE = 57428
View Source
const EXISTS = 57364
View Source
const EXPLAIN = 57360
View Source
const EXTRACT = 57379
View Source
const FALSE = 57401
View Source
const FILTER = 57427
View Source
const FIRST = 57366
View Source
const FROM = 57350
View Source
const FULL = 57394
View Source
const GE = 57419
View Source
const GROUP = 57352
View Source
const GT = 57418
View Source
const HAVING = 57355
View Source
const ID = 57398
View Source
const ILIKE = 57422
View Source
const IN = 57424
View Source
const INNER = 57392
View Source
const INTO = 57359
View Source
const ION = 57436
View Source
const IS = 57425
View Source
const JOIN = 57388
View Source
const LAST = 57367
View Source
const LATEST = 57387
View Source
const LE = 57417
View Source
const LEADING = 57374
View Source
const LEFT = 57389
View Source
const LIKE = 57423
View Source
const LIMIT = 57356
View Source
const LT = 57416
View Source
const MISSING = 57402
View Source
const NE = 57415
View Source
const NEGATION_PRECEDENCE = 57434
View Source
const NOT = 57405
View Source
const NULL = 57399
View Source
const NULLIF = 57378
View Source
const NULLS = 57365
View Source
const NUMBER = 57435
View Source
const OFFSET = 57357
View Source
const ON = 57395
View Source
const OR = 57403
View Source
const ORDER = 57353
View Source
const OUTER = 57393
View Source
const OVER = 57426
View Source
const PARTITION = 57372
View Source
const REGEXP_MATCH_CI = 57421
View Source
const RIGHT = 57390
View Source
const SELECT = 57349
View Source
const SHIFT_LEFT_LOGICAL = 57429
View Source
const SHIFT_RIGHT_ARITHMETIC = 57430
View Source
const SHIFT_RIGHT_LOGICAL = 57431
View Source
const SIMILAR = 57420
View Source
const STRING = 57437
View Source
const THEN = 57409
View Source
const TO = 57412
View Source
const TRAILING = 57375
View Source
const TRIM = 57413
View Source
const TRUE = 57400
View Source
const UNION = 57348
View Source
const UNPIVOT = 57370
View Source
const UTCNOW = 57382
View Source
const VALUE = 57373
View Source
const WHEN = 57408
View Source
const WHERE = 57351
View Source
const WITH = 57358

Variables

This section is empty.

Functions

func Parse

func Parse(in []byte) (*expr.Query, error)

Parse parses a PartiQL Select-From-Where query and returns the result, or an error if one is encountered.

Types

type LexerError

type LexerError struct {
	Position int    // offset in the input string
	Line     int    // line
	Column   int    // column
	Length   int    // length of wrong substring (0 if unknown)
	Message  string // textual description of an error
}

LexerError describes a lexing error

func (*LexerError) Error

func (e *LexerError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL