v2

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalStatusConversions = map[string]ConversionFunc{
	"innodb_available_undo_logs":    ParseUint,
	"innodb_buffer_pool_pages_misc": ParseUint,
	"innodb_data_pending_fsyncs":    ParseUint,
	"ssl_ctx_verify_depth":          ParseUint,
	"ssl_verify_depth":              ParseUint,
}
View Source
var GlobalVariableConversions = map[string]ConversionFunc{
	"delay_key_write":                  ParseString,
	"enforce_gtid_consistency":         ParseString,
	"event_scheduler":                  ParseString,
	"gtid_mode":                        ParseGTIDMode,
	"have_openssl":                     ParseBoolAsInteger,
	"have_ssl":                         ParseBoolAsInteger,
	"have_symlink":                     ParseBoolAsInteger,
	"session_track_gtids":              ParseString,
	"session_track_transaction_info":   ParseString,
	"slave_skip_errors":                ParseString,
	"ssl_fips_mode":                    ParseString,
	"transaction_write_set_extraction": ParseString,
	"use_secondary_engine":             ParseString,
}

see https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html see https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html

Functions

func ConvertGlobalStatus

func ConvertGlobalStatus(key string, value sql.RawBytes) (interface{}, error)

func ConvertGlobalVariables

func ConvertGlobalVariables(key string, value sql.RawBytes) (interface{}, error)

func ParseBoolAsInteger

func ParseBoolAsInteger(value sql.RawBytes) (interface{}, error)

func ParseGTIDMode

func ParseGTIDMode(value sql.RawBytes) (interface{}, error)

func ParseInt

func ParseInt(value sql.RawBytes) (interface{}, error)

func ParseString added in v1.20.3

func ParseString(value sql.RawBytes) (interface{}, error)

func ParseUint added in v1.20.3

func ParseUint(value sql.RawBytes) (interface{}, error)

func ParseValue

func ParseValue(value sql.RawBytes) (interface{}, error)

Types

type ConversionFunc

type ConversionFunc func(value sql.RawBytes) (interface{}, error)

Jump to

Keyboard shortcuts

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