ast

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(postgresStmt parser.Statement) (vitess.Statement, error)

Convert converts a Postgres AST into a Vitess AST.

Types

type PostgresParser added in v0.7.4

type PostgresParser struct{}

PostgresParser is a postgres syntax parser. This parser is used as parser in the engine for Doltgres.

func NewPostgresParser added in v0.7.4

func NewPostgresParser() *PostgresParser

NewPostgresParser creates new PostgresParser.

func (*PostgresParser) Parse added in v0.7.4

func (p *PostgresParser) Parse(_ *sql.Context, query string, multi bool) (vitess.Statement, string, string, error)

Parse implements sql.Parser interface.

func (*PostgresParser) ParseOneWithOptions added in v0.7.4

func (p *PostgresParser) ParseOneWithOptions(query string, _ vitess.ParserOptions) (vitess.Statement, int, error)

ParseOneWithOptions implements sql.Parser interface.

func (*PostgresParser) ParseSimple added in v0.7.4

func (p *PostgresParser) ParseSimple(query string) (vitess.Statement, error)

ParseSimple implements sql.Parser interface.

func (*PostgresParser) ParseWithOptions added in v0.7.4

func (p *PostgresParser) ParseWithOptions(query string, delimiter rune, _ bool, _ vitess.ParserOptions) (vitess.Statement, string, string, error)

ParseWithOptions implements sql.Parser interface.

Source Files

Jump to

Keyboard shortcuts

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