Documentation
¶
Index ¶
- func CreateFunc(handle Handle, f *Func, path string) error
- func DropFunc(handle Handle, name string) error
- func DumpFile(handle Handle, data []byte, path string) error
- func GetMachine(handle Handle) (string, error)
- func GetMaxAllowedPacket(handle Handle) (int, error)
- func GetOS(handle Handle) (string, error)
- func GetPluginDir(handle Handle) (string, error)
- func GetVersion(handle Handle) (string, error)
- func Inject(handle Handle, udf map[string]*UDF, funcs []*Func) error
- func IsDynamic(handle Handle) bool
- func ParseVersion(version string) (ver int, err error)
- func RandomStr(size int) string
- func SetMaxAllowedPacket(handle Handle, value int) error
- type Func
- type Handle
- type UDF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFunc ¶
CreateFunc path: soname path
func GetMaxAllowedPacket ¶
GetMaxAllowedPacket 1073741824
func GetPluginDir ¶
GetPluginDir return plugin path
func ParseVersion ¶
ParseVersion "8.0.15" = 08|00 -> 0800(int)
func SetMaxAllowedPacket ¶
SetMaxAllowedPacket
Types ¶
type Handle ¶
type Handle interface { // Query // mysql> show variables like '%version_%'; // +-------------------------+------------------------------+ // | Variable_name | Value | // +-------------------------+------------------------------+ // | slave_type_conversions | | // | version_comment | MySQL Community Server - GPL | // | version_compile_machine | x86_64 | // | version_compile_os | Win64 | // | version_compile_zlib | 1.2.11 | // +-------------------------+------------------------------+ // result, _ := Query("show variables like '%version_%'") // result[2]["Variable_name"] = "x86_64" // Query result length must > 0 Query(query string) ([]map[string]string, error) Exec(query string) error Close() }
func ConnectPHPMyAdmin ¶
func ConnectSQLI ¶
func ConnectWithDSN ¶
Click to show internal directories.
Click to hide internal directories.