bqparser

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromClauseHasJoinWithoutOn

func FromClauseHasJoinWithoutOn(fromClause *Node, src string) bool

FromClauseHasJoinWithoutOn reports whether fromClause contains a JOIN keyword not matched by an ON condition, by scanning tokens at depth 0.

Types

type Node

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

Node represents an AST node for BigQuery SQL.

func Parse

func Parse(sql string) *Node

Parse parses a BigQuery SQL string and returns the root "program" node.

func (*Node) ChildCount

func (n *Node) ChildCount() uint

func (*Node) EndByte

func (n *Node) EndByte() uint

func (*Node) FieldNameForChild

func (n *Node) FieldNameForChild(_ uint32) string

func (*Node) Kind

func (n *Node) Kind() string

func (*Node) NamedChild

func (n *Node) NamedChild(i uint) *Node

func (*Node) NamedChildCount

func (n *Node) NamedChildCount() uint

func (*Node) StartByte

func (n *Node) StartByte() uint

Jump to

Keyboard shortcuts

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