varsutil

package
v0.0.0-...-6dbff61 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalSystemVar

func GetGlobalSystemVar(s *variable.SessionVars, key string) (string, error)

GetGlobalSystemVar gets a global system variable.

func GetSessionSystemVar

func GetSessionSystemVar(s *variable.SessionVars, key string) (string, error)

GetSessionSystemVar gets a system variable. If it is a session only variable, use the default value defined in code. Returns error if there is no such variable.

func SetSessionSystemVar

func SetSessionSystemVar(vars *variable.SessionVars, name string, value types.Datum) error

SetSessionSystemVar sets system variable and updates SessionVars states.

Types

This section is empty.

Jump to

Keyboard shortcuts

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