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) 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
Click to show internal directories.
Click to hide internal directories.