mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 23:21:00 +08:00
529 lines
19 KiB
Go
529 lines
19 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package episode
|
|
|
|
import (
|
|
"polaris/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// MediaID applies equality check predicate on the "media_id" field. It's identical to MediaIDEQ.
|
|
func MediaID(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldMediaID, v))
|
|
}
|
|
|
|
// SeasonNumber applies equality check predicate on the "season_number" field. It's identical to SeasonNumberEQ.
|
|
func SeasonNumber(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// EpisodeNumber applies equality check predicate on the "episode_number" field. It's identical to EpisodeNumberEQ.
|
|
func EpisodeNumber(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
|
|
func Title(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldTitle, v))
|
|
}
|
|
|
|
// Overview applies equality check predicate on the "overview" field. It's identical to OverviewEQ.
|
|
func Overview(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldOverview, v))
|
|
}
|
|
|
|
// AirDate applies equality check predicate on the "air_date" field. It's identical to AirDateEQ.
|
|
func AirDate(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldAirDate, v))
|
|
}
|
|
|
|
// FileInStorage applies equality check predicate on the "file_in_storage" field. It's identical to FileInStorageEQ.
|
|
func FileInStorage(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldFileInStorage, v))
|
|
}
|
|
|
|
// MediaIDEQ applies the EQ predicate on the "media_id" field.
|
|
func MediaIDEQ(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDNEQ applies the NEQ predicate on the "media_id" field.
|
|
func MediaIDNEQ(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldMediaID, v))
|
|
}
|
|
|
|
// MediaIDIn applies the In predicate on the "media_id" field.
|
|
func MediaIDIn(vs ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldMediaID, vs...))
|
|
}
|
|
|
|
// MediaIDNotIn applies the NotIn predicate on the "media_id" field.
|
|
func MediaIDNotIn(vs ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldMediaID, vs...))
|
|
}
|
|
|
|
// MediaIDIsNil applies the IsNil predicate on the "media_id" field.
|
|
func MediaIDIsNil() predicate.Episode {
|
|
return predicate.Episode(sql.FieldIsNull(FieldMediaID))
|
|
}
|
|
|
|
// MediaIDNotNil applies the NotNil predicate on the "media_id" field.
|
|
func MediaIDNotNil() predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotNull(FieldMediaID))
|
|
}
|
|
|
|
// SeasonNumberEQ applies the EQ predicate on the "season_number" field.
|
|
func SeasonNumberEQ(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// SeasonNumberNEQ applies the NEQ predicate on the "season_number" field.
|
|
func SeasonNumberNEQ(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// SeasonNumberIn applies the In predicate on the "season_number" field.
|
|
func SeasonNumberIn(vs ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldSeasonNumber, vs...))
|
|
}
|
|
|
|
// SeasonNumberNotIn applies the NotIn predicate on the "season_number" field.
|
|
func SeasonNumberNotIn(vs ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldSeasonNumber, vs...))
|
|
}
|
|
|
|
// SeasonNumberGT applies the GT predicate on the "season_number" field.
|
|
func SeasonNumberGT(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// SeasonNumberGTE applies the GTE predicate on the "season_number" field.
|
|
func SeasonNumberGTE(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// SeasonNumberLT applies the LT predicate on the "season_number" field.
|
|
func SeasonNumberLT(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// SeasonNumberLTE applies the LTE predicate on the "season_number" field.
|
|
func SeasonNumberLTE(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldSeasonNumber, v))
|
|
}
|
|
|
|
// EpisodeNumberEQ applies the EQ predicate on the "episode_number" field.
|
|
func EpisodeNumberEQ(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// EpisodeNumberNEQ applies the NEQ predicate on the "episode_number" field.
|
|
func EpisodeNumberNEQ(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// EpisodeNumberIn applies the In predicate on the "episode_number" field.
|
|
func EpisodeNumberIn(vs ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldEpisodeNumber, vs...))
|
|
}
|
|
|
|
// EpisodeNumberNotIn applies the NotIn predicate on the "episode_number" field.
|
|
func EpisodeNumberNotIn(vs ...int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldEpisodeNumber, vs...))
|
|
}
|
|
|
|
// EpisodeNumberGT applies the GT predicate on the "episode_number" field.
|
|
func EpisodeNumberGT(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// EpisodeNumberGTE applies the GTE predicate on the "episode_number" field.
|
|
func EpisodeNumberGTE(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// EpisodeNumberLT applies the LT predicate on the "episode_number" field.
|
|
func EpisodeNumberLT(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// EpisodeNumberLTE applies the LTE predicate on the "episode_number" field.
|
|
func EpisodeNumberLTE(v int) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldEpisodeNumber, v))
|
|
}
|
|
|
|
// TitleEQ applies the EQ predicate on the "title" field.
|
|
func TitleEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldTitle, v))
|
|
}
|
|
|
|
// TitleNEQ applies the NEQ predicate on the "title" field.
|
|
func TitleNEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldTitle, v))
|
|
}
|
|
|
|
// TitleIn applies the In predicate on the "title" field.
|
|
func TitleIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldTitle, vs...))
|
|
}
|
|
|
|
// TitleNotIn applies the NotIn predicate on the "title" field.
|
|
func TitleNotIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldTitle, vs...))
|
|
}
|
|
|
|
// TitleGT applies the GT predicate on the "title" field.
|
|
func TitleGT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldTitle, v))
|
|
}
|
|
|
|
// TitleGTE applies the GTE predicate on the "title" field.
|
|
func TitleGTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldTitle, v))
|
|
}
|
|
|
|
// TitleLT applies the LT predicate on the "title" field.
|
|
func TitleLT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldTitle, v))
|
|
}
|
|
|
|
// TitleLTE applies the LTE predicate on the "title" field.
|
|
func TitleLTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldTitle, v))
|
|
}
|
|
|
|
// TitleContains applies the Contains predicate on the "title" field.
|
|
func TitleContains(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContains(FieldTitle, v))
|
|
}
|
|
|
|
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
|
|
func TitleHasPrefix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasPrefix(FieldTitle, v))
|
|
}
|
|
|
|
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
|
|
func TitleHasSuffix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasSuffix(FieldTitle, v))
|
|
}
|
|
|
|
// TitleEqualFold applies the EqualFold predicate on the "title" field.
|
|
func TitleEqualFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEqualFold(FieldTitle, v))
|
|
}
|
|
|
|
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
|
|
func TitleContainsFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContainsFold(FieldTitle, v))
|
|
}
|
|
|
|
// OverviewEQ applies the EQ predicate on the "overview" field.
|
|
func OverviewEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewNEQ applies the NEQ predicate on the "overview" field.
|
|
func OverviewNEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewIn applies the In predicate on the "overview" field.
|
|
func OverviewIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldOverview, vs...))
|
|
}
|
|
|
|
// OverviewNotIn applies the NotIn predicate on the "overview" field.
|
|
func OverviewNotIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldOverview, vs...))
|
|
}
|
|
|
|
// OverviewGT applies the GT predicate on the "overview" field.
|
|
func OverviewGT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewGTE applies the GTE predicate on the "overview" field.
|
|
func OverviewGTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewLT applies the LT predicate on the "overview" field.
|
|
func OverviewLT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewLTE applies the LTE predicate on the "overview" field.
|
|
func OverviewLTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewContains applies the Contains predicate on the "overview" field.
|
|
func OverviewContains(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContains(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewHasPrefix applies the HasPrefix predicate on the "overview" field.
|
|
func OverviewHasPrefix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasPrefix(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewHasSuffix applies the HasSuffix predicate on the "overview" field.
|
|
func OverviewHasSuffix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasSuffix(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewEqualFold applies the EqualFold predicate on the "overview" field.
|
|
func OverviewEqualFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEqualFold(FieldOverview, v))
|
|
}
|
|
|
|
// OverviewContainsFold applies the ContainsFold predicate on the "overview" field.
|
|
func OverviewContainsFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContainsFold(FieldOverview, v))
|
|
}
|
|
|
|
// AirDateEQ applies the EQ predicate on the "air_date" field.
|
|
func AirDateEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateNEQ applies the NEQ predicate on the "air_date" field.
|
|
func AirDateNEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateIn applies the In predicate on the "air_date" field.
|
|
func AirDateIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldAirDate, vs...))
|
|
}
|
|
|
|
// AirDateNotIn applies the NotIn predicate on the "air_date" field.
|
|
func AirDateNotIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldAirDate, vs...))
|
|
}
|
|
|
|
// AirDateGT applies the GT predicate on the "air_date" field.
|
|
func AirDateGT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateGTE applies the GTE predicate on the "air_date" field.
|
|
func AirDateGTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateLT applies the LT predicate on the "air_date" field.
|
|
func AirDateLT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateLTE applies the LTE predicate on the "air_date" field.
|
|
func AirDateLTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateContains applies the Contains predicate on the "air_date" field.
|
|
func AirDateContains(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContains(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateHasPrefix applies the HasPrefix predicate on the "air_date" field.
|
|
func AirDateHasPrefix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasPrefix(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateHasSuffix applies the HasSuffix predicate on the "air_date" field.
|
|
func AirDateHasSuffix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasSuffix(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateEqualFold applies the EqualFold predicate on the "air_date" field.
|
|
func AirDateEqualFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEqualFold(FieldAirDate, v))
|
|
}
|
|
|
|
// AirDateContainsFold applies the ContainsFold predicate on the "air_date" field.
|
|
func AirDateContainsFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContainsFold(FieldAirDate, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v Status) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v Status) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...Status) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...Status) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// FileInStorageEQ applies the EQ predicate on the "file_in_storage" field.
|
|
func FileInStorageEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEQ(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageNEQ applies the NEQ predicate on the "file_in_storage" field.
|
|
func FileInStorageNEQ(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNEQ(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageIn applies the In predicate on the "file_in_storage" field.
|
|
func FileInStorageIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldIn(FieldFileInStorage, vs...))
|
|
}
|
|
|
|
// FileInStorageNotIn applies the NotIn predicate on the "file_in_storage" field.
|
|
func FileInStorageNotIn(vs ...string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotIn(FieldFileInStorage, vs...))
|
|
}
|
|
|
|
// FileInStorageGT applies the GT predicate on the "file_in_storage" field.
|
|
func FileInStorageGT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGT(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageGTE applies the GTE predicate on the "file_in_storage" field.
|
|
func FileInStorageGTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldGTE(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageLT applies the LT predicate on the "file_in_storage" field.
|
|
func FileInStorageLT(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLT(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageLTE applies the LTE predicate on the "file_in_storage" field.
|
|
func FileInStorageLTE(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldLTE(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageContains applies the Contains predicate on the "file_in_storage" field.
|
|
func FileInStorageContains(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContains(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageHasPrefix applies the HasPrefix predicate on the "file_in_storage" field.
|
|
func FileInStorageHasPrefix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasPrefix(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageHasSuffix applies the HasSuffix predicate on the "file_in_storage" field.
|
|
func FileInStorageHasSuffix(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldHasSuffix(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageIsNil applies the IsNil predicate on the "file_in_storage" field.
|
|
func FileInStorageIsNil() predicate.Episode {
|
|
return predicate.Episode(sql.FieldIsNull(FieldFileInStorage))
|
|
}
|
|
|
|
// FileInStorageNotNil applies the NotNil predicate on the "file_in_storage" field.
|
|
func FileInStorageNotNil() predicate.Episode {
|
|
return predicate.Episode(sql.FieldNotNull(FieldFileInStorage))
|
|
}
|
|
|
|
// FileInStorageEqualFold applies the EqualFold predicate on the "file_in_storage" field.
|
|
func FileInStorageEqualFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldEqualFold(FieldFileInStorage, v))
|
|
}
|
|
|
|
// FileInStorageContainsFold applies the ContainsFold predicate on the "file_in_storage" field.
|
|
func FileInStorageContainsFold(v string) predicate.Episode {
|
|
return predicate.Episode(sql.FieldContainsFold(FieldFileInStorage, v))
|
|
}
|
|
|
|
// HasMedia applies the HasEdge predicate on the "media" edge.
|
|
func HasMedia() predicate.Episode {
|
|
return predicate.Episode(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, MediaTable, MediaColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasMediaWith applies the HasEdge predicate on the "media" edge with a given conditions (other predicates).
|
|
func HasMediaWith(preds ...predicate.Media) predicate.Episode {
|
|
return predicate.Episode(func(s *sql.Selector) {
|
|
step := newMediaStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Episode) predicate.Episode {
|
|
return predicate.Episode(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Episode) predicate.Episode {
|
|
return predicate.Episode(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Episode) predicate.Episode {
|
|
return predicate.Episode(sql.NotPredicates(p))
|
|
}
|