parse

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(sql string) (*pganalyze.ParseResult, error)

Parse parses one or more SQL statements into the libpg_query parse tree.

Types

type Stmt

type Stmt struct {
	Index int
	Node  *pganalyze.Node // the inner statement node (RawStmt.Stmt)
}

Stmt is one parsed statement with its 0-based ordinal.

func Statements

func Statements(sql string) ([]Stmt, error)

Statements parses SQL and returns each top-level statement.

Jump to

Keyboard shortcuts

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