schema

package
v0.7.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaWalker

type SchemaWalker struct {
	tree.Walker

	// SetCount is the number of table refs where the schema was set by the walker.
	SetCount int
	// contains filtered or unexported fields
}

SchemaWalker walks statements and ensures that their statements are targeting a postgres schema / namespace.

func NewSchemaWalker

func NewSchemaWalker(targetSchema string) *SchemaWalker

func (*SchemaWalker) EnterCTE

func (w *SchemaWalker) EnterCTE(cte *tree.CTE) error

func (*SchemaWalker) EnterInsertStmt

func (w *SchemaWalker) EnterInsertStmt(stmt *tree.InsertStmt) error

func (*SchemaWalker) EnterQualifiedTableName

func (w *SchemaWalker) EnterQualifiedTableName(q *tree.QualifiedTableName) error

func (*SchemaWalker) EnterTableOrSubqueryTable

func (w *SchemaWalker) EnterTableOrSubqueryTable(t *tree.TableOrSubqueryTable) error

Jump to

Keyboard shortcuts

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