Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MySQL *gorm.DB
MySQL global database instance
Functions ¶
func AutoMigration ¶
func AutoMigration(model interface{})
AutoMigration migrates a model to database
func ConnectMySQL ¶
func ConnectMySQL(databaseType, dsn string)
ConnectMySQL init connection to MySQL database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.