plan

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracer = otel.Tracer("ExecPlan")

Functions

This section is empty.

Types

type AlwaysEmptyExecPlan

type AlwaysEmptyExecPlan struct{}

AlwaysEmptyExecPlan represents an exec plan which affects nothing.

func (AlwaysEmptyExecPlan) ExecIn

func (AlwaysEmptyExecPlan) Type

type BasePlan

type BasePlan struct {
	Args []proto.Value
}

func (*BasePlan) BindArgs

func (bp *BasePlan) BindArgs(args []proto.Value)

func (*BasePlan) ToArgs

func (bp *BasePlan) ToArgs(indexes []int) []proto.Value

type TransparentPlan

type TransparentPlan struct {
	BasePlan
	// contains filtered or unexported fields
}

TransparentPlan represents a transparent plan.

func Transparent

func Transparent(stmt rast.Statement, args []proto.Value) *TransparentPlan

Transparent creates a plan which will be executed by upstream db transparently.

func (*TransparentPlan) ExecIn

func (tp *TransparentPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*TransparentPlan) SetDB

func (tp *TransparentPlan) SetDB(db string)

func (*TransparentPlan) SetType

func (tp *TransparentPlan) SetType(typ proto.PlanType)

func (*TransparentPlan) Type

func (tp *TransparentPlan) Type() proto.PlanType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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