mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-10 19:50:54 +08:00
756 lines
26 KiB
Go
756 lines
26 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package history
|
|
|
|
import (
|
|
"polaris/ent/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// MediaID applies equality check predicate on the "media_id" field. It's identical to MediaIDEQ.
|
|
func MediaID(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldMediaID, v))
|
|
}
|
|
|
|
// SeasonNum applies equality check predicate on the "season_num" field. It's identical to SeasonNumEQ.
|
|
func SeasonNum(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SourceTitle applies equality check predicate on the "source_title" field. It's identical to SourceTitleEQ.
|
|
func SourceTitle(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldSourceTitle, v))
|
|
}
|
|
|
|
// Date applies equality check predicate on the "date" field. It's identical to DateEQ.
|
|
func Date(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldDate, v))
|
|
}
|
|
|
|
// TargetDir applies equality check predicate on the "target_dir" field. It's identical to TargetDirEQ.
|
|
func TargetDir(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldTargetDir, v))
|
|
}
|
|
|
|
// Size applies equality check predicate on the "size" field. It's identical to SizeEQ.
|
|
func Size(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldSize, v))
|
|
}
|
|
|
|
// DownloadClientID applies equality check predicate on the "download_client_id" field. It's identical to DownloadClientIDEQ.
|
|
func DownloadClientID(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// IndexerID applies equality check predicate on the "indexer_id" field. It's identical to IndexerIDEQ.
|
|
func IndexerID(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldIndexerID, v))
|
|
}
|
|
|
|
// Link applies equality check predicate on the "link" field. It's identical to LinkEQ.
|
|
func Link(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldLink, v))
|
|
}
|
|
|
|
// Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.
|
|
func Hash(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldHash, v))
|
|
}
|
|
|
|
// CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
|
|
func CreateTime(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldCreateTime, v))
|
|
}
|
|
|
|
// MediaIDEQ applies the EQ predicate on the "media_id" field.
|
|
func MediaIDEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDNEQ applies the NEQ predicate on the "media_id" field.
|
|
func MediaIDNEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDIn applies the In predicate on the "media_id" field.
|
|
func MediaIDIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldMediaID, vs...))
|
|
}
|
|
|
|
// MediaIDNotIn applies the NotIn predicate on the "media_id" field.
|
|
func MediaIDNotIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldMediaID, vs...))
|
|
}
|
|
|
|
// MediaIDGT applies the GT predicate on the "media_id" field.
|
|
func MediaIDGT(v int) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDGTE applies the GTE predicate on the "media_id" field.
|
|
func MediaIDGTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDLT applies the LT predicate on the "media_id" field.
|
|
func MediaIDLT(v int) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDLTE applies the LTE predicate on the "media_id" field.
|
|
func MediaIDLTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldMediaID, v))
|
|
}
|
|
|
|
// EpisodeNumsIsNil applies the IsNil predicate on the "episode_nums" field.
|
|
func EpisodeNumsIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldEpisodeNums))
|
|
}
|
|
|
|
// EpisodeNumsNotNil applies the NotNil predicate on the "episode_nums" field.
|
|
func EpisodeNumsNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldEpisodeNums))
|
|
}
|
|
|
|
// SeasonNumEQ applies the EQ predicate on the "season_num" field.
|
|
func SeasonNumEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SeasonNumNEQ applies the NEQ predicate on the "season_num" field.
|
|
func SeasonNumNEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SeasonNumIn applies the In predicate on the "season_num" field.
|
|
func SeasonNumIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldSeasonNum, vs...))
|
|
}
|
|
|
|
// SeasonNumNotIn applies the NotIn predicate on the "season_num" field.
|
|
func SeasonNumNotIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldSeasonNum, vs...))
|
|
}
|
|
|
|
// SeasonNumGT applies the GT predicate on the "season_num" field.
|
|
func SeasonNumGT(v int) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SeasonNumGTE applies the GTE predicate on the "season_num" field.
|
|
func SeasonNumGTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SeasonNumLT applies the LT predicate on the "season_num" field.
|
|
func SeasonNumLT(v int) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SeasonNumLTE applies the LTE predicate on the "season_num" field.
|
|
func SeasonNumLTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldSeasonNum, v))
|
|
}
|
|
|
|
// SeasonNumIsNil applies the IsNil predicate on the "season_num" field.
|
|
func SeasonNumIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldSeasonNum))
|
|
}
|
|
|
|
// SeasonNumNotNil applies the NotNil predicate on the "season_num" field.
|
|
func SeasonNumNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldSeasonNum))
|
|
}
|
|
|
|
// SourceTitleEQ applies the EQ predicate on the "source_title" field.
|
|
func SourceTitleEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleNEQ applies the NEQ predicate on the "source_title" field.
|
|
func SourceTitleNEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleIn applies the In predicate on the "source_title" field.
|
|
func SourceTitleIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldSourceTitle, vs...))
|
|
}
|
|
|
|
// SourceTitleNotIn applies the NotIn predicate on the "source_title" field.
|
|
func SourceTitleNotIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldSourceTitle, vs...))
|
|
}
|
|
|
|
// SourceTitleGT applies the GT predicate on the "source_title" field.
|
|
func SourceTitleGT(v string) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleGTE applies the GTE predicate on the "source_title" field.
|
|
func SourceTitleGTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleLT applies the LT predicate on the "source_title" field.
|
|
func SourceTitleLT(v string) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleLTE applies the LTE predicate on the "source_title" field.
|
|
func SourceTitleLTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleContains applies the Contains predicate on the "source_title" field.
|
|
func SourceTitleContains(v string) predicate.History {
|
|
return predicate.History(sql.FieldContains(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleHasPrefix applies the HasPrefix predicate on the "source_title" field.
|
|
func SourceTitleHasPrefix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasPrefix(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleHasSuffix applies the HasSuffix predicate on the "source_title" field.
|
|
func SourceTitleHasSuffix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasSuffix(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleEqualFold applies the EqualFold predicate on the "source_title" field.
|
|
func SourceTitleEqualFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldEqualFold(FieldSourceTitle, v))
|
|
}
|
|
|
|
// SourceTitleContainsFold applies the ContainsFold predicate on the "source_title" field.
|
|
func SourceTitleContainsFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldContainsFold(FieldSourceTitle, v))
|
|
}
|
|
|
|
// DateEQ applies the EQ predicate on the "date" field.
|
|
func DateEQ(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldDate, v))
|
|
}
|
|
|
|
// DateNEQ applies the NEQ predicate on the "date" field.
|
|
func DateNEQ(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldDate, v))
|
|
}
|
|
|
|
// DateIn applies the In predicate on the "date" field.
|
|
func DateIn(vs ...time.Time) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldDate, vs...))
|
|
}
|
|
|
|
// DateNotIn applies the NotIn predicate on the "date" field.
|
|
func DateNotIn(vs ...time.Time) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldDate, vs...))
|
|
}
|
|
|
|
// DateGT applies the GT predicate on the "date" field.
|
|
func DateGT(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldDate, v))
|
|
}
|
|
|
|
// DateGTE applies the GTE predicate on the "date" field.
|
|
func DateGTE(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldDate, v))
|
|
}
|
|
|
|
// DateLT applies the LT predicate on the "date" field.
|
|
func DateLT(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldDate, v))
|
|
}
|
|
|
|
// DateLTE applies the LTE predicate on the "date" field.
|
|
func DateLTE(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldDate, v))
|
|
}
|
|
|
|
// TargetDirEQ applies the EQ predicate on the "target_dir" field.
|
|
func TargetDirEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirNEQ applies the NEQ predicate on the "target_dir" field.
|
|
func TargetDirNEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirIn applies the In predicate on the "target_dir" field.
|
|
func TargetDirIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldTargetDir, vs...))
|
|
}
|
|
|
|
// TargetDirNotIn applies the NotIn predicate on the "target_dir" field.
|
|
func TargetDirNotIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldTargetDir, vs...))
|
|
}
|
|
|
|
// TargetDirGT applies the GT predicate on the "target_dir" field.
|
|
func TargetDirGT(v string) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirGTE applies the GTE predicate on the "target_dir" field.
|
|
func TargetDirGTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirLT applies the LT predicate on the "target_dir" field.
|
|
func TargetDirLT(v string) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirLTE applies the LTE predicate on the "target_dir" field.
|
|
func TargetDirLTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirContains applies the Contains predicate on the "target_dir" field.
|
|
func TargetDirContains(v string) predicate.History {
|
|
return predicate.History(sql.FieldContains(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirHasPrefix applies the HasPrefix predicate on the "target_dir" field.
|
|
func TargetDirHasPrefix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasPrefix(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirHasSuffix applies the HasSuffix predicate on the "target_dir" field.
|
|
func TargetDirHasSuffix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasSuffix(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirEqualFold applies the EqualFold predicate on the "target_dir" field.
|
|
func TargetDirEqualFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldEqualFold(FieldTargetDir, v))
|
|
}
|
|
|
|
// TargetDirContainsFold applies the ContainsFold predicate on the "target_dir" field.
|
|
func TargetDirContainsFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldContainsFold(FieldTargetDir, v))
|
|
}
|
|
|
|
// SizeEQ applies the EQ predicate on the "size" field.
|
|
func SizeEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldSize, v))
|
|
}
|
|
|
|
// SizeNEQ applies the NEQ predicate on the "size" field.
|
|
func SizeNEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldSize, v))
|
|
}
|
|
|
|
// SizeIn applies the In predicate on the "size" field.
|
|
func SizeIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldSize, vs...))
|
|
}
|
|
|
|
// SizeNotIn applies the NotIn predicate on the "size" field.
|
|
func SizeNotIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldSize, vs...))
|
|
}
|
|
|
|
// SizeGT applies the GT predicate on the "size" field.
|
|
func SizeGT(v int) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldSize, v))
|
|
}
|
|
|
|
// SizeGTE applies the GTE predicate on the "size" field.
|
|
func SizeGTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldSize, v))
|
|
}
|
|
|
|
// SizeLT applies the LT predicate on the "size" field.
|
|
func SizeLT(v int) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldSize, v))
|
|
}
|
|
|
|
// SizeLTE applies the LTE predicate on the "size" field.
|
|
func SizeLTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldSize, v))
|
|
}
|
|
|
|
// DownloadClientIDEQ applies the EQ predicate on the "download_client_id" field.
|
|
func DownloadClientIDEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// DownloadClientIDNEQ applies the NEQ predicate on the "download_client_id" field.
|
|
func DownloadClientIDNEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// DownloadClientIDIn applies the In predicate on the "download_client_id" field.
|
|
func DownloadClientIDIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldDownloadClientID, vs...))
|
|
}
|
|
|
|
// DownloadClientIDNotIn applies the NotIn predicate on the "download_client_id" field.
|
|
func DownloadClientIDNotIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldDownloadClientID, vs...))
|
|
}
|
|
|
|
// DownloadClientIDGT applies the GT predicate on the "download_client_id" field.
|
|
func DownloadClientIDGT(v int) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// DownloadClientIDGTE applies the GTE predicate on the "download_client_id" field.
|
|
func DownloadClientIDGTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// DownloadClientIDLT applies the LT predicate on the "download_client_id" field.
|
|
func DownloadClientIDLT(v int) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// DownloadClientIDLTE applies the LTE predicate on the "download_client_id" field.
|
|
func DownloadClientIDLTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldDownloadClientID, v))
|
|
}
|
|
|
|
// DownloadClientIDIsNil applies the IsNil predicate on the "download_client_id" field.
|
|
func DownloadClientIDIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldDownloadClientID))
|
|
}
|
|
|
|
// DownloadClientIDNotNil applies the NotNil predicate on the "download_client_id" field.
|
|
func DownloadClientIDNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldDownloadClientID))
|
|
}
|
|
|
|
// IndexerIDEQ applies the EQ predicate on the "indexer_id" field.
|
|
func IndexerIDEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldIndexerID, v))
|
|
}
|
|
|
|
// IndexerIDNEQ applies the NEQ predicate on the "indexer_id" field.
|
|
func IndexerIDNEQ(v int) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldIndexerID, v))
|
|
}
|
|
|
|
// IndexerIDIn applies the In predicate on the "indexer_id" field.
|
|
func IndexerIDIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldIndexerID, vs...))
|
|
}
|
|
|
|
// IndexerIDNotIn applies the NotIn predicate on the "indexer_id" field.
|
|
func IndexerIDNotIn(vs ...int) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldIndexerID, vs...))
|
|
}
|
|
|
|
// IndexerIDGT applies the GT predicate on the "indexer_id" field.
|
|
func IndexerIDGT(v int) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldIndexerID, v))
|
|
}
|
|
|
|
// IndexerIDGTE applies the GTE predicate on the "indexer_id" field.
|
|
func IndexerIDGTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldIndexerID, v))
|
|
}
|
|
|
|
// IndexerIDLT applies the LT predicate on the "indexer_id" field.
|
|
func IndexerIDLT(v int) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldIndexerID, v))
|
|
}
|
|
|
|
// IndexerIDLTE applies the LTE predicate on the "indexer_id" field.
|
|
func IndexerIDLTE(v int) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldIndexerID, v))
|
|
}
|
|
|
|
// IndexerIDIsNil applies the IsNil predicate on the "indexer_id" field.
|
|
func IndexerIDIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldIndexerID))
|
|
}
|
|
|
|
// IndexerIDNotNil applies the NotNil predicate on the "indexer_id" field.
|
|
func IndexerIDNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldIndexerID))
|
|
}
|
|
|
|
// LinkEQ applies the EQ predicate on the "link" field.
|
|
func LinkEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldLink, v))
|
|
}
|
|
|
|
// LinkNEQ applies the NEQ predicate on the "link" field.
|
|
func LinkNEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldLink, v))
|
|
}
|
|
|
|
// LinkIn applies the In predicate on the "link" field.
|
|
func LinkIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldLink, vs...))
|
|
}
|
|
|
|
// LinkNotIn applies the NotIn predicate on the "link" field.
|
|
func LinkNotIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldLink, vs...))
|
|
}
|
|
|
|
// LinkGT applies the GT predicate on the "link" field.
|
|
func LinkGT(v string) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldLink, v))
|
|
}
|
|
|
|
// LinkGTE applies the GTE predicate on the "link" field.
|
|
func LinkGTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldLink, v))
|
|
}
|
|
|
|
// LinkLT applies the LT predicate on the "link" field.
|
|
func LinkLT(v string) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldLink, v))
|
|
}
|
|
|
|
// LinkLTE applies the LTE predicate on the "link" field.
|
|
func LinkLTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldLink, v))
|
|
}
|
|
|
|
// LinkContains applies the Contains predicate on the "link" field.
|
|
func LinkContains(v string) predicate.History {
|
|
return predicate.History(sql.FieldContains(FieldLink, v))
|
|
}
|
|
|
|
// LinkHasPrefix applies the HasPrefix predicate on the "link" field.
|
|
func LinkHasPrefix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasPrefix(FieldLink, v))
|
|
}
|
|
|
|
// LinkHasSuffix applies the HasSuffix predicate on the "link" field.
|
|
func LinkHasSuffix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasSuffix(FieldLink, v))
|
|
}
|
|
|
|
// LinkIsNil applies the IsNil predicate on the "link" field.
|
|
func LinkIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldLink))
|
|
}
|
|
|
|
// LinkNotNil applies the NotNil predicate on the "link" field.
|
|
func LinkNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldLink))
|
|
}
|
|
|
|
// LinkEqualFold applies the EqualFold predicate on the "link" field.
|
|
func LinkEqualFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldEqualFold(FieldLink, v))
|
|
}
|
|
|
|
// LinkContainsFold applies the ContainsFold predicate on the "link" field.
|
|
func LinkContainsFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldContainsFold(FieldLink, v))
|
|
}
|
|
|
|
// HashEQ applies the EQ predicate on the "hash" field.
|
|
func HashEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldHash, v))
|
|
}
|
|
|
|
// HashNEQ applies the NEQ predicate on the "hash" field.
|
|
func HashNEQ(v string) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldHash, v))
|
|
}
|
|
|
|
// HashIn applies the In predicate on the "hash" field.
|
|
func HashIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldHash, vs...))
|
|
}
|
|
|
|
// HashNotIn applies the NotIn predicate on the "hash" field.
|
|
func HashNotIn(vs ...string) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldHash, vs...))
|
|
}
|
|
|
|
// HashGT applies the GT predicate on the "hash" field.
|
|
func HashGT(v string) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldHash, v))
|
|
}
|
|
|
|
// HashGTE applies the GTE predicate on the "hash" field.
|
|
func HashGTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldHash, v))
|
|
}
|
|
|
|
// HashLT applies the LT predicate on the "hash" field.
|
|
func HashLT(v string) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldHash, v))
|
|
}
|
|
|
|
// HashLTE applies the LTE predicate on the "hash" field.
|
|
func HashLTE(v string) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldHash, v))
|
|
}
|
|
|
|
// HashContains applies the Contains predicate on the "hash" field.
|
|
func HashContains(v string) predicate.History {
|
|
return predicate.History(sql.FieldContains(FieldHash, v))
|
|
}
|
|
|
|
// HashHasPrefix applies the HasPrefix predicate on the "hash" field.
|
|
func HashHasPrefix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasPrefix(FieldHash, v))
|
|
}
|
|
|
|
// HashHasSuffix applies the HasSuffix predicate on the "hash" field.
|
|
func HashHasSuffix(v string) predicate.History {
|
|
return predicate.History(sql.FieldHasSuffix(FieldHash, v))
|
|
}
|
|
|
|
// HashIsNil applies the IsNil predicate on the "hash" field.
|
|
func HashIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldHash))
|
|
}
|
|
|
|
// HashNotNil applies the NotNil predicate on the "hash" field.
|
|
func HashNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldHash))
|
|
}
|
|
|
|
// HashEqualFold applies the EqualFold predicate on the "hash" field.
|
|
func HashEqualFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldEqualFold(FieldHash, v))
|
|
}
|
|
|
|
// HashContainsFold applies the ContainsFold predicate on the "hash" field.
|
|
func HashContainsFold(v string) predicate.History {
|
|
return predicate.History(sql.FieldContainsFold(FieldHash, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v Status) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v Status) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...Status) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...Status) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// CreateTimeEQ applies the EQ predicate on the "create_time" field.
|
|
func CreateTimeEQ(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldEQ(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
|
|
func CreateTimeNEQ(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldNEQ(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeIn applies the In predicate on the "create_time" field.
|
|
func CreateTimeIn(vs ...time.Time) predicate.History {
|
|
return predicate.History(sql.FieldIn(FieldCreateTime, vs...))
|
|
}
|
|
|
|
// CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
|
|
func CreateTimeNotIn(vs ...time.Time) predicate.History {
|
|
return predicate.History(sql.FieldNotIn(FieldCreateTime, vs...))
|
|
}
|
|
|
|
// CreateTimeGT applies the GT predicate on the "create_time" field.
|
|
func CreateTimeGT(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldGT(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeGTE applies the GTE predicate on the "create_time" field.
|
|
func CreateTimeGTE(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldGTE(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeLT applies the LT predicate on the "create_time" field.
|
|
func CreateTimeLT(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldLT(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeLTE applies the LTE predicate on the "create_time" field.
|
|
func CreateTimeLTE(v time.Time) predicate.History {
|
|
return predicate.History(sql.FieldLTE(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeIsNil applies the IsNil predicate on the "create_time" field.
|
|
func CreateTimeIsNil() predicate.History {
|
|
return predicate.History(sql.FieldIsNull(FieldCreateTime))
|
|
}
|
|
|
|
// CreateTimeNotNil applies the NotNil predicate on the "create_time" field.
|
|
func CreateTimeNotNil() predicate.History {
|
|
return predicate.History(sql.FieldNotNull(FieldCreateTime))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.History) predicate.History {
|
|
return predicate.History(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.History) predicate.History {
|
|
return predicate.History(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.History) predicate.History {
|
|
return predicate.History(sql.NotPredicates(p))
|
|
}
|