Documentation
¶
Index ¶
- Variables
- func CheckHasFreeSpace() bool
- func FindMySQLPath() string
- func FindMySQLPathAndRemember()
- func IsLocalAddr(addr string) bool
- func MySQLVersion() (version string, err error)
- func MySQLVersionFrom8() (bool, error)
- func NewQuery(tx *dbs.Tx, dao dbs.DAOWrapper, adminId int64, userId int64) *dbs.Query
- func QuoteLike(keyword string) string
- func QuoteLikeKeyword(keyword string) string
- func QuoteLikePrefix(keyword string) string
- func QuoteLikeSuffix(keyword string) string
- func SetGlobalVarMax(db *dbs.DB, variableName string, maxValue int) error
- func SetGlobalVarMin(db *dbs.DB, variableName string, minValue int) error
- func StartLocalMySQL()
Constants ¶
This section is empty.
Variables ¶
View Source
var HasFreeSpace = true
View Source
var IsLocalDatabase = false
View Source
var LocalDatabaseDataDir = ""
Functions ¶
func FindMySQLPath ¶
func FindMySQLPath() string
FindMySQLPath find out mysqld_safe path from system processes
func FindMySQLPathAndRemember ¶
func FindMySQLPathAndRemember()
FindMySQLPathAndRemember find out mysqld_safe path then remember it for future usage
func MySQLVersionFrom8 ¶
func QuoteLikePrefix ¶
func QuoteLikeSuffix ¶
func SetGlobalVarMax ¶
SetGlobalVarMax 设置变量最大值
func SetGlobalVarMin ¶
SetGlobalVarMin 设置变量最小值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.