Documentation ¶
Index ¶
- type Mysql
- func (m *Mysql) CheckDuplication(db *gorm.DB, query interface{}, args ...interface{}) (bool, error)
- func (m *Mysql) CheckDuplicationByTableName(db *gorm.DB, tableName string, query string, args ...interface{}) (bool, error)
- func (m *Mysql) Close()
- func (m *Mysql) CreateWithCheckDuplication(info, query interface{}, args ...interface{}) (bool, error)
- func (m *Mysql) CreateWithCheckDuplicationByTableName(tableName string, info, query interface{}, args ...interface{}) (bool, error)
- func (m *Mysql) CreateWithCheckDuplicationWithDB(db *gorm.DB, info, query interface{}, args ...interface{}) (bool, error)
- func (m *Mysql) DB() *gorm.DB
- func (m *Mysql) PageQuery(db *gorm.DB, pageSize, pageIndex int64, order string, result interface{}) (records int64, pages int64, err error)
- func (m *Mysql) PageQueryWithAssociations(db *gorm.DB, pageSize, pageIndex int64, order string, result interface{}) (records int64, pages int64, err error)
- func (m *Mysql) PageQueryWithPreload(db *gorm.DB, pageSize, pageIndex int64, order string, preload []string, ...) (records int64, pages int64, err error)
- func (m *Mysql) UpdateWithCheckDuplication(db *gorm.DB, info interface{}, fullSaveAssociations bool, ...) (bool, error)
- func (m *Mysql) UpdateWithCheckDuplicationAndOmit(db *gorm.DB, info interface{}, fullSaveAssociations bool, omit []string, ...) (bool, error)
- func (m *Mysql) UpdateWithCheckDuplicationByTableName(db *gorm.DB, tableName string, info, query interface{}, args ...interface{}) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
Mysql Mysql
func (*Mysql) CheckDuplication ¶
func (*Mysql) CheckDuplicationByTableName ¶
func (*Mysql) CreateWithCheckDuplication ¶
func (*Mysql) CreateWithCheckDuplicationByTableName ¶
func (*Mysql) CreateWithCheckDuplicationWithDB ¶ added in v1.2.0
func (*Mysql) PageQuery ¶
func (m *Mysql) PageQuery(db *gorm.DB, pageSize, pageIndex int64, order string, result interface{}) (records int64, pages int64, err error)
PageQuery 分页查询
func (*Mysql) PageQueryWithAssociations ¶
func (m *Mysql) PageQueryWithAssociations(db *gorm.DB, pageSize, pageIndex int64, order string, result interface{}) (records int64, pages int64, err error)
PageQueryWithAssociations 分页查询
func (*Mysql) PageQueryWithPreload ¶
func (m *Mysql) PageQueryWithPreload(db *gorm.DB, pageSize, pageIndex int64, order string, preload []string, result interface{}) (records int64, pages int64, err error)
PageQueryWithPreload 分页查询
func (*Mysql) UpdateWithCheckDuplication ¶
func (*Mysql) UpdateWithCheckDuplicationAndOmit ¶
Click to show internal directories.
Click to hide internal directories.