Documentation ¶
Index ¶
- Variables
- func CreateDatabase(db *gorm.DB, database string) error
- func CreateDatabaseIfNotExists(db *gorm.DB, database string) (bool, error)
- func DropDatabase(db *gorm.DB, database string) error
- func ExecuteIssus(db *gorm.DB, curVersion string) error
- func GetConnectionWithDatabase(cfg MySqlConfig) *gorm.DB
- func GetConnectionWithoudDatabase(cfg MySqlConfig) *gorm.DB
- func GetDSN(cfg MySqlConfig, database string, timeout uint32, multiStatements bool) string
- func GetGormDB(dsn string) *gorm.DB
- func InitTables(db *gorm.DB) error
- func RollbackIfInitTablesFailed(db *gorm.DB, database string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var SQL_FILE_DIR = "/etc/mysql"
Functions ¶
func InitTables ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.