Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MongoClose ¶
func MongoClose()
func MySQL ¶
func MySQL(cfg *settings.MySQLConfig) (err error)
func MySQLClose ¶
func MySQLClose()
MySQLClose 将关闭数据库并阻止启动新查询。关闭,然后等待服务器上已开始处理的所有查询完成。
关闭数据库的情况很少见, 因为数据库句柄是长期存在的,并且在许多 goroutines 之间共享
func RedisClose ¶
func RedisClose()
RedisClose 关闭客户端,释放所有打开的资源。 关闭客户端很少见,因为客户端是长期存在的, 并且在许多goroutine之间共享
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.