Documentation ¶
Index ¶
- func Count(tx *gorm.DB, model interface{}, where string, args ...interface{}) (int64, error)
- func DetailByWhere(tx *gorm.DB, model interface{}, wheres ...GormWhere) error
- func GetClient(cfg global.MysqlConfig) *gorm.DB
- func Insert(tx *gorm.DB, model interface{}) error
- func ListWithPaging(tx *gorm.DB, models interface{}, model interface{}, no int, size int, ...) (int64, error)
- func Paging(tx *gorm.DB, no int, size int) *gorm.DB
- func Transaction(tx *gorm.DB, fs ...func(tx *gorm.DB) error) error
- type GormWhere
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListWithPaging ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.