varsutil

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2017 License: Apache-2.0 Imports: 8 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 GoTimeToTS

func GoTimeToTS(t time.Time) uint64

GoTimeToTS converts a Go time to uint64 timestamp.

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