engine

package
v0.0.0-...-d224df5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 21 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 NewBaseCursor

func NewBaseCursor(ctx context.Context, children ...basic.Cursor) baseCursor

func NewCursorBuilder

func NewCursorBuilder(ctx context.Context, schema schemas.InfoSchema) *cursorBuilder

Types

type Executor

type Executor interface {
	ExecuteStatement()
}

type PreparedStatement

type PreparedStatement struct {
}

type ProjectionExec

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

func (*ProjectionExec) Close

func (b *ProjectionExec) Close() error

func (ProjectionExec) CursorName

func (p ProjectionExec) CursorName() string

func (ProjectionExec) GetRow

func (p ProjectionExec) GetRow() basic.Row

func (ProjectionExec) Next

func (p ProjectionExec) Next() bool

func (ProjectionExec) Open

func (b ProjectionExec) Open() error

func (ProjectionExec) Type

func (p ProjectionExec) Type() string

type SelectionExec

type SelectionExec struct {
	Conditions []expression.Expression
	// contains filtered or unexported fields
}

func (*SelectionExec) Close

func (b *SelectionExec) Close() error

func (SelectionExec) CursorName

func (s SelectionExec) CursorName() string

func (SelectionExec) GetRow

func (s SelectionExec) GetRow() basic.Row

func (SelectionExec) Next

func (s SelectionExec) Next() bool

func (SelectionExec) Open

func (s SelectionExec) Open() error

func (SelectionExec) Type

func (s SelectionExec) Type() string

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 schemas.InfoSchema) (Session, error)

CreateSession creates a new session environment.

type XMySQLEngine

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

SQL执行引擎 默认一个实例

func NewXMySQLEngine

func NewXMySQLEngine(conf *conf.Cfg) *XMySQLEngine

func (*XMySQLEngine) ExecuteQuery

func (srv *XMySQLEngine) ExecuteQuery(session innodb.MySQLServerSession, query string)

ast->plan->storebytes->result->net

Jump to

Keyboard shortcuts

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