func (qs ExportDBQuerySet) IDLt(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id < ?", ID))
}
IDLt is an autogenerated method
nolint: dupl
package model
import (
	"errors"
	"fmt"
	"time"
	"github.com/jinzhu/gorm"
)
type ExportDBQuerySet struct {
	db *gorm.DB
}
func NewExportDBQuerySet(db *gorm.DB) ExportDBQuerySet {
	return ExportDBQuerySet{
		db: db.Model(&ExportDB{}),
	}
}
func (qs ExportDBQuerySet) w(db *gorm.DB) ExportDBQuerySet {
	return NewExportDBQuerySet(db)
}
func (qs ExportDBQuerySet) All(ret *[]ExportDB) error {
	return qs.db.Find(ret).Error
}
func (qs ExportDBQuerySet) Count() (int, error) {
	var count int
	err := qs.db.Count(&count).Error
	return count, err
}
func (o *ExportDB) Create(db *gorm.DB) error {
	return db.Create(o).Error
}
func (qs ExportDBQuerySet) CreatedAtEq(createdAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("created_at = ?", createdAt))
}
func (qs ExportDBQuerySet) CreatedAtGt(createdAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("created_at > ?", createdAt))
}
func (qs ExportDBQuerySet) CreatedAtGte(createdAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("created_at >= ?", createdAt))
}
func (qs ExportDBQuerySet) CreatedAtLt(createdAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("created_at < ?", createdAt))
}
func (qs ExportDBQuerySet) CreatedAtLte(createdAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("created_at <= ?", createdAt))
}
func (qs ExportDBQuerySet) CreatedAtNe(createdAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("created_at != ?", createdAt))
}
func (qs ExportDBQuerySet) DBNameEq(dBName string) ExportDBQuerySet {
	return qs.w(qs.db.Where("db_name = ?", dBName))
}
func (qs ExportDBQuerySet) DBNameIn(dBName ...string) ExportDBQuerySet {
	if len(dBName) == 0 {
		qs.db.AddError(errors.New("must at least pass one dBName in DBNameIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("db_name IN (?)", dBName))
}
func (qs ExportDBQuerySet) DBNameNe(dBName string) ExportDBQuerySet {
	return qs.w(qs.db.Where("db_name != ?", dBName))
}
func (qs ExportDBQuerySet) DBNameNotIn(dBName ...string) ExportDBQuerySet {
	if len(dBName) == 0 {
		qs.db.AddError(errors.New("must at least pass one dBName in DBNameNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("db_name NOT IN (?)", dBName))
}
func (qs ExportDBQuerySet) Delete() error {
	return qs.db.Delete(ExportDB{}).Error
}
func (o *ExportDB) Delete(db *gorm.DB) error {
	return db.Delete(o).Error
}
func (qs ExportDBQuerySet) DeleteNum() (int64, error) {
	db := qs.db.Delete(ExportDB{})
	return db.RowsAffected, db.Error
}
func (qs ExportDBQuerySet) DeleteNumUnscoped() (int64, error) {
	db := qs.db.Unscoped().Delete(ExportDB{})
	return db.RowsAffected, db.Error
}
func (qs ExportDBQuerySet) GetUpdater() ExportDBUpdater {
	return NewExportDBUpdater(qs.db)
}
func (qs ExportDBQuerySet) HostEq(host string) ExportDBQuerySet {
	return qs.w(qs.db.Where("host = ?", host))
}
func (qs ExportDBQuerySet) HostIn(host ...string) ExportDBQuerySet {
	if len(host) == 0 {
		qs.db.AddError(errors.New("must at least pass one host in HostIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("host IN (?)", host))
}
func (qs ExportDBQuerySet) HostNe(host string) ExportDBQuerySet {
	return qs.w(qs.db.Where("host != ?", host))
}
func (qs ExportDBQuerySet) HostNotIn(host ...string) ExportDBQuerySet {
	if len(host) == 0 {
		qs.db.AddError(errors.New("must at least pass one host in HostNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("host NOT IN (?)", host))
}
func (qs ExportDBQuerySet) IDEq(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id = ?", ID))
}
func (qs ExportDBQuerySet) IDGt(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id > ?", ID))
}
func (qs ExportDBQuerySet) IDGte(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id >= ?", ID))
}
func (qs ExportDBQuerySet) IDIn(ID ...uint64) ExportDBQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id IN (?)", ID))
}