ast

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 27 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 Context added in v0.14.0

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

Context contains any relevant context for the AST conversion. For example, the auth system uses the context to determine which larger statement an expression exists in, which may influence how the expression should handle authorization.

func NewContext added in v0.14.0

func NewContext() *Context

NewContext returns a new *Context.

func (*Context) Auth added in v0.14.0

func (ctx *Context) Auth() *auth.AuthContext

Auth returns the portion that handles authentication.

Source Files

Jump to

Keyboard shortcuts

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