sql

package
v0.0.0-...-e8181bf Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(ctx context.Context, rawStmt ast.StmtNode) (plan.Plan, error)

Compile is safe for concurrent use by multiple goroutines.

func Query

func Query(sql string) (*flow.Dataset, plan.Plan, error)

func RegisterTable

func RegisterTable(dataset *flow.Dataset, tableName string, columns []executor.TableColumn)

Types

type Session

type Session interface {
	context.Context
	Status() uint16 // Flag of current status, such as autocommit.
	String() string // For debug
	Close() error
}

Session context

func CreateSession

func CreateSession(info infoschema.InfoSchema) (Session, error)

CreateSession creates a new session environment.

Directories

Path Synopsis
Package ast is the abstract syntax tree parsed from a SQL statement by parser.
Package ast is the abstract syntax tree parsed from a SQL statement by parser.
goyacc
Goyacc is a version of yacc generating Go parsers.
Goyacc is a version of yacc generating Go parsers.
sessionctx

Jump to

Keyboard shortcuts

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