Documentation ¶
Index ¶
- type Environment
- func (cached *Environment) CachedSize(alloc bool) int64
- func (e *Environment) CollationEnv() *collations.Environment
- func (e *Environment) MySQLVersion() string
- func (e *Environment) Parser() *sqlparser.Parser
- func (e *Environment) TruncateErrLen() int
- func (e *Environment) TruncateForLog(query string) string
- func (e *Environment) TruncateForUI(query string) string
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg Options) (*Environment, error)
func NewTestEnv ¶
func NewTestEnv() *Environment
func (*Environment) CachedSize ¶
func (cached *Environment) CachedSize(alloc bool) int64
func (*Environment) CollationEnv ¶
func (e *Environment) CollationEnv() *collations.Environment
func (*Environment) MySQLVersion ¶
func (e *Environment) MySQLVersion() string
func (*Environment) Parser ¶
func (e *Environment) Parser() *sqlparser.Parser
func (*Environment) TruncateErrLen ¶
func (e *Environment) TruncateErrLen() int
func (*Environment) TruncateForLog ¶
func (e *Environment) TruncateForLog(query string) string
TruncateForLog is used when displaying queries as part of error logs to avoid overwhelming logging systems with potentially long queries and bind value data.
func (*Environment) TruncateForUI ¶
func (e *Environment) TruncateForUI(query string) string
TruncateForUI is used when displaying queries on various Vitess status pages to keep the pages small enough to load and render properly
Click to show internal directories.
Click to hide internal directories.