Documentation ¶
Overview ¶
Package db_gorm
@author: xwc1125
Package db_gorm
@author: xwc1125
Package db_gorm
@author: xwc1125
Package db_gorm
@author: xwc1125
Package db_gorm
@author: xwc1125
Package db_gorm
@author: xwc1125
Index ¶
- Variables
- func MakeCondition(dbDrive string, q interface{}) func(db *gorm.DB) *gorm.DB
- func MakePaginate(page types.PageQuery) func(db *gorm.DB) *gorm.DB
- func MasterEngine(config database.MysqlConfig) *gorm.DB
- func New(config logger.Config) logger.Interface
- func NewEngine(config database.MysqlConfig) *gorm.DB
- func OrderDest(sort string, bl bool) func(db *gorm.DB) *gorm.DB
- func Paginate(pageSize, pageIndex int64) func(db *gorm.DB) *gorm.DB
- func QueryDBErr(tx *gorm.DB) types.JsonError
- func SelectPage(db *gorm.DB, req types.PageQuery, wrapper map[string]interface{}, ...) (result *response.PageInfo, err error)
- func UpdateDBErr(tx *gorm.DB) types.JsonError
Constants ¶
This section is empty.
Variables ¶
View Source
var GormDBOpens = map[string]func(string) gorm.Dialector{ "mysql": mysql.Open, "postgres": postgres.Open, }
View Source
var SysTimeLocation, _ = time.LoadLocation("Asia/Shanghai")
中国时区
Functions ¶
func SelectPage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.