sessionctx

package
v0.0.0-...-547d394 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContext

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

func NewContext

func NewContext() *BaseContext

NewContext creates a new mocked sessionctx.Context.

func (*BaseContext) GetSessionVars

func (c *BaseContext) GetSessionVars() *variable.SessionVars

GetSessionVars implements the sessionctx.Context GetSessionVars interface.

func (*BaseContext) SetValue

func (c *BaseContext) SetValue(key fmt.Stringer, value interface{})

SetValue implements sessionctx.Context SetValue interface.

func (*BaseContext) Value

func (c *BaseContext) Value(key fmt.Stringer) interface{}

Value implements sessionctx.Context Value interface.

type Context

type Context interface {
	GetSessionVars() *variable.SessionVars

	// SetValue saves a value associated with this context for key.
	SetValue(key fmt.Stringer, value interface{})

	// Value returns the value associated with this context for key.
	Value(key fmt.Stringer) interface{}
}

Context is an interface for transaction and executive args environment.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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