movie

package
v0.0.0-...-9131046 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the movie type in the database.
	Label = "movie"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldOriginalTitle holds the string denoting the original_title field in the database.
	FieldOriginalTitle = "original_title"
	// FieldReleaseDate holds the string denoting the release_date field in the database.
	FieldReleaseDate = "release_date"
	// FieldPlot holds the string denoting the plot field in the database.
	FieldPlot = "plot"
	// FieldDuration holds the string denoting the duration field in the database.
	FieldDuration = "duration"
	// FieldWatched holds the string denoting the watched field in the database.
	FieldWatched = "watched"
	// EdgeFile holds the string denoting the file edge name in mutations.
	EdgeFile = "file"
	// EdgeRatings holds the string denoting the ratings edge name in mutations.
	EdgeRatings = "ratings"
	// EdgePoster holds the string denoting the poster edge name in mutations.
	EdgePoster = "poster"
	// EdgeFanart holds the string denoting the fanart edge name in mutations.
	EdgeFanart = "fanart"
	// EdgeCast holds the string denoting the cast edge name in mutations.
	EdgeCast = "cast"
	// EdgeDirectors holds the string denoting the directors edge name in mutations.
	EdgeDirectors = "directors"
	// EdgeWriters holds the string denoting the writers edge name in mutations.
	EdgeWriters = "writers"
	// EdgeGenres holds the string denoting the genres edge name in mutations.
	EdgeGenres = "genres"
	// EdgeCountries holds the string denoting the countries edge name in mutations.
	EdgeCountries = "countries"
	// Table holds the table name of the movie in the database.
	Table = "movies"
	// FileTable is the table that holds the file relation/edge.
	FileTable = "files"
	// FileInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FileInverseTable = "files"
	// FileColumn is the table column denoting the file relation/edge.
	FileColumn = "movie_file"
	// RatingsTable is the table that holds the ratings relation/edge.
	RatingsTable = "ratings"
	// RatingsInverseTable is the table name for the Rating entity.
	// It exists in this package in order to avoid circular dependency with the "rating" package.
	RatingsInverseTable = "ratings"
	// RatingsColumn is the table column denoting the ratings relation/edge.
	RatingsColumn = "movie_ratings"
	// PosterTable is the table that holds the poster relation/edge.
	PosterTable = "movies"
	// PosterInverseTable is the table name for the Picture entity.
	// It exists in this package in order to avoid circular dependency with the "picture" package.
	PosterInverseTable = "pictures"
	// PosterColumn is the table column denoting the poster relation/edge.
	PosterColumn = "movie_poster"
	// FanartTable is the table that holds the fanart relation/edge.
	FanartTable = "pictures"
	// FanartInverseTable is the table name for the Picture entity.
	// It exists in this package in order to avoid circular dependency with the "picture" package.
	FanartInverseTable = "pictures"
	// FanartColumn is the table column denoting the fanart relation/edge.
	FanartColumn = "movie_fanart"
	// CastTable is the table that holds the cast relation/edge. The primary key declared below.
	CastTable = "movie_cast"
	// CastInverseTable is the table name for the Artist entity.
	// It exists in this package in order to avoid circular dependency with the "artist" package.
	CastInverseTable = "artists"
	// DirectorsTable is the table that holds the directors relation/edge. The primary key declared below.
	DirectorsTable = "movie_directors"
	// DirectorsInverseTable is the table name for the Artist entity.
	// It exists in this package in order to avoid circular dependency with the "artist" package.
	DirectorsInverseTable = "artists"
	// WritersTable is the table that holds the writers relation/edge. The primary key declared below.
	WritersTable = "movie_writers"
	// WritersInverseTable is the table name for the Artist entity.
	// It exists in this package in order to avoid circular dependency with the "artist" package.
	WritersInverseTable = "artists"
	// GenresTable is the table that holds the genres relation/edge. The primary key declared below.
	GenresTable = "movie_genre_movies"
	// GenresInverseTable is the table name for the MovieGenre entity.
	// It exists in this package in order to avoid circular dependency with the "moviegenre" package.
	GenresInverseTable = "movie_genres"
	// CountriesTable is the table that holds the countries relation/edge. The primary key declared below.
	CountriesTable = "country_movies"
	// CountriesInverseTable is the table name for the Country entity.
	// It exists in this package in order to avoid circular dependency with the "country" package.
	CountriesInverseTable = "countries"
)

