v2

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertGlobalStatus

func ConvertGlobalStatus(key string, value sql.RawBytes) (interface{}, error)

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

func ConvertGlobalVariables(key string, value sql.RawBytes) (interface{}, error)

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

func ParseBoolAsInteger(value sql.RawBytes) (interface{}, error)

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

func ParseFloat(value sql.RawBytes) (interface{}, error)

ParseFloat parses the given sql.RawBytes value into a float64. It returns the parsed value and an error if the parsing fails.

func ParseGTIDMode

func ParseGTIDMode(value sql.RawBytes) (interface{}, error)

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

func ParseInt(value sql.RawBytes) (interface{}, error)

ParseInt parses the given sql.RawBytes value into an int64. It returns the parsed value and an error if the parsing fails.

func ParseString

func ParseString(value sql.RawBytes) (interface{}, error)

ParseString parses the given sql.RawBytes value into a string. It returns the parsed value and an error if the parsing fails.

func ParseUint

func ParseUint(value sql.RawBytes) (interface{}, error)

ParseUint parses the given sql.RawBytes value into an uint64. It returns the parsed value and an error if the parsing fails.

func ParseValue

func ParseValue(value sql.RawBytes) (interface{}, error)

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.

Jump to

Keyboard shortcuts

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