Documentation
¶
Index ¶
- func ConvertGlobalStatus(key string, value sql.RawBytes) (interface{}, error)
- func ConvertGlobalVariables(key string, value sql.RawBytes) (interface{}, error)
- func ParseBoolAsInteger(value sql.RawBytes) (interface{}, error)
- func ParseFloat(value sql.RawBytes) (interface{}, error)
- func ParseGTIDMode(value sql.RawBytes) (interface{}, error)
- func ParseInt(value sql.RawBytes) (interface{}, error)
- func ParseString(value sql.RawBytes) (interface{}, error)
- func ParseUint(value sql.RawBytes) (interface{}, error)
- func ParseValue(value sql.RawBytes) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGlobalStatus ¶
ConvertGlobalStatus converts the given key and sql.RawBytes value into an appropriate type based on globalStatusConversions. It returns the converted value and an error if the conversion fails.
func ConvertGlobalVariables ¶
ConvertGlobalVariables converts the given key and sql.RawBytes value into an appropriate type based on globalVariableConversions. It returns the converted value and an error if the conversion fails.
func ParseBoolAsInteger ¶
ParseBoolAsInteger parses the given sql.RawBytes value into an int64 representing a boolean value. It returns 1 for "YES" or "ON" and 0 otherwise.
func ParseFloat ¶
ParseFloat parses the given sql.RawBytes value into a float64. It returns the parsed value and an error if the parsing fails.
func ParseGTIDMode ¶
ParseGTIDMode parses the given sql.RawBytes value into an int64 representing the GTID mode. It returns an error if the value is unrecognized.
func ParseInt ¶
ParseInt parses the given sql.RawBytes value into an int64. It returns the parsed value and an error if the parsing fails.
func ParseString ¶
ParseString parses the given sql.RawBytes value into a string. It returns the parsed value and an error if the parsing fails.
func ParseUint ¶
ParseUint parses the given sql.RawBytes value into an uint64. It returns the parsed value and an error if the parsing fails.
func ParseValue ¶
ParseValue attempts to parse the given sql.RawBytes value into an appropriate type. It returns the parsed value and an error if the parsing fails.
Types ¶
This section is empty.