Documentation
¶
Index ¶
- Constants
- Variables
- func AbsoluteNumber(v uint16) predicate.Episode
- func AbsoluteNumberEQ(v uint16) predicate.Episode
- func AbsoluteNumberGT(v uint16) predicate.Episode
- func AbsoluteNumberGTE(v uint16) predicate.Episode
- func AbsoluteNumberIn(vs ...uint16) predicate.Episode
- func AbsoluteNumberIsNil() predicate.Episode
- func AbsoluteNumberLT(v uint16) predicate.Episode
- func AbsoluteNumberLTE(v uint16) predicate.Episode
- func AbsoluteNumberNEQ(v uint16) predicate.Episode
- func AbsoluteNumberNotIn(vs ...uint16) predicate.Episode
- func AbsoluteNumberNotNil() predicate.Episode
- func AirDate(v time.Time) predicate.Episode
- func AirDateEQ(v time.Time) predicate.Episode
- func AirDateGT(v time.Time) predicate.Episode
- func AirDateGTE(v time.Time) predicate.Episode
- func AirDateIn(vs ...time.Time) predicate.Episode
- func AirDateIsNil() predicate.Episode
- func AirDateLT(v time.Time) predicate.Episode
- func AirDateLTE(v time.Time) predicate.Episode
- func AirDateNEQ(v time.Time) predicate.Episode
- func AirDateNotIn(vs ...time.Time) predicate.Episode
- func AirDateNotNil() predicate.Episode
- func And(predicates ...predicate.Episode) predicate.Episode
- func CreateTime(v time.Time) predicate.Episode
- func CreateTimeEQ(v time.Time) predicate.Episode
- func CreateTimeGT(v time.Time) predicate.Episode
- func CreateTimeGTE(v time.Time) predicate.Episode
- func CreateTimeIn(vs ...time.Time) predicate.Episode
- func CreateTimeLT(v time.Time) predicate.Episode
- func CreateTimeLTE(v time.Time) predicate.Episode
- func CreateTimeNEQ(v time.Time) predicate.Episode
- func CreateTimeNotIn(vs ...time.Time) predicate.Episode
- func GrabFailures(v uint8) predicate.Episode
- func GrabFailuresEQ(v uint8) predicate.Episode
- func GrabFailuresGT(v uint8) predicate.Episode
- func GrabFailuresGTE(v uint8) predicate.Episode
- func GrabFailuresIn(vs ...uint8) predicate.Episode
- func GrabFailuresLT(v uint8) predicate.Episode
- func GrabFailuresLTE(v uint8) predicate.Episode
- func GrabFailuresNEQ(v uint8) predicate.Episode
- func GrabFailuresNotIn(vs ...uint8) predicate.Episode
- func HasDownloadRecords() predicate.Episode
- func HasDownloadRecordsWith(preds ...predicate.DownloadRecord) predicate.Episode
- func HasMediaFiles() predicate.Episode
- func HasMediaFilesWith(preds ...predicate.MediaFile) predicate.Episode
- func HasSeason() predicate.Episode
- func HasSeasonWith(preds ...predicate.Season) predicate.Episode
- func ID(id uint32) predicate.Episode
- func IDEQ(id uint32) predicate.Episode
- func IDGT(id uint32) predicate.Episode
- func IDGTE(id uint32) predicate.Episode
- func IDIn(ids ...uint32) predicate.Episode
- func IDLT(id uint32) predicate.Episode
- func IDLTE(id uint32) predicate.Episode
- func IDNEQ(id uint32) predicate.Episode
- func IDNotIn(ids ...uint32) predicate.Episode
- func LastSearchAt(v time.Time) predicate.Episode
- func LastSearchAtEQ(v time.Time) predicate.Episode
- func LastSearchAtGT(v time.Time) predicate.Episode
- func LastSearchAtGTE(v time.Time) predicate.Episode
- func LastSearchAtIn(vs ...time.Time) predicate.Episode
- func LastSearchAtIsNil() predicate.Episode
- func LastSearchAtLT(v time.Time) predicate.Episode
- func LastSearchAtLTE(v time.Time) predicate.Episode
- func LastSearchAtNEQ(v time.Time) predicate.Episode
- func LastSearchAtNotIn(vs ...time.Time) predicate.Episode
- func LastSearchAtNotNil() predicate.Episode
- func Monitored(v bool) predicate.Episode
- func MonitoredEQ(v bool) predicate.Episode
- func MonitoredNEQ(v bool) predicate.Episode
- func Not(p predicate.Episode) predicate.Episode
- func Number(v uint16) predicate.Episode
- func NumberEQ(v uint16) predicate.Episode
- func NumberGT(v uint16) predicate.Episode
- func NumberGTE(v uint16) predicate.Episode
- func NumberIn(vs ...uint16) predicate.Episode
- func NumberLT(v uint16) predicate.Episode
- func NumberLTE(v uint16) predicate.Episode
- func NumberNEQ(v uint16) predicate.Episode
- func NumberNotIn(vs ...uint16) predicate.Episode
- func Or(predicates ...predicate.Episode) predicate.Episode
- func StatusEQ(v Status) predicate.Episode
- func StatusIn(vs ...Status) predicate.Episode
- func StatusNEQ(v Status) predicate.Episode
- func StatusNotIn(vs ...Status) predicate.Episode
- func StatusValidator(s Status) error
- func Title(v string) predicate.Episode
- func TitleContains(v string) predicate.Episode
- func TitleContainsFold(v string) predicate.Episode
- func TitleEQ(v string) predicate.Episode
- func TitleEqualFold(v string) predicate.Episode
- func TitleGT(v string) predicate.Episode
- func TitleGTE(v string) predicate.Episode
- func TitleHasPrefix(v string) predicate.Episode
- func TitleHasSuffix(v string) predicate.Episode
- func TitleIn(vs ...string) predicate.Episode
- func TitleIsNil() predicate.Episode
- func TitleLT(v string) predicate.Episode
- func TitleLTE(v string) predicate.Episode
- func TitleNEQ(v string) predicate.Episode
- func TitleNotIn(vs ...string) predicate.Episode
- func TitleNotNil() predicate.Episode
- func UpdateTime(v time.Time) predicate.Episode
- func UpdateTimeEQ(v time.Time) predicate.Episode
- func UpdateTimeGT(v time.Time) predicate.Episode
- func UpdateTimeGTE(v time.Time) predicate.Episode
- func UpdateTimeIn(vs ...time.Time) predicate.Episode
- func UpdateTimeLT(v time.Time) predicate.Episode
- func UpdateTimeLTE(v time.Time) predicate.Episode
- func UpdateTimeNEQ(v time.Time) predicate.Episode
- func UpdateTimeNotIn(vs ...time.Time) predicate.Episode
- func ValidColumn(column string) bool
- type OrderOption
- func ByAbsoluteNumber(opts ...sql.OrderTermOption) OrderOption
- func ByAirDate(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDownloadRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDownloadRecordsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGrabFailures(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastSearchAt(opts ...sql.OrderTermOption) OrderOption
- func ByMediaFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMediaFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByMonitored(opts ...sql.OrderTermOption) OrderOption
- func ByNumber(opts ...sql.OrderTermOption) OrderOption
- func BySeasonField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the episode type in the database. Label = "episode" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldAirDate holds the string denoting the air_date field in the database. FieldAirDate = "air_date" // FieldMonitored holds the string denoting the monitored field in the database. FieldMonitored = "monitored" // FieldAbsoluteNumber holds the string denoting the absolute_number field in the database. FieldAbsoluteNumber = "absolute_number" // FieldGrabFailures holds the string denoting the grab_failures field in the database. FieldGrabFailures = "grab_failures" // FieldLastSearchAt holds the string denoting the last_search_at field in the database. FieldLastSearchAt = "last_search_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeSeason holds the string denoting the season edge name in mutations. EdgeSeason = "season" // EdgeDownloadRecords holds the string denoting the download_records edge name in mutations. EdgeDownloadRecords = "download_records" // EdgeMediaFiles holds the string denoting the media_files edge name in mutations. EdgeMediaFiles = "media_files" // Table holds the table name of the episode in the database. Table = "episodes" // SeasonTable is the table that holds the season relation/edge. SeasonTable = "episodes" // SeasonInverseTable is the table name for the Season entity. // It exists in this package in order to avoid circular dependency with the "season" package. SeasonInverseTable = "seasons" // SeasonColumn is the table column denoting the season relation/edge. SeasonColumn = "season_episodes" // DownloadRecordsTable is the table that holds the download_records relation/edge. DownloadRecordsTable = "download_records" // DownloadRecordsInverseTable is the table name for the DownloadRecord entity. // It exists in this package in order to avoid circular dependency with the "downloadrecord" package. DownloadRecordsInverseTable = "download_records" // DownloadRecordsColumn is the table column denoting the download_records relation/edge. DownloadRecordsColumn = "episode_download_records" // MediaFilesTable is the table that holds the media_files relation/edge. MediaFilesTable = "media_files" // MediaFilesInverseTable is the table name for the MediaFile entity. // It exists in this package in order to avoid circular dependency with the "mediafile" package. MediaFilesInverseTable = "media_files" // MediaFilesColumn is the table column denoting the media_files relation/edge. MediaFilesColumn = "episode_media_files" )
const DefaultStatus = StatusWanted
StatusWanted is the default value of the Status enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // DefaultMonitored holds the default value on creation for the "monitored" field. DefaultMonitored bool // DefaultAbsoluteNumber holds the default value on creation for the "absolute_number" field. DefaultAbsoluteNumber uint16 // DefaultGrabFailures holds the default value on creation for the "grab_failures" field. DefaultGrabFailures uint8 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldNumber, FieldTitle, FieldAirDate, FieldMonitored, FieldAbsoluteNumber, FieldGrabFailures, FieldLastSearchAt, FieldStatus, }
Columns holds all SQL columns for episode fields.
var ForeignKeys = []string{
"season_episodes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "episodes" table and are not defined as standalone fields in the schema.
Functions ¶
func AbsoluteNumber ¶
AbsoluteNumber applies equality check predicate on the "absolute_number" field. It's identical to AbsoluteNumberEQ.
func AbsoluteNumberEQ ¶
AbsoluteNumberEQ applies the EQ predicate on the "absolute_number" field.
func AbsoluteNumberGT ¶
AbsoluteNumberGT applies the GT predicate on the "absolute_number" field.
func AbsoluteNumberGTE ¶
AbsoluteNumberGTE applies the GTE predicate on the "absolute_number" field.
func AbsoluteNumberIn ¶
AbsoluteNumberIn applies the In predicate on the "absolute_number" field.
func AbsoluteNumberIsNil ¶
AbsoluteNumberIsNil applies the IsNil predicate on the "absolute_number" field.
func AbsoluteNumberLT ¶
AbsoluteNumberLT applies the LT predicate on the "absolute_number" field.
func AbsoluteNumberLTE ¶
AbsoluteNumberLTE applies the LTE predicate on the "absolute_number" field.
func AbsoluteNumberNEQ ¶
AbsoluteNumberNEQ applies the NEQ predicate on the "absolute_number" field.
func AbsoluteNumberNotIn ¶
AbsoluteNumberNotIn applies the NotIn predicate on the "absolute_number" field.
func AbsoluteNumberNotNil ¶
AbsoluteNumberNotNil applies the NotNil predicate on the "absolute_number" field.
func AirDate ¶
AirDate applies equality check predicate on the "air_date" field. It's identical to AirDateEQ.
func AirDateGTE ¶
AirDateGTE applies the GTE predicate on the "air_date" field.
func AirDateIsNil ¶
AirDateIsNil applies the IsNil predicate on the "air_date" field.
func AirDateLTE ¶
AirDateLTE applies the LTE predicate on the "air_date" field.
func AirDateNEQ ¶
AirDateNEQ applies the NEQ predicate on the "air_date" field.
func AirDateNotIn ¶
AirDateNotIn applies the NotIn predicate on the "air_date" field.
func AirDateNotNil ¶
AirDateNotNil applies the NotNil predicate on the "air_date" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func GrabFailures ¶
GrabFailures applies equality check predicate on the "grab_failures" field. It's identical to GrabFailuresEQ.
func GrabFailuresEQ ¶
GrabFailuresEQ applies the EQ predicate on the "grab_failures" field.
func GrabFailuresGT ¶
GrabFailuresGT applies the GT predicate on the "grab_failures" field.
func GrabFailuresGTE ¶
GrabFailuresGTE applies the GTE predicate on the "grab_failures" field.
func GrabFailuresIn ¶
GrabFailuresIn applies the In predicate on the "grab_failures" field.
func GrabFailuresLT ¶
GrabFailuresLT applies the LT predicate on the "grab_failures" field.
func GrabFailuresLTE ¶
GrabFailuresLTE applies the LTE predicate on the "grab_failures" field.
func GrabFailuresNEQ ¶
GrabFailuresNEQ applies the NEQ predicate on the "grab_failures" field.
func GrabFailuresNotIn ¶
GrabFailuresNotIn applies the NotIn predicate on the "grab_failures" field.
func HasDownloadRecords ¶
HasDownloadRecords applies the HasEdge predicate on the "download_records" edge.
func HasDownloadRecordsWith ¶
func HasDownloadRecordsWith(preds ...predicate.DownloadRecord) predicate.Episode
HasDownloadRecordsWith applies the HasEdge predicate on the "download_records" edge with a given conditions (other predicates).
func HasMediaFiles ¶
HasMediaFiles applies the HasEdge predicate on the "media_files" edge.
func HasMediaFilesWith ¶
HasMediaFilesWith applies the HasEdge predicate on the "media_files" edge with a given conditions (other predicates).
func HasSeasonWith ¶
HasSeasonWith applies the HasEdge predicate on the "season" edge with a given conditions (other predicates).
func LastSearchAt ¶
LastSearchAt applies equality check predicate on the "last_search_at" field. It's identical to LastSearchAtEQ.
func LastSearchAtEQ ¶
LastSearchAtEQ applies the EQ predicate on the "last_search_at" field.
func LastSearchAtGT ¶
LastSearchAtGT applies the GT predicate on the "last_search_at" field.
func LastSearchAtGTE ¶
LastSearchAtGTE applies the GTE predicate on the "last_search_at" field.
func LastSearchAtIn ¶
LastSearchAtIn applies the In predicate on the "last_search_at" field.
func LastSearchAtIsNil ¶
LastSearchAtIsNil applies the IsNil predicate on the "last_search_at" field.
func LastSearchAtLT ¶
LastSearchAtLT applies the LT predicate on the "last_search_at" field.
func LastSearchAtLTE ¶
LastSearchAtLTE applies the LTE predicate on the "last_search_at" field.
func LastSearchAtNEQ ¶
LastSearchAtNEQ applies the NEQ predicate on the "last_search_at" field.
func LastSearchAtNotIn ¶
LastSearchAtNotIn applies the NotIn predicate on the "last_search_at" field.
func LastSearchAtNotNil ¶
LastSearchAtNotNil applies the NotNil predicate on the "last_search_at" field.
func Monitored ¶
Monitored applies equality check predicate on the "monitored" field. It's identical to MonitoredEQ.
func MonitoredEQ ¶
MonitoredEQ applies the EQ predicate on the "monitored" field.
func MonitoredNEQ ¶
MonitoredNEQ applies the NEQ predicate on the "monitored" field.
func Number ¶
Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func NumberNotIn ¶
NumberNotIn applies the NotIn predicate on the "number" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil predicate on the "title" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Episode queries.
func ByAbsoluteNumber ¶
func ByAbsoluteNumber(opts ...sql.OrderTermOption) OrderOption
ByAbsoluteNumber orders the results by the absolute_number field.
func ByAirDate ¶
func ByAirDate(opts ...sql.OrderTermOption) OrderOption
ByAirDate orders the results by the air_date field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDownloadRecords ¶
func ByDownloadRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDownloadRecords orders the results by download_records terms.
func ByDownloadRecordsCount ¶
func ByDownloadRecordsCount(opts ...sql.OrderTermOption) OrderOption
ByDownloadRecordsCount orders the results by download_records count.
func ByGrabFailures ¶
func ByGrabFailures(opts ...sql.OrderTermOption) OrderOption
ByGrabFailures orders the results by the grab_failures field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastSearchAt ¶
func ByLastSearchAt(opts ...sql.OrderTermOption) OrderOption
ByLastSearchAt orders the results by the last_search_at field.
func ByMediaFiles ¶
func ByMediaFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMediaFiles orders the results by media_files terms.
func ByMediaFilesCount ¶
func ByMediaFilesCount(opts ...sql.OrderTermOption) OrderOption
ByMediaFilesCount orders the results by media_files count.
func ByMonitored ¶
func ByMonitored(opts ...sql.OrderTermOption) OrderOption
ByMonitored orders the results by the monitored field.
func ByNumber ¶
func ByNumber(opts ...sql.OrderTermOption) OrderOption
ByNumber orders the results by the number field.
func BySeasonField ¶
func BySeasonField(field string, opts ...sql.OrderTermOption) OrderOption
BySeasonField orders the results by season field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.