Documentation ¶
Index ¶
- func GetGlobalSystemVar(s *variable.SessionVars, key string) (string, error)
- func GetScopeNoneSystemVar(key string) (string, bool, error)
- func GetSessionOnlySysVars(s *variable.SessionVars, key string) (string, bool, error)
- func GetSessionSystemVar(s *variable.SessionVars, key string) (string, error)
- func GoTimeToTS(t time.Time) uint64
- func SetSessionSystemVar(vars *variable.SessionVars, name string, value types.Datum) error
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 GetScopeNoneSystemVar ¶ added in v1.0.4
GetScopeNoneSystemVar checks the validation of `key`, and return the default value if its scope is `ScopeNone`.
func GetSessionOnlySysVars ¶ added in v1.0.4
GetSessionOnlySysVars get the default value defined in code for session only variable. The return bool value indicates whether it's a session only 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 ¶
GoTimeToTS converts a Go time to uint64 timestamp.
func SetSessionSystemVar ¶
SetSessionSystemVar sets system variable and updates SessionVars states.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.