spanner

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diagnose

func Diagnose(_ context.Context, _ base.DiagnoseContext, statement string) ([]base.Diagnostic, error)

func GetQuerySpan

func GetQuerySpan(
	ctx context.Context,
	gCtx base.GetQuerySpanContext,
	statement, database, _ string,

	ignoreCaseSensitive bool,
) (*base.QuerySpan, error)

GetQuerySpan returns the query span for the given statement.

func ParseSpannerGoogleSQL

func ParseSpannerGoogleSQL(sql string) ([]*base.ParseResult, error)

ParseSpannerGoogleSQL parses the given SQL and returns a list of ParseResult (one per statement). Use the GoogleSQL parser based on antlr4.

func SplitSQL

func SplitSQL(statement string) ([]base.SingleSQL, error)

SplitSQL splits the given SQL statement into multiple SQL statements using ANTLR parser. This handles BEGIN/END blocks, CASE, IF, LOOP, etc. correctly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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