Variables

View Source
var (
	// CastPrimaryKey and CastColumn2 are the table columns denoting the
	// primary key for the cast relation (M2M).
	CastPrimaryKey = []string{"movie_id", "artist_id"}
	// DirectorsPrimaryKey and DirectorsColumn2 are the table columns denoting the
	// primary key for the directors relation (M2M).
	DirectorsPrimaryKey = []string{"movie_id", "artist_id"}
	// WritersPrimaryKey and WritersColumn2 are the table columns denoting the
	// primary key for the writers relation (M2M).
	WritersPrimaryKey = []string{"movie_id", "artist_id"}
	// GenresPrimaryKey and GenresColumn2 are the table columns denoting the
	// primary key for the genres relation (M2M).
	GenresPrimaryKey = []string{"movie_genre_id", "movie_id"}
	// CountriesPrimaryKey and CountriesColumn2 are the table columns denoting the
	// primary key for the countries relation (M2M).
	CountriesPrimaryKey = []string{"country_id", "movie_id"}
)

Columns holds all SQL columns for movie fields.

View Source
var (
	// DefaultWatched holds the default value on creation for the "watched" field.
	DefaultWatched bool
)
View Source
var ForeignKeys = []string{
	"movie_poster",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "movies" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Movie) predicate.Movie

And groups predicates with the AND operator between them.

func Duration

func Duration(v int) predicate.Movie

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v int) predicate.Movie

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v int) predicate.Movie

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v int) predicate.Movie

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...int) predicate.Movie

DurationIn applies the In predicate on the "duration" field.

func DurationIsNil

func DurationIsNil() predicate.Movie

DurationIsNil applies the IsNil predicate on the "duration" field.

func DurationLT

func DurationLT(v int) predicate.Movie

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v int) predicate.Movie

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v int) predicate.Movie

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...int) predicate.Movie

DurationNotIn applies the NotIn predicate on the "duration" field.

func DurationNotNil

func DurationNotNil() predicate.Movie

DurationNotNil applies the NotNil predicate on the "duration" field.

func HasCast

func HasCast() predicate.Movie

HasCast applies the HasEdge predicate on the "cast" edge.

func HasCastWith

func HasCastWith(preds ...predicate.Artist) predicate.Movie

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

func HasCountries

func HasCountries() predicate.Movie

HasCountries applies the HasEdge predicate on the "countries" edge.

func HasCountriesWith

func HasCountriesWith(preds ...predicate.Country) predicate.Movie

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

func HasDirectors

func HasDirectors() predicate.Movie

HasDirectors applies the HasEdge predicate on the "directors" edge.

func HasDirectorsWith

func HasDirectorsWith(preds ...predicate.Artist) predicate.Movie

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

func HasFanart

func HasFanart() predicate.Movie

HasFanart applies the HasEdge predicate on the "fanart" edge.

func HasFanartWith

func HasFanartWith(preds ...predicate.Picture) predicate.Movie

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

func HasFile

func HasFile() predicate.Movie

HasFile applies the HasEdge predicate on the "file" edge.

func HasFileWith

func HasFileWith(preds ...predicate.File) predicate.Movie

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

func HasGenres

func HasGenres() predicate.Movie

HasGenres applies the HasEdge predicate on the "genres" edge.

func HasGenresWith

func HasGenresWith(preds ...predicate.MovieGenre) predicate.Movie

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

func HasPoster

func HasPoster() predicate.Movie

HasPoster applies the HasEdge predicate on the "poster" edge.

func HasPosterWith

func HasPosterWith(preds ...predicate.Picture) predicate.Movie

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

func HasRatings

func HasRatings() predicate.Movie

HasRatings applies the HasEdge predicate on the "ratings" edge.

func HasRatingsWith

func HasRatingsWith(preds ...predicate.Rating) predicate.Movie

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

func HasWriters

func HasWriters() predicate.Movie

HasWriters applies the HasEdge predicate on the "writers" edge.

func HasWritersWith

func HasWritersWith(preds ...predicate.Artist) predicate.Movie

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

func ID

func ID(id int) predicate.Movie

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Movie

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Movie

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Movie

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Movie

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Movie

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Movie

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Movie

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Movie

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Movie) predicate.Movie

Or groups predicates with the OR operator between them.

func OriginalTitle

func OriginalTitle(v string) predicate.Movie

OriginalTitle applies equality check predicate on the "original_title" field. It's identical to OriginalTitleEQ.

func OriginalTitleContains

func OriginalTitleContains(v string) predicate.Movie

OriginalTitleContains applies the Contains predicate on the "original_title" field.

func OriginalTitleContainsFold

func OriginalTitleContainsFold(v string) predicate.Movie

OriginalTitleContainsFold applies the ContainsFold predicate on the "original_title" field.

func OriginalTitleEQ

func OriginalTitleEQ(v string) predicate.Movie

OriginalTitleEQ applies the EQ predicate on the "original_title" field.

func OriginalTitleEqualFold

func OriginalTitleEqualFold(v string) predicate.Movie

OriginalTitleEqualFold applies the EqualFold predicate on the "original_title" field.

func OriginalTitleGT

func OriginalTitleGT(v string) predicate.Movie

OriginalTitleGT applies the GT predicate on the "original_title" field.

func OriginalTitleGTE

func OriginalTitleGTE(v string) predicate.Movie

OriginalTitleGTE applies the GTE predicate on the "original_title" field.

func OriginalTitleHasPrefix

func OriginalTitleHasPrefix(v string) predicate.Movie

OriginalTitleHasPrefix applies the HasPrefix predicate on the "original_title" field.

func OriginalTitleHasSuffix

func OriginalTitleHasSuffix(v string) predicate.Movie

OriginalTitleHasSuffix applies the HasSuffix predicate on the "original_title" field.

func OriginalTitleIn

func OriginalTitleIn(vs ...string) predicate.Movie

OriginalTitleIn applies the In predicate on the "original_title" field.

func OriginalTitleIsNil

func OriginalTitleIsNil() predicate.Movie

OriginalTitleIsNil applies the IsNil predicate on the "original_title" field.

func OriginalTitleLT

func OriginalTitleLT(v string) predicate.Movie

OriginalTitleLT applies the LT predicate on the "original_title" field.

func OriginalTitleLTE

func OriginalTitleLTE(v string) predicate.Movie

OriginalTitleLTE applies the LTE predicate on the "original_title" field.

func OriginalTitleNEQ

func OriginalTitleNEQ(v string) predicate.Movie

OriginalTitleNEQ applies the NEQ predicate on the "original_title" field.

func OriginalTitleNotIn

func OriginalTitleNotIn(vs ...string) predicate.Movie

OriginalTitleNotIn applies the NotIn predicate on the "original_title" field.

func OriginalTitleNotNil

func OriginalTitleNotNil() predicate.Movie

OriginalTitleNotNil applies the NotNil predicate on the "original_title" field.

func Plot

func Plot(v string) predicate.Movie

Plot applies equality check predicate on the "plot" field. It's identical to PlotEQ.

func PlotContains

func PlotContains(v string) predicate.Movie

PlotContains applies the Contains predicate on the "plot" field.

func PlotContainsFold

func PlotContainsFold(v string) predicate.Movie

PlotContainsFold applies the ContainsFold predicate on the "plot" field.

func PlotEQ

func PlotEQ(v string) predicate.Movie

PlotEQ applies the EQ predicate on the "plot" field.

func PlotEqualFold

func PlotEqualFold(v string) predicate.Movie

PlotEqualFold applies the EqualFold predicate on the "plot" field.

func PlotGT

func PlotGT(v string) predicate.Movie

PlotGT applies the GT predicate on the "plot" field.

func PlotGTE

func PlotGTE(v string) predicate.Movie

PlotGTE applies the GTE predicate on the "plot" field.

func PlotHasPrefix

func PlotHasPrefix(v string) predicate.Movie

PlotHasPrefix applies the HasPrefix predicate on the "plot" field.

func PlotHasSuffix

func PlotHasSuffix(v string) predicate.Movie

PlotHasSuffix applies the HasSuffix predicate on the "plot" field.

func PlotIn

func PlotIn(vs ...string) predicate.Movie

PlotIn applies the In predicate on the "plot" field.

func PlotIsNil

func PlotIsNil() predicate.Movie

PlotIsNil applies the IsNil predicate on the "plot" field.

func PlotLT

func PlotLT(v string) predicate.Movie

PlotLT applies the LT predicate on the "plot" field.

func PlotLTE

func PlotLTE(v string) predicate.Movie

PlotLTE applies the LTE predicate on the "plot" field.

func PlotNEQ

func PlotNEQ(v string) predicate.Movie

PlotNEQ applies the NEQ predicate on the "plot" field.

func PlotNotIn

func PlotNotIn(vs ...string) predicate.Movie

PlotNotIn applies the NotIn predicate on the "plot" field.

func PlotNotNil

func PlotNotNil() predicate.Movie

PlotNotNil applies the NotNil predicate on the "plot" field.

func ReleaseDate

func ReleaseDate(v time.Time) predicate.Movie

ReleaseDate applies equality check predicate on the "release_date" field. It's identical to ReleaseDateEQ.

func ReleaseDateEQ

func ReleaseDateEQ(v time.Time) predicate.Movie

ReleaseDateEQ applies the EQ predicate on the "release_date" field.

func ReleaseDateGT

func ReleaseDateGT(v time.Time) predicate.Movie

ReleaseDateGT applies the GT predicate on the "release_date" field.

func ReleaseDateGTE

func ReleaseDateGTE(v time.Time) predicate.Movie

ReleaseDateGTE applies the GTE predicate on the "release_date" field.

func ReleaseDateIn

func ReleaseDateIn(vs ...time.Time) predicate.Movie

ReleaseDateIn applies the In predicate on the "release_date" field.

func ReleaseDateIsNil

func ReleaseDateIsNil() predicate.Movie

ReleaseDateIsNil applies the IsNil predicate on the "release_date" field.

func ReleaseDateLT

func ReleaseDateLT(v time.Time) predicate.Movie

ReleaseDateLT applies the LT predicate on the "release_date" field.

func ReleaseDateLTE

func ReleaseDateLTE(v time.Time) predicate.Movie

ReleaseDateLTE applies the LTE predicate on the "release_date" field.

func ReleaseDateNEQ

func ReleaseDateNEQ(v time.Time) predicate.Movie

ReleaseDateNEQ applies the NEQ predicate on the "release_date" field.

func ReleaseDateNotIn

func ReleaseDateNotIn(vs ...time.Time) predicate.Movie

ReleaseDateNotIn applies the NotIn predicate on the "release_date" field.

func ReleaseDateNotNil

func ReleaseDateNotNil() predicate.Movie

ReleaseDateNotNil applies the NotNil predicate on the "release_date" field.

func Title

func Title(v string) predicate.Movie

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

func TitleContains

func TitleContains(v string) predicate.Movie

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Movie

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

func TitleEQ

func TitleEQ(v string) predicate.Movie

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Movie

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

func TitleGT

func TitleGT(v string) predicate.Movie

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

func TitleGTE

func TitleGTE(v string) predicate.Movie

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Movie

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Movie

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.Movie

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

func TitleLTE

func TitleLTE(v string) predicate.Movie

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

func TitleNEQ

func TitleNEQ(v string) predicate.Movie

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

func TitleNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

func Watched

func Watched(v bool) predicate.Movie

Watched applies equality check predicate on the "watched" field. It's identical to WatchedEQ.

func WatchedEQ

func WatchedEQ(v bool) predicate.Movie

WatchedEQ applies the EQ predicate on the "watched" field.

func WatchedNEQ

func WatchedNEQ(v bool) predicate.Movie

WatchedNEQ applies the NEQ predicate on the "watched" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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