package
0.0.0-20241212002435-a4aaf8ca5232
Repository: https://github.com/chrislusf/gleam.git
Documentation: pkg.go.dev
# Functions
GetStatusVars gets registered statistics status variables.
GetSysVar returns sys var info for name as key.
NewSessionVars creates a session vars object.
RegisterStatistics registers statistics.
# Constants
special session variables.
special session variables.
CharsetDatabase is the name for character_set_database system variable.
Variable error codes.
Variable error codes.
Variable error codes.
CollationConnection is the name for collation_connection system variable.
CollationDatabase is the name for collation_database system variable.
special session variables.
ScopeGlobal means the system variable can be changed globally.
ScopeNone means the system variable can not be changed dynamically.
ScopeSession means the system variable can only be changed in current session.
special session variables.
special session variables.
# Variables
DefaultScopeFlag is the status default scope.
Error instances.
Variable errors.
SetNamesVariables is the system variable names related to set names statements.
SysVars is global sys vars map.
Variable errors.
Variable errors.
# Structs
RetryInfo saves retry information.
SessionVars is to handle user-defined or global variables in current session.
StatementContext contains variables for a statement.
StatusVal is the value of the corresponding status variable.
SysVar is for system variable.
TransactionContext is used to store variables that has transaction scope.
# Interfaces
GlobalVarAccessor is the interface for accessing global scope system and status variables.
Statistics is the interface of statistics.
# Type aliases
ScopeFlag is for system variable whether can be changed in global/session dynamically or not.