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 CheckHasFreeSpace ¶ added in v0.5.6
func CheckHasFreeSpace() bool
CheckHasFreeSpace 检查当前数据库是否有剩余空间
func FindMySQLPath ¶ added in v1.2.1
func FindMySQLPath() string
FindMySQLPath find out mysqld_safe path from system processes
func FindMySQLPathAndRemember ¶ added in v1.2.1
func FindMySQLPathAndRemember()
FindMySQLPathAndRemember find out mysqld_safe path then remember it for future usage
func MySQLVersion ¶ added in v1.0.0
MySQLVersion 读取当前MySQL版本
func MySQLVersionFrom8 ¶ added in v1.0.0
func QuoteLikePrefix ¶
func QuoteLikeSuffix ¶
func SetGlobalVarMax ¶ added in v0.5.3
SetGlobalVarMax 设置变量最大值
func SetGlobalVarMin ¶ added in v0.5.3
SetGlobalVarMin 设置变量最小值
func StartLocalMySQL ¶ added in v1.2.1
func StartLocalMySQL()
StartLocalMySQL try to start local mysql server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.