func (qs ExportDBQuerySet) UpdatedAtEq(updatedAt time.Time) ExportDBQuerySet {
	return qs.w(qs.db.Where("updated_at = ?", updatedAt))
}
UpdatedAtEq 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))
}
func (qs ExportDBQuerySet) IDLt(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id < ?", ID))
}
func (qs ExportDBQuerySet) IDLte(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id <= ?", ID))
}
func (qs ExportDBQuerySet) IDNe(ID uint64) ExportDBQuerySet {
	return qs.w(qs.db.Where("id != ?", ID))
}
func (qs ExportDBQuerySet) IDNotIn(ID ...uint64) ExportDBQuerySet {
	if len(ID) == 0 {
		qs.db.AddError(errors.New("must at least pass one ID in IDNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("id NOT IN (?)", ID))
}
func (qs ExportDBQuerySet) Limit(limit int) ExportDBQuerySet {
	return qs.w(qs.db.Limit(limit))
}
func (qs ExportDBQuerySet) Offset(offset int) ExportDBQuerySet {
	return qs.w(qs.db.Offset(offset))
}
func (qs ExportDBQuerySet) One(ret *ExportDB) error {
	return qs.db.First(ret).Error
}
func (qs ExportDBQuerySet) OrderAscByCreatedAt() ExportDBQuerySet {
	return qs.w(qs.db.Order("created_at ASC"))
}
func (qs ExportDBQuerySet) OrderAscByID() ExportDBQuerySet {
	return qs.w(qs.db.Order("id ASC"))
}
func (qs ExportDBQuerySet) OrderAscByPort() ExportDBQuerySet {
	return qs.w(qs.db.Order("port ASC"))
}
func (qs ExportDBQuerySet) OrderAscByUpdatedAt() ExportDBQuerySet {
	return qs.w(qs.db.Order("updated_at ASC"))
}
func (qs ExportDBQuerySet) OrderDescByCreatedAt() ExportDBQuerySet {
	return qs.w(qs.db.Order("created_at DESC"))
}
func (qs ExportDBQuerySet) OrderDescByID() ExportDBQuerySet {
	return qs.w(qs.db.Order("id DESC"))
}
func (qs ExportDBQuerySet) OrderDescByPort() ExportDBQuerySet {
	return qs.w(qs.db.Order("port DESC"))
}
func (qs ExportDBQuerySet) OrderDescByUpdatedAt() ExportDBQuerySet {
	return qs.w(qs.db.Order("updated_at DESC"))
}
func (qs ExportDBQuerySet) PasswordEq(password string) ExportDBQuerySet {
	return qs.w(qs.db.Where("password = ?", password))
}
func (qs ExportDBQuerySet) PasswordIn(password ...string) ExportDBQuerySet {
	if len(password) == 0 {
		qs.db.AddError(errors.New("must at least pass one password in PasswordIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("password IN (?)", password))
}
func (qs ExportDBQuerySet) PasswordNe(password string) ExportDBQuerySet {
	return qs.w(qs.db.Where("password != ?", password))
}
func (qs ExportDBQuerySet) PasswordNotIn(password ...string) ExportDBQuerySet {
	if len(password) == 0 {
		qs.db.AddError(errors.New("must at least pass one password in PasswordNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("password NOT IN (?)", password))
}
func (qs ExportDBQuerySet) PortEq(port int) ExportDBQuerySet {
	return qs.w(qs.db.Where("port = ?", port))
}
func (qs ExportDBQuerySet) PortGt(port int) ExportDBQuerySet {
	return qs.w(qs.db.Where("port > ?", port))
}
func (qs ExportDBQuerySet) PortGte(port int) ExportDBQuerySet {
	return qs.w(qs.db.Where("port >= ?", port))
}
func (qs ExportDBQuerySet) PortIn(port ...int) ExportDBQuerySet {
	if len(port) == 0 {
		qs.db.AddError(errors.New("must at least pass one port in PortIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("port IN (?)", port))
}
func (qs ExportDBQuerySet) PortLt(port int) ExportDBQuerySet {
	return qs.w(qs.db.Where("port < ?", port))
}
func (qs ExportDBQuerySet) PortLte(port int) ExportDBQuerySet {
	return qs.w(qs.db.Where("port <= ?", port))
}
func (qs ExportDBQuerySet) PortNe(port int) ExportDBQuerySet {
	return qs.w(qs.db.Where("port != ?", port))
}
func (qs ExportDBQuerySet) PortNotIn(port ...int) ExportDBQuerySet {
	if len(port) == 0 {
		qs.db.AddError(errors.New("must at least pass one port in PortNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("port NOT IN (?)", port))
}
func (u ExportDBUpdater) SetCreatedAt(createdAt time.Time) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.CreatedAt)] = createdAt
	return u
}
func (u ExportDBUpdater) SetDBName(dBName string) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.DBName)] = dBName
	return u
}
func (u ExportDBUpdater) SetHost(host string) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.Host)] = host
	return u
}
func (u ExportDBUpdater) SetID(ID uint64) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.ID)] = ID
	return u
}
func (u ExportDBUpdater) SetPassword(password string) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.Password)] = password
	return u
}
func (u ExportDBUpdater) SetPort(port int) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.Port)] = port
	return u
}
func (u ExportDBUpdater) SetShowName(showName string) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.ShowName)] = showName
	return u
}
func (u ExportDBUpdater) SetUpdatedAt(updatedAt time.Time) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.UpdatedAt)] = updatedAt
	return u
}
func (u ExportDBUpdater) SetUser(user string) ExportDBUpdater {
	u.fields[string(ExportDBDBSchema.User)] = user
	return u
}
func (qs ExportDBQuerySet) ShowNameEq(showName string) ExportDBQuerySet {
	return qs.w(qs.db.Where("show_name = ?", showName))
}
func (qs ExportDBQuerySet) ShowNameIn(showName ...string) ExportDBQuerySet {
	if len(showName) == 0 {
		qs.db.AddError(errors.New("must at least pass one showName in ShowNameIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("show_name IN (?)", showName))
}
func (qs ExportDBQuerySet) ShowNameNe(showName string) ExportDBQuerySet {
	return qs.w(qs.db.Where("show_name != ?", showName))
}
func (qs ExportDBQuerySet) ShowNameNotIn(showName ...string) ExportDBQuerySet {
	if len(showName) == 0 {
		qs.db.AddError(errors.New("must at least pass one showName in ShowNameNotIn"))
		return qs.w(qs.db)
	}
	return qs.w(qs.db.Where("show_name NOT IN (?)", showName))
}
func (u ExportDBUpdater) Update() error {
	return u.db.Updates(u.fields).Error
}
func (u ExportDBUpdater) UpdateNum() (int64, error) {
	db := u.db.Updates(u.fields)
	return db.RowsAffected, db.Error
}