Documentation
¶
Overview ¶
Package mysql define mysql db operation
Index ¶
Constants ¶
DefaultLockLeaseAge define default db locker lease age
Variables ¶
This section is empty.
Functions ¶
func InitDb ¶
InitDb Connect db server and create database if not exists then switch to this database, returns *gorm.DB, error
Types ¶
Source Files
¶
- lock.go
- mysql.go
Click to show internal directories.
Click to hide internal directories.