parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParserNotInitialized = fmt.Errorf("parser not initialized")
)

Functions

This section is empty.

Types

type Parser

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

func New

func New() (*Parser, error)

func (*Parser) Astify

func (p *Parser) Astify(sql string, opts ...option.Option) (*internal.ASTResult, error)

func (*Parser) ColumnList

func (p *Parser) ColumnList(sql string, opts ...option.Option) ([]string, error)

func (*Parser) Parse

func (p *Parser) Parse(sql string, opts ...option.Option) (*internal.ParseResult, error)

func (*Parser) Sqlify

func (p *Parser) Sqlify(ast *internal.ASTResult, opts ...option.Option) (string, error)

func (*Parser) TableList

func (p *Parser) TableList(sql string, opts ...option.Option) ([]string, error)

func (*Parser) WhiteListCheck

func (p *Parser) WhiteListCheck(sql string, whiteList []string, opts ...option.Option) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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