parser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: PostgreSQL Imports: 9 Imported by: 0

Documentation

Overview

Package parser parses SQL/JSON paths. It uses the same grammar as Postgres to support the same syntax and capabilities, with a few minor exceptions. The lexer use patterns borrowed PostgreSQL and from text/scanner.

Index

Constants

View Source
const ABS_P = 57375
View Source
const AND_P = 57359
View Source
const ANY_P = 57367
View Source
const BIGINT_P = 57383
View Source
const BOOLEAN_P = 57384
View Source
const CEILING_P = 57380
View Source
const DATETIME_P = 57382
View Source
const DATE_P = 57385
View Source
const DECIMAL_P = 57386
View Source
const DOUBLE_P = 57379
View Source
const EQUAL_P = 57363
View Source
const EXISTS_P = 57352
View Source
const FALSE_P = 57349
View Source
const FLAG_P = 57374
View Source
const FLOOR_P = 57378
View Source
const GREATEREQUAL_P = 57365
View Source
const GREATER_P = 57366
View Source
const IDENT_P = 57353
View Source
const INTEGER_P = 57387
View Source
const INT_P = 57356
View Source
const IS_P = 57350
View Source
const KEYVALUE_P = 57381
View Source
const LAST_P = 57370
View Source
const LAX_P = 57369
View Source
const LESSEQUAL_P = 57362
View Source
const LESS_P = 57361
View Source
const LIKE_REGEX_P = 57373
View Source
const NOTEQUAL_P = 57364
View Source
const NOT_P = 57360
View Source
const NULL_P = 57347
View Source
const NUMBER_P = 57388
View Source
const NUMERIC_P = 57355
View Source
const OR_P = 57358
View Source
const SIZE_P = 57376
View Source
const STARTS_P = 57371
View Source
const STRICT_P = 57368
View Source
const STRINGFUNC_P = 57389
View Source
const STRING_P = 57354
View Source
const TIMESTAMP_P = 57392
View Source
const TIMESTAMP_TZ_P = 57393
View Source
const TIME_P = 57390
View Source
const TIME_TZ_P = 57391
View Source
const TO_P = 57346
View Source
const TRUE_P = 57348
View Source
const TYPE_P = 57377
View Source
const UMINUS = 57394
View Source
const UNKNOWN_P = 57351
View Source
const VARIABLE_P = 57357
View Source
const WITH_P = 57372

Variables

View Source
var ErrParse = errors.New("parser")

ErrParse errors are returned by the parser.

Functions

func Parse

func Parse(path string) (*ast.AST, error)

Parse parses path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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