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.
Click to show internal directories.
Click to hide internal directories.