Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MediaFile) predicate.MediaFile
- func CreateTime(v time.Time) predicate.MediaFile
- func CreateTimeEQ(v time.Time) predicate.MediaFile
- func CreateTimeGT(v time.Time) predicate.MediaFile
- func CreateTimeGTE(v time.Time) predicate.MediaFile
- func CreateTimeIn(vs ...time.Time) predicate.MediaFile
- func CreateTimeLT(v time.Time) predicate.MediaFile
- func CreateTimeLTE(v time.Time) predicate.MediaFile
- func CreateTimeNEQ(v time.Time) predicate.MediaFile
- func CreateTimeNotIn(vs ...time.Time) predicate.MediaFile
- func Format(v string) predicate.MediaFile
- func FormatContains(v string) predicate.MediaFile
- func FormatContainsFold(v string) predicate.MediaFile
- func FormatEQ(v string) predicate.MediaFile
- func FormatEqualFold(v string) predicate.MediaFile
- func FormatGT(v string) predicate.MediaFile
- func FormatGTE(v string) predicate.MediaFile
- func FormatHasPrefix(v string) predicate.MediaFile
- func FormatHasSuffix(v string) predicate.MediaFile
- func FormatIn(vs ...string) predicate.MediaFile
- func FormatIsNil() predicate.MediaFile
- func FormatLT(v string) predicate.MediaFile
- func FormatLTE(v string) predicate.MediaFile
- func FormatNEQ(v string) predicate.MediaFile
- func FormatNotIn(vs ...string) predicate.MediaFile
- func FormatNotNil() predicate.MediaFile
- func HasEpisode() predicate.MediaFile
- func HasEpisodeWith(preds ...predicate.Episode) predicate.MediaFile
- func HasMovie() predicate.MediaFile
- func HasMovieWith(preds ...predicate.Movie) predicate.MediaFile
- func ID(id uint32) predicate.MediaFile
- func IDEQ(id uint32) predicate.MediaFile
- func IDGT(id uint32) predicate.MediaFile
- func IDGTE(id uint32) predicate.MediaFile
- func IDIn(ids ...uint32) predicate.MediaFile
- func IDLT(id uint32) predicate.MediaFile
- func IDLTE(id uint32) predicate.MediaFile
- func IDNEQ(id uint32) predicate.MediaFile
- func IDNotIn(ids ...uint32) predicate.MediaFile
- func LastSeenAt(v time.Time) predicate.MediaFile
- func LastSeenAtEQ(v time.Time) predicate.MediaFile
- func LastSeenAtGT(v time.Time) predicate.MediaFile
- func LastSeenAtGTE(v time.Time) predicate.MediaFile
- func LastSeenAtIn(vs ...time.Time) predicate.MediaFile
- func LastSeenAtIsNil() predicate.MediaFile
- func LastSeenAtLT(v time.Time) predicate.MediaFile
- func LastSeenAtLTE(v time.Time) predicate.MediaFile
- func LastSeenAtNEQ(v time.Time) predicate.MediaFile
- func LastSeenAtNotIn(vs ...time.Time) predicate.MediaFile
- func LastSeenAtNotNil() predicate.MediaFile
- func Not(p predicate.MediaFile) predicate.MediaFile
- func Or(predicates ...predicate.MediaFile) predicate.MediaFile
- func Path(v string) predicate.MediaFile
- func PathContains(v string) predicate.MediaFile
- func PathContainsFold(v string) predicate.MediaFile
- func PathEQ(v string) predicate.MediaFile
- func PathEqualFold(v string) predicate.MediaFile
- func PathGT(v string) predicate.MediaFile
- func PathGTE(v string) predicate.MediaFile
- func PathHasPrefix(v string) predicate.MediaFile
- func PathHasSuffix(v string) predicate.MediaFile
- func PathIn(vs ...string) predicate.MediaFile
- func PathLT(v string) predicate.MediaFile
- func PathLTE(v string) predicate.MediaFile
- func PathNEQ(v string) predicate.MediaFile
- func PathNotIn(vs ...string) predicate.MediaFile
- func Quality(v string) predicate.MediaFile
- func QualityContains(v string) predicate.MediaFile
- func QualityContainsFold(v string) predicate.MediaFile
- func QualityEQ(v string) predicate.MediaFile
- func QualityEqualFold(v string) predicate.MediaFile
- func QualityGT(v string) predicate.MediaFile
- func QualityGTE(v string) predicate.MediaFile
- func QualityHasPrefix(v string) predicate.MediaFile
- func QualityHasSuffix(v string) predicate.MediaFile
- func QualityIn(vs ...string) predicate.MediaFile
- func QualityIsNil() predicate.MediaFile
- func QualityLT(v string) predicate.MediaFile
- func QualityLTE(v string) predicate.MediaFile
- func QualityNEQ(v string) predicate.MediaFile
- func QualityNotIn(vs ...string) predicate.MediaFile
- func QualityNotNil() predicate.MediaFile
- func ReleaseGroup(v string) predicate.MediaFile
- func ReleaseGroupContains(v string) predicate.MediaFile
- func ReleaseGroupContainsFold(v string) predicate.MediaFile
- func ReleaseGroupEQ(v string) predicate.MediaFile
- func ReleaseGroupEqualFold(v string) predicate.MediaFile
- func ReleaseGroupGT(v string) predicate.MediaFile
- func ReleaseGroupGTE(v string) predicate.MediaFile
- func ReleaseGroupHasPrefix(v string) predicate.MediaFile
- func ReleaseGroupHasSuffix(v string) predicate.MediaFile
- func ReleaseGroupIn(vs ...string) predicate.MediaFile
- func ReleaseGroupIsNil() predicate.MediaFile
- func ReleaseGroupLT(v string) predicate.MediaFile
- func ReleaseGroupLTE(v string) predicate.MediaFile
- func ReleaseGroupNEQ(v string) predicate.MediaFile
- func ReleaseGroupNotIn(vs ...string) predicate.MediaFile
- func ReleaseGroupNotNil() predicate.MediaFile
- func Size(v int64) predicate.MediaFile
- func SizeEQ(v int64) predicate.MediaFile
- func SizeGT(v int64) predicate.MediaFile
- func SizeGTE(v int64) predicate.MediaFile
- func SizeIn(vs ...int64) predicate.MediaFile
- func SizeLT(v int64) predicate.MediaFile
- func SizeLTE(v int64) predicate.MediaFile
- func SizeNEQ(v int64) predicate.MediaFile
- func SizeNotIn(vs ...int64) predicate.MediaFile
- func SourceEQ(v Source) predicate.MediaFile
- func SourceIn(vs ...Source) predicate.MediaFile
- func SourceNEQ(v Source) predicate.MediaFile
- func SourceNotIn(vs ...Source) predicate.MediaFile
- func SourceValidator(s Source) error
- func UpdateTime(v time.Time) predicate.MediaFile
- func UpdateTimeEQ(v time.Time) predicate.MediaFile
- func UpdateTimeGT(v time.Time) predicate.MediaFile
- func UpdateTimeGTE(v time.Time) predicate.MediaFile
- func UpdateTimeIn(vs ...time.Time) predicate.MediaFile
- func UpdateTimeLT(v time.Time) predicate.MediaFile
- func UpdateTimeLTE(v time.Time) predicate.MediaFile
- func UpdateTimeNEQ(v time.Time) predicate.MediaFile
- func UpdateTimeNotIn(vs ...time.Time) predicate.MediaFile
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByEpisodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFormat(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
- func ByMovieField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByQuality(opts ...sql.OrderTermOption) OrderOption
- func ByReleaseGroup(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type Source
Constants ¶
const ( // Label holds the string label denoting the mediafile type in the database. Label = "media_file" // 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" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldQuality holds the string denoting the quality field in the database. FieldQuality = "quality" // FieldFormat holds the string denoting the format field in the database. FieldFormat = "format" // FieldReleaseGroup holds the string denoting the release_group field in the database. FieldReleaseGroup = "release_group" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldLastSeenAt holds the string denoting the last_seen_at field in the database. FieldLastSeenAt = "last_seen_at" // EdgeMovie holds the string denoting the movie edge name in mutations. EdgeMovie = "movie" // EdgeEpisode holds the string denoting the episode edge name in mutations. EdgeEpisode = "episode" // Table holds the table name of the mediafile in the database. Table = "media_files" // MovieTable is the table that holds the movie relation/edge. MovieTable = "media_files" // MovieInverseTable is the table name for the Movie entity. // It exists in this package in order to avoid circular dependency with the "movie" package. MovieInverseTable = "movies" // MovieColumn is the table column denoting the movie relation/edge. MovieColumn = "movie_media_files" // EpisodeTable is the table that holds the episode relation/edge. EpisodeTable = "media_files" // EpisodeInverseTable is the table name for the Episode entity. // It exists in this package in order to avoid circular dependency with the "episode" package. EpisodeInverseTable = "episodes" // EpisodeColumn is the table column denoting the episode relation/edge. EpisodeColumn = "episode_media_files" )
const DefaultSource = SourceAuto
SourceAuto is the default value of the Source 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 // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // DefaultLastSeenAt holds the default value on creation for the "last_seen_at" field. DefaultLastSeenAt func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldPath, FieldSize, FieldQuality, FieldFormat, FieldReleaseGroup, FieldSource, FieldLastSeenAt, }
Columns holds all SQL columns for mediafile fields.
var ForeignKeys = []string{
"episode_media_files",
"movie_media_files",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "media_files" table and are not defined as standalone fields in the schema.
Functions ¶
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 Format ¶
Format applies equality check predicate on the "format" field. It's identical to FormatEQ.
func FormatContains ¶
FormatContains applies the Contains predicate on the "format" field.
func FormatContainsFold ¶
FormatContainsFold applies the ContainsFold predicate on the "format" field.
func FormatEqualFold ¶
FormatEqualFold applies the EqualFold predicate on the "format" field.
func FormatHasPrefix ¶
FormatHasPrefix applies the HasPrefix predicate on the "format" field.
func FormatHasSuffix ¶
FormatHasSuffix applies the HasSuffix predicate on the "format" field.
func FormatIsNil ¶
FormatIsNil applies the IsNil predicate on the "format" field.
func FormatNotIn ¶
FormatNotIn applies the NotIn predicate on the "format" field.
func FormatNotNil ¶
FormatNotNil applies the NotNil predicate on the "format" field.
func HasEpisode ¶
HasEpisode applies the HasEdge predicate on the "episode" edge.
func HasEpisodeWith ¶
HasEpisodeWith applies the HasEdge predicate on the "episode" edge with a given conditions (other predicates).
func HasMovieWith ¶
HasMovieWith applies the HasEdge predicate on the "movie" edge with a given conditions (other predicates).
func LastSeenAt ¶
LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.
func LastSeenAtEQ ¶
LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.
func LastSeenAtGT ¶
LastSeenAtGT applies the GT predicate on the "last_seen_at" field.
func LastSeenAtGTE ¶
LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.
func LastSeenAtIn ¶
LastSeenAtIn applies the In predicate on the "last_seen_at" field.
func LastSeenAtIsNil ¶
LastSeenAtIsNil applies the IsNil predicate on the "last_seen_at" field.
func LastSeenAtLT ¶
LastSeenAtLT applies the LT predicate on the "last_seen_at" field.
func LastSeenAtLTE ¶
LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.
func LastSeenAtNEQ ¶
LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.
func LastSeenAtNotIn ¶
LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.
func LastSeenAtNotNil ¶
LastSeenAtNotNil applies the NotNil predicate on the "last_seen_at" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func Quality ¶
Quality applies equality check predicate on the "quality" field. It's identical to QualityEQ.
func QualityContains ¶
QualityContains applies the Contains predicate on the "quality" field.
func QualityContainsFold ¶
QualityContainsFold applies the ContainsFold predicate on the "quality" field.
func QualityEqualFold ¶
QualityEqualFold applies the EqualFold predicate on the "quality" field.
func QualityGTE ¶
QualityGTE applies the GTE predicate on the "quality" field.
func QualityHasPrefix ¶
QualityHasPrefix applies the HasPrefix predicate on the "quality" field.
func QualityHasSuffix ¶
QualityHasSuffix applies the HasSuffix predicate on the "quality" field.
func QualityIsNil ¶
QualityIsNil applies the IsNil predicate on the "quality" field.
func QualityLTE ¶
QualityLTE applies the LTE predicate on the "quality" field.
func QualityNEQ ¶
QualityNEQ applies the NEQ predicate on the "quality" field.
func QualityNotIn ¶
QualityNotIn applies the NotIn predicate on the "quality" field.
func QualityNotNil ¶
QualityNotNil applies the NotNil predicate on the "quality" field.
func ReleaseGroup ¶
ReleaseGroup applies equality check predicate on the "release_group" field. It's identical to ReleaseGroupEQ.
func ReleaseGroupContains ¶
ReleaseGroupContains applies the Contains predicate on the "release_group" field.
func ReleaseGroupContainsFold ¶
ReleaseGroupContainsFold applies the ContainsFold predicate on the "release_group" field.
func ReleaseGroupEQ ¶
ReleaseGroupEQ applies the EQ predicate on the "release_group" field.
func ReleaseGroupEqualFold ¶
ReleaseGroupEqualFold applies the EqualFold predicate on the "release_group" field.
func ReleaseGroupGT ¶
ReleaseGroupGT applies the GT predicate on the "release_group" field.
func ReleaseGroupGTE ¶
ReleaseGroupGTE applies the GTE predicate on the "release_group" field.
func ReleaseGroupHasPrefix ¶
ReleaseGroupHasPrefix applies the HasPrefix predicate on the "release_group" field.
func ReleaseGroupHasSuffix ¶
ReleaseGroupHasSuffix applies the HasSuffix predicate on the "release_group" field.
func ReleaseGroupIn ¶
ReleaseGroupIn applies the In predicate on the "release_group" field.
func ReleaseGroupIsNil ¶
ReleaseGroupIsNil applies the IsNil predicate on the "release_group" field.
func ReleaseGroupLT ¶
ReleaseGroupLT applies the LT predicate on the "release_group" field.
func ReleaseGroupLTE ¶
ReleaseGroupLTE applies the LTE predicate on the "release_group" field.
func ReleaseGroupNEQ ¶
ReleaseGroupNEQ applies the NEQ predicate on the "release_group" field.
func ReleaseGroupNotIn ¶
ReleaseGroupNotIn applies the NotIn predicate on the "release_group" field.
func ReleaseGroupNotNil ¶
ReleaseGroupNotNil applies the NotNil predicate on the "release_group" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func SourceValidator ¶
SourceValidator is a validator for the "source" field enum values. It is called by the builders before save.
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 MediaFile queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByEpisodeField ¶
func ByEpisodeField(field string, opts ...sql.OrderTermOption) OrderOption
ByEpisodeField orders the results by episode field.
func ByFormat ¶
func ByFormat(opts ...sql.OrderTermOption) OrderOption
ByFormat orders the results by the format field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastSeenAt ¶
func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
ByLastSeenAt orders the results by the last_seen_at field.
func ByMovieField ¶
func ByMovieField(field string, opts ...sql.OrderTermOption) OrderOption
ByMovieField orders the results by movie field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByQuality ¶
func ByQuality(opts ...sql.OrderTermOption) OrderOption
ByQuality orders the results by the quality field.
func ByReleaseGroup ¶
func ByReleaseGroup(opts ...sql.OrderTermOption) OrderOption
ByReleaseGroup orders the results by the release_group field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.