ast

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const DoltCreateTablePlaceholderSequenceName = "dolt_create_table_placeholder_sequence"

DoltCreateTablePlaceholderSequenceName is a Placeholder name used in translating computed columns to generated columns that involve a sequence, used later in analysis

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.

func NewNoOp added in v0.17.0

func NewNoOp(warnings []string) vitess.InjectedStatement

NewNoOp returns a new NoOp statement which does nothing and issues zero or more warnings when run. Used for statements that aren't directly supported but which we don't want to cause errors.

func NotYetSupportedError added in v0.17.0

func NotYetSupportedError(errorMsg string) (vitess.Statement, error)

NotYetSupportedError returns an unsupported error with the given message, or a NoOp statement if the environment variable DOLTGRES_IGNORE_UNSUPPORTED is set.

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(postgresStmt parser.Statement) *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