episode

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultStatus = StatusWanted

StatusWanted is the default value of the Status enum.

Variables

View Source
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
)

Columns holds all SQL columns for episode fields.

View Source
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

func AbsoluteNumber(v uint16) predicate.Episode

AbsoluteNumber applies equality check predicate on the "absolute_number" field. It's identical to AbsoluteNumberEQ.

func AbsoluteNumberEQ

func AbsoluteNumberEQ(v uint16) predicate.Episode

AbsoluteNumberEQ applies the EQ predicate on the "absolute_number" field.

func AbsoluteNumberGT

func AbsoluteNumberGT(v uint16) predicate.Episode

AbsoluteNumberGT applies the GT predicate on the "absolute_number" field.

func AbsoluteNumberGTE

func AbsoluteNumberGTE(v uint16) predicate.Episode

AbsoluteNumberGTE applies the GTE predicate on the "absolute_number" field.

func AbsoluteNumberIn

func AbsoluteNumberIn(vs ...uint16) predicate.Episode

AbsoluteNumberIn applies the In predicate on the "absolute_number" field.

func AbsoluteNumberIsNil

func AbsoluteNumberIsNil() predicate.Episode

AbsoluteNumberIsNil applies the IsNil predicate on the "absolute_number" field.

func AbsoluteNumberLT

func AbsoluteNumberLT(v uint16) predicate.Episode

AbsoluteNumberLT applies the LT predicate on the "absolute_number" field.

func AbsoluteNumberLTE

func AbsoluteNumberLTE(v uint16) predicate.Episode

AbsoluteNumberLTE applies the LTE predicate on the "absolute_number" field.

func AbsoluteNumberNEQ

func AbsoluteNumberNEQ(v uint16) predicate.Episode

AbsoluteNumberNEQ applies the NEQ predicate on the "absolute_number" field.

func AbsoluteNumberNotIn

func AbsoluteNumberNotIn(vs ...uint16) predicate.Episode

AbsoluteNumberNotIn applies the NotIn predicate on the "absolute_number" field.

func AbsoluteNumberNotNil

func AbsoluteNumberNotNil() predicate.Episode

AbsoluteNumberNotNil applies the NotNil predicate on the "absolute_number" field.

func AirDate

func AirDate(v time.Time) predicate.Episode

AirDate applies equality check predicate on the "air_date" field. It's identical to AirDateEQ.

func AirDateEQ

func AirDateEQ(v time.Time) predicate.Episode

AirDateEQ applies the EQ predicate on the "air_date" field.

func AirDateGT

func AirDateGT(v time.Time) predicate.Episode

AirDateGT applies the GT predicate on the "air_date" field.

func AirDateGTE

func AirDateGTE(v time.Time) predicate.Episode

AirDateGTE applies the GTE predicate on the "air_date" field.

func AirDateIn

func AirDateIn(vs ...time.Time) predicate.Episode

AirDateIn applies the In predicate on the "air_date" field.

func AirDateIsNil

func AirDateIsNil() predicate.Episode

AirDateIsNil applies the IsNil predicate on the "air_date" field.

func AirDateLT

func AirDateLT(v time.Time) predicate.Episode

AirDateLT applies the LT predicate on the "air_date" field.

func AirDateLTE

func AirDateLTE(v time.Time) predicate.Episode

AirDateLTE applies the LTE predicate on the "air_date" field.

func AirDateNEQ

func AirDateNEQ(v time.Time) predicate.Episode

AirDateNEQ applies the NEQ predicate on the "air_date" field.

func AirDateNotIn

func AirDateNotIn(vs ...time.Time) predicate.Episode

AirDateNotIn applies the NotIn predicate on the "air_date" field.

func AirDateNotNil

func AirDateNotNil() predicate.Episode

AirDateNotNil applies the NotNil predicate on the "air_date" field.

func And

func And(predicates ...predicate.Episode) predicate.Episode

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Episode

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Episode

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Episode

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Episode

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Episode

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Episode

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Episode

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Episode

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Episode

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func GrabFailures

func GrabFailures(v uint8) predicate.Episode

GrabFailures applies equality check predicate on the "grab_failures" field. It's identical to GrabFailuresEQ.

func GrabFailuresEQ

func GrabFailuresEQ(v uint8) predicate.Episode

GrabFailuresEQ applies the EQ predicate on the "grab_failures" field.

func GrabFailuresGT

func GrabFailuresGT(v uint8) predicate.Episode

GrabFailuresGT applies the GT predicate on the "grab_failures" field.

func GrabFailuresGTE

func GrabFailuresGTE(v uint8) predicate.Episode

GrabFailuresGTE applies the GTE predicate on the "grab_failures" field.

func GrabFailuresIn

func GrabFailuresIn(vs ...uint8) predicate.Episode

GrabFailuresIn applies the In predicate on the "grab_failures" field.

func GrabFailuresLT

func GrabFailuresLT(v uint8) predicate.Episode

GrabFailuresLT applies the LT predicate on the "grab_failures" field.

func GrabFailuresLTE

func GrabFailuresLTE(v uint8) predicate.Episode

GrabFailuresLTE applies the LTE predicate on the "grab_failures" field.

func GrabFailuresNEQ

func GrabFailuresNEQ(v uint8) predicate.Episode

GrabFailuresNEQ applies the NEQ predicate on the "grab_failures" field.

func GrabFailuresNotIn

func GrabFailuresNotIn(vs ...uint8) predicate.Episode

GrabFailuresNotIn applies the NotIn predicate on the "grab_failures" field.

func HasDownloadRecords

func HasDownloadRecords() predicate.Episode

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

func HasMediaFiles() predicate.Episode

HasMediaFiles applies the HasEdge predicate on the "media_files" edge.

func HasMediaFilesWith

func HasMediaFilesWith(preds ...predicate.MediaFile) predicate.Episode

HasMediaFilesWith applies the HasEdge predicate on the "media_files" edge with a given conditions (other predicates).

func HasSeason

func HasSeason() predicate.Episode

HasSeason applies the HasEdge predicate on the "season" edge.

func HasSeasonWith

func HasSeasonWith(preds ...predicate.Season) predicate.Episode

HasSeasonWith applies the HasEdge predicate on the "season" edge with a given conditions (other predicates).

func ID

func ID(id uint32) predicate.Episode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Episode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Episode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Episode

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint32) predicate.Episode

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Episode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Episode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Episode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.Episode

IDNotIn applies the NotIn predicate on the ID field.

func LastSearchAt

func LastSearchAt(v time.Time) predicate.Episode

LastSearchAt applies equality check predicate on the "last_search_at" field. It's identical to LastSearchAtEQ.

func LastSearchAtEQ

func LastSearchAtEQ(v time.Time) predicate.Episode

LastSearchAtEQ applies the EQ predicate on the "last_search_at" field.

func LastSearchAtGT

func LastSearchAtGT(v time.Time) predicate.Episode

LastSearchAtGT applies the GT predicate on the "last_search_at" field.

func LastSearchAtGTE

func LastSearchAtGTE(v time.Time) predicate.Episode

LastSearchAtGTE applies the GTE predicate on the "last_search_at" field.

func LastSearchAtIn

func LastSearchAtIn(vs ...time.Time) predicate.Episode

LastSearchAtIn applies the In predicate on the "last_search_at" field.

func LastSearchAtIsNil

func LastSearchAtIsNil() predicate.Episode

LastSearchAtIsNil applies the IsNil predicate on the "last_search_at" field.

func LastSearchAtLT

func LastSearchAtLT(v time.Time) predicate.Episode

LastSearchAtLT applies the LT predicate on the "last_search_at" field.

func LastSearchAtLTE

func LastSearchAtLTE(v time.Time) predicate.Episode

LastSearchAtLTE applies the LTE predicate on the "last_search_at" field.

func LastSearchAtNEQ

func LastSearchAtNEQ(v time.Time) predicate.Episode

LastSearchAtNEQ applies the NEQ predicate on the "last_search_at" field.

func LastSearchAtNotIn

func LastSearchAtNotIn(vs ...time.Time) predicate.Episode

LastSearchAtNotIn applies the NotIn predicate on the "last_search_at" field.

func LastSearchAtNotNil

func LastSearchAtNotNil() predicate.Episode

LastSearchAtNotNil applies the NotNil predicate on the "last_search_at" field.

func Monitored

func Monitored(v bool) predicate.Episode

Monitored applies equality check predicate on the "monitored" field. It's identical to MonitoredEQ.

func MonitoredEQ

func MonitoredEQ(v bool) predicate.Episode

MonitoredEQ applies the EQ predicate on the "monitored" field.

func MonitoredNEQ

func MonitoredNEQ(v bool) predicate.Episode

MonitoredNEQ applies the NEQ predicate on the "monitored" field.

func Not

Not applies the not operator on the given predicate.

func Number

func Number(v uint16) predicate.Episode

Number applies equality check predicate on the "number" field. It's identical to NumberEQ.

func NumberEQ

func NumberEQ(v uint16) predicate.Episode

NumberEQ applies the EQ predicate on the "number" field.

func NumberGT

func NumberGT(v uint16) predicate.Episode

NumberGT applies the GT predicate on the "number" field.

func NumberGTE

func NumberGTE(v uint16) predicate.Episode

NumberGTE applies the GTE predicate on the "number" field.

func NumberIn

func NumberIn(vs ...uint16) predicate.Episode

NumberIn applies the In predicate on the "number" field.

func NumberLT

func NumberLT(v uint16) predicate.Episode

NumberLT applies the LT predicate on the "number" field.

func NumberLTE

func NumberLTE(v uint16) predicate.Episode

NumberLTE applies the LTE predicate on the "number" field.

func NumberNEQ

func NumberNEQ(v uint16) predicate.Episode

NumberNEQ applies the NEQ predicate on the "number" field.

func NumberNotIn

func NumberNotIn(vs ...uint16) predicate.Episode

NumberNotIn applies the NotIn predicate on the "number" field.

func Or

func Or(predicates ...predicate.Episode) predicate.Episode

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v Status) predicate.Episode

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Episode

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Episode

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Episode

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func Title

func Title(v string) predicate.Episode

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Episode

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Episode

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Episode

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Episode

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Episode

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Episode

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Episode

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Episode

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Episode

TitleIn applies the In predicate on the "title" field.

func TitleIsNil

func TitleIsNil() predicate.Episode

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Episode

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Episode

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Episode

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Episode

TitleNotIn applies the NotIn predicate on the "title" field.

func TitleNotNil

func TitleNotNil() predicate.Episode

TitleNotNil applies the NotNil predicate on the "title" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Episode

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Episode

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Episode

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Episode

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Episode

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Episode

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Episode

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Episode

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Episode

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusWanted      Status = "wanted"
	StatusDownloading Status = "downloading"
	StatusPaused      Status = "paused"
	StatusAvailable   Status = "available"
	StatusSkipped     Status = "skipped"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL