annotatedast

package
v0.5.643 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotatedAst

type AnnotatedAst interface {
	GetAST() sqlparser.Statement
	GetIndirect(sqlparser.SQLNode) (astindirect.Indirect, bool)
	GetIndirects() map[string]astindirect.Indirect
	GetMaterializedView(sqlparser.SQLNode) (astindirect.Indirect, bool)
	GetPhysicalTable(sqlparser.SQLNode) (astindirect.Indirect, bool)
	GetSelectMetadata(*sqlparser.Select) (selectmetadata.SelectMetadata, bool)
	GetSQLDataSource(node sqlparser.SQLNode) (sql_datasource.SQLDataSource, bool)
	SetIndirect(node sqlparser.SQLNode, indirect astindirect.Indirect)
	SetMaterializedView(node sqlparser.SQLNode, indirect astindirect.Indirect)
	SetPhysicalTable(node sqlparser.SQLNode, indirect astindirect.Indirect)
	SetSelectMetadata(*sqlparser.Select, selectmetadata.SelectMetadata)
	SetSQLDataSource(node sqlparser.SQLNode, sqlDataSource sql_datasource.SQLDataSource)
	SetWhereParamMapsEntry(*sqlparser.Where, parserutil.ParameterMap)
	GetWhereParamMapsEntry(*sqlparser.Where) (parserutil.ParameterMap, bool)
	IsReadOnly() bool
	SetInsertRowsIndirect(node *sqlparser.Insert, indirect astindirect.Indirect)
	GetInsertRowsIndirect(*sqlparser.Insert) (astindirect.Indirect, bool)
	GetSelectIndirect(selNode *sqlparser.Select) (astindirect.Indirect, bool)
	SetSelectIndirect(selNode *sqlparser.Select, indirect astindirect.Indirect)
	GetExecIndirect(selNode *sqlparser.Exec) (astindirect.Indirect, bool)
	SetExecIndirect(selNode *sqlparser.Exec, indirect astindirect.Indirect)
	GetSubequeryTableCount() int
}

func NewAnnotatedAst

func NewAnnotatedAst(parent AnnotatedAst, ast sqlparser.Statement) (AnnotatedAst, error)

Jump to

Keyboard shortcuts

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