Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct{}

Parser extracts PostgreSQL declarations and relation access from SQL files. It uses PostgreSQL's parser, so dialect-specific syntax is interpreted with the same grammar as the database rather than with text matching.

func New

func New() *Parser

func (*Parser) Extensions

func (*Parser) Extensions() []string

func (*Parser) Language

func (*Parser) Language() string

func (*Parser) Name

func (*Parser) Name() string

func (*Parser) Parse

func (*Parser) Parse(ctx context.Context, input parserapi.Input) (graph.ParseResult, error)

func (*Parser) Probe

func (*Parser) Probe(ctx context.Context, input parserapi.Input) error

Jump to

Keyboard shortcuts

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