1 Star 2 Fork 2

tym_hmm/mysql_pool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BuilderInterface.go 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
package Mysql
type BuilderInterface interface {
SetBuilderName(builderName string) BuilderInterface
GetBuildName() string
//地址
SetHost(host string) BuilderInterface
//获取地址
GetHost() string
//口端
SetPort(port int) BuilderInterface
//获取端口
GetPort() int
//用户名
SetUser(user string) BuilderInterface
//获取用户名
GetUser() string
//密码
SetPwd(pwd string) BuilderInterface
//获取密码
GetPwd() string
//数据库
SetDbName(dbName string) BuilderInterface
//获取数据库
GetDbName() string
//设置编码
SetChartSet(chartSet string) BuilderInterface
//获取编码
GetChartSet() string
//是否开启日志调试
SetIsDebug(isDebug bool) BuilderInterface
//获取是否开启日志调试
GetIsDebug() bool
//设置空闲连接池中的最大连接数(默认为10)
SetMaxIdleConns(maxIdleConns int) BuilderInterface
//获取空闲连接池中最大连接数
GetMaxIdleConns() int
//设置与数据库的最大打开连接数(默认为10)
SetMaxOpenConns(maxOpenConns int) BuilderInterface
//获取与数据中最大打开连接数
GetMaxOpenConns() int
//日志保存目录(当isDebug为true时开启)
SetLogDir(logDir string) BuilderInterface
//获取日志保存目录
GetLogDir() string
GetHash() (string, error)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tym_hmm/mysql_pool.git
git@gitee.com:tym_hmm/mysql_pool.git
tym_hmm
mysql_pool
mysql_pool
v1.1.2

搜索帮助