parser

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package parser exposes a parser for plpgsql.

Index

Constants

View Source
const ABSOLUTE = 57365
View Source
const ALIAS = 57366
View Source
const ALL = 57367
View Source
const AND = 57368
View Source
const ARRAY = 57369
View Source
const ASSERT = 57370
View Source
const BACKWARD = 57371
View Source
const BCONST = 57351
View Source
const BEGIN = 57372
View Source
const BY = 57373
View Source
const CALL = 57374
View Source
const CASE = 57375
View Source
const CHAIN = 57376
View Source
const CLOSE = 57377
View Source
const COLLATE = 57378
View Source
const COLON_EQUALS = 57358
View Source
const COLUMN = 57379
View Source
const COLUMN_NAME = 57380
View Source
const COMMIT = 57381
View Source
const CONSTANT = 57382
View Source
const CONSTRAINT = 57383
View Source
const CONSTRAINT_NAME = 57384
View Source
const CONTINUE = 57385
View Source
const CURRENT = 57386
View Source
const CURSOR = 57387
View Source
const DATATYPE = 57388
View Source
const DEBUG = 57389
View Source
const DECLARE = 57390
View Source
const DEFAULT = 57391
View Source
const DETAIL = 57392
View Source
const DIAGNOSTICS = 57393
View Source
const DO = 57394
View Source
const DOT_DOT = 57357
View Source
const DUMP = 57395
View Source
const ELSE = 57396
View Source
const ELSIF = 57397
View Source
const END = 57398
View Source
const END_CASE = 57399
View Source
const END_IF = 57400
View Source
const EQUALS_GREATER = 57359
View Source
const ERRCODE = 57401
View Source
const ERROR = 57402
View Source
const EXCEPTION = 57403
View Source
const EXECUTE = 57404
View Source
const EXIT = 57405
View Source
const FCONST = 57348
View Source
const FETCH = 57406
View Source
const FIRST = 57407
View Source
const FOR = 57408
View Source
const FOREACH = 57409
View Source
const FORWARD = 57410
View Source
const FROM = 57411
View Source
const GET = 57412
View Source
const GREATER_EQUALS = 57361
View Source
const GREATER_GREATER = 57364
View Source
const HINT = 57413
View Source
const ICONST = 57354
View Source
const IDENT = 57346
View Source
const IF = 57414
View Source
const IMPORT = 57415
View Source
const IN = 57416
View Source
const INFO = 57417
View Source
const INSERT = 57418
View Source
const INTO = 57419
View Source
const IS = 57420
View Source
const LANGUAGE = 57421
View Source
const LAST = 57422
View Source
const LESS_EQUALS = 57360
View Source
const LESS_LESS = 57363
View Source
const LOG = 57423
View Source
const LOOP = 57424
View Source
const MERGE = 57425
View Source
const MESSAGE = 57426
View Source
const MESSAGE_TEXT = 57427
View Source
const MOVE = 57428
View Source
const NEXT = 57429
View Source
const NO = 57430
View Source
const NOT = 57432
View Source
const NOTICE = 57433
View Source
const NOT_EQUALS = 57362
View Source
const NO_SCROLL = 57431
View Source
const NULL = 57434
View Source
const OPEN = 57435
View Source
const OPTION = 57436
View Source
const OR = 57437
View Source
const Op = 57353
View Source
const PARAM = 57355
View Source
const PERFORM = 57438
View Source
const PG_CONTEXT = 57439
View Source
const PG_DATATYPE_NAME = 57440
View Source
const PG_EXCEPTION_CONTEXT = 57441
View Source
const PG_EXCEPTION_DETAIL = 57442
View Source
const PG_EXCEPTION_HINT = 57443
View Source
const PRINT_STRICT_PARAMS = 57444
View Source
const PRIOR = 57445
View Source
const QUERY = 57446
View Source
const RAISE = 57447
View Source
const RELATIVE = 57448
View Source
const RETURN = 57449
View Source
const RETURNED_SQLSTATE = 57452
View Source
const RETURN_NEXT = 57450
View Source
const RETURN_QUERY = 57451
View Source
const REVERSE = 57453
View Source
const ROLLBACK = 57454
View Source
const ROWTYPE = 57456
View Source
const ROW_COUNT = 57455
View Source
const SCHEMA = 57457
View Source
const SCHEMA_NAME = 57458
View Source
const SCONST = 57349
View Source
const SCROLL = 57459
View Source
const SLICE = 57460
View Source
const SQLSTATE = 57461
View Source
const STACKED = 57462
View Source
const STRICT = 57463
View Source
const TABLE = 57464
View Source
const TABLE_NAME = 57465
View Source
const THEN = 57466
View Source
const TO = 57467
View Source
const TYPE = 57468
View Source
const TYPECAST = 57356
View Source
const UIDENT = 57347
View Source
const UPSERT = 57469
View Source
const USCONST = 57350
View Source
const USE_COLUMN = 57470
View Source
const USE_VARIABLE = 57471
View Source
const USING = 57472
View Source
const VARIABLE_CONFLICT = 57473
View Source
const WARNING = 57474
View Source
const WHEN = 57475
View Source
const WHILE = 57476
View Source
const XCONST = 57352

Variables

This section is empty.

Functions

func Parse

func Parse(sql string) (statements.PLpgStatement, error)

Parse parses a sql statement string and returns a list of Statements.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser wraps a scanner, parser and other utilities present in the parser package.

func (*Parser) Parse

func (p *Parser) Parse(sql string) (statements.PLpgStatement, error)

Parse parses the sql and returns a list of statements.

Directories

Path Synopsis
Package lexbase contains utilities for lexing plpgsql.
Package lexbase contains utilities for lexing plpgsql.

Jump to

Keyboard shortcuts

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