Documentation ¶
Overview ¶
Package context stores some common information used in various places. The name in hindsight might confuse with the golang package context, though there is no relation between the two.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context holds the common information
func NewContext ¶
func NewContext(status *global.Status, variables *global.Variables, databaseFilter *filter.DatabaseFilter, wantRelativeStats bool) *Context
NewContext returns the pointer to a new (empty) context
func (Context) DatabaseFilter ¶ added in v1.0.3
func (c Context) DatabaseFilter() *filter.DatabaseFilter
DatabaseFilter returns the database filter to apply on queries (if appropriate)
func (Context) MySQLVersion ¶
MySQLVersion returns the current MySQL version
func (*Context) SetWantRelativeStats ¶
SetWantRelativeStats tells what we want to see
func (Context) WantRelativeStats ¶
WantRelativeStats tells us what we have asked for
Click to show internal directories.
Click to hide internal directories.