sqlastutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(root sqlast.Node, pre, post ApplyFunc) (result sqlast.Node)

Types

type ApplyFunc

type ApplyFunc func(*Cursor) bool

type Cursor

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

func (*Cursor) Delete

func (c *Cursor) Delete()

func (*Cursor) Index

func (c *Cursor) Index() int

func (*Cursor) InsertAfter

func (c *Cursor) InsertAfter(n sqlast.Node)

func (*Cursor) InsertBefore

func (c *Cursor) InsertBefore(n sqlast.Node)

func (*Cursor) Name

func (c *Cursor) Name() string

func (*Cursor) Node

func (c *Cursor) Node() sqlast.Node

func (*Cursor) Parent

func (c *Cursor) Parent() sqlast.Node

func (*Cursor) Replace

func (c *Cursor) Replace(n sqlast.Node)

Jump to

Keyboard shortcuts

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