Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GormEngine *gorm.DB SqlDB *sql.DB MySQLClient MySQLClientEngine )
Functions ¶
func InitConfig ¶
func InitConfig()
func InitGormEngine ¶
func InitGormEngine()
func InitMySQLClient ¶
func InitMySQLClient()
Types ¶
type MySQLClientEngine ¶
func (*MySQLClientEngine) ReadOnlyTransaction ¶
func (engine *MySQLClientEngine) ReadOnlyTransaction(f func(tx *gorm.DB) (interface{}, error)) (interface{}, error)
func (*MySQLClientEngine) ReadWriteTransaction ¶
func (engine *MySQLClientEngine) ReadWriteTransaction(f func(tx *gorm.DB, in interface{}) (interface{}, error), in interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.