vtenv

package
v0.21.1 Latest Latest
Warning

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

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

Documentation

Index

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

type Options

type Options struct {
	MySQLServerVersion string
	TruncateUILen      int
	TruncateErrLen     int
}

Jump to

Keyboard shortcuts

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