Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Movie) predicate.Movie
- func Duration(v int) predicate.Movie
- func DurationEQ(v int) predicate.Movie
- func DurationGT(v int) predicate.Movie
- func DurationGTE(v int) predicate.Movie
- func DurationIn(vs ...int) predicate.Movie
- func DurationIsNil() predicate.Movie
- func DurationLT(v int) predicate.Movie
- func DurationLTE(v int) predicate.Movie
- func DurationNEQ(v int) predicate.Movie
- func DurationNotIn(vs ...int) predicate.Movie
- func DurationNotNil() predicate.Movie
- func HasCast() predicate.Movie
- func HasCastWith(preds ...predicate.Artist) predicate.Movie
- func HasCountries() predicate.Movie
- func HasCountriesWith(preds ...predicate.Country) predicate.Movie
- func HasDirectors() predicate.Movie
- func HasDirectorsWith(preds ...predicate.Artist) predicate.Movie
- func HasFanart() predicate.Movie
- func HasFanartWith(preds ...predicate.Picture) predicate.Movie
- func HasFile() predicate.Movie
- func HasFileWith(preds ...predicate.File) predicate.Movie
- func HasGenres() predicate.Movie
- func HasGenresWith(preds ...predicate.MovieGenre) predicate.Movie
- func HasPoster() predicate.Movie
- func HasPosterWith(preds ...predicate.Picture) predicate.Movie
- func HasRatings() predicate.Movie
- func HasRatingsWith(preds ...predicate.Rating) predicate.Movie
- func HasWriters() predicate.Movie
- func HasWritersWith(preds ...predicate.Artist) predicate.Movie
- func ID(id int) predicate.Movie
- func IDEQ(id int) predicate.Movie
- func IDGT(id int) predicate.Movie
- func IDGTE(id int) predicate.Movie
- func IDIn(ids ...int) predicate.Movie
- func IDLT(id int) predicate.Movie
- func IDLTE(id int) predicate.Movie
- func IDNEQ(id int) predicate.Movie
- func IDNotIn(ids ...int) predicate.Movie
- func Not(p predicate.Movie) predicate.Movie
- func Or(predicates ...predicate.Movie) predicate.Movie
- func OriginalTitle(v string) predicate.Movie
- func OriginalTitleContains(v string) predicate.Movie
- func OriginalTitleContainsFold(v string) predicate.Movie
- func OriginalTitleEQ(v string) predicate.Movie
- func OriginalTitleEqualFold(v string) predicate.Movie
- func OriginalTitleGT(v string) predicate.Movie
- func OriginalTitleGTE(v string) predicate.Movie
- func OriginalTitleHasPrefix(v string) predicate.Movie
- func OriginalTitleHasSuffix(v string) predicate.Movie
- func OriginalTitleIn(vs ...string) predicate.Movie
- func OriginalTitleIsNil() predicate.Movie
- func OriginalTitleLT(v string) predicate.Movie
- func OriginalTitleLTE(v string) predicate.Movie
- func OriginalTitleNEQ(v string) predicate.Movie
- func OriginalTitleNotIn(vs ...string) predicate.Movie
- func OriginalTitleNotNil() predicate.Movie
- func Plot(v string) predicate.Movie
- func PlotContains(v string) predicate.Movie
- func PlotContainsFold(v string) predicate.Movie
- func PlotEQ(v string) predicate.Movie
- func PlotEqualFold(v string) predicate.Movie
- func PlotGT(v string) predicate.Movie
- func PlotGTE(v string) predicate.Movie
- func PlotHasPrefix(v string) predicate.Movie
- func PlotHasSuffix(v string) predicate.Movie
- func PlotIn(vs ...string) predicate.Movie
- func PlotIsNil() predicate.Movie
- func PlotLT(v string) predicate.Movie
- func PlotLTE(v string) predicate.Movie
- func PlotNEQ(v string) predicate.Movie
- func PlotNotIn(vs ...string) predicate.Movie
- func PlotNotNil() predicate.Movie
- func ReleaseDate(v time.Time) predicate.Movie
- func ReleaseDateEQ(v time.Time) predicate.Movie
- func ReleaseDateGT(v time.Time) predicate.Movie
- func ReleaseDateGTE(v time.Time) predicate.Movie
- func ReleaseDateIn(vs ...time.Time) predicate.Movie
- func ReleaseDateIsNil() predicate.Movie
- func ReleaseDateLT(v time.Time) predicate.Movie
- func ReleaseDateLTE(v time.Time) predicate.Movie
- func ReleaseDateNEQ(v time.Time) predicate.Movie
- func ReleaseDateNotIn(vs ...time.Time) predicate.Movie
- func ReleaseDateNotNil() predicate.Movie
- func Title(v string) predicate.Movie
- func TitleContains(v string) predicate.Movie
- func TitleContainsFold(v string) predicate.Movie
- func TitleEQ(v string) predicate.Movie
- func TitleEqualFold(v string) predicate.Movie
- func TitleGT(v string) predicate.Movie
- func TitleGTE(v string) predicate.Movie
- func TitleHasPrefix(v string) predicate.Movie
- func TitleHasSuffix(v string) predicate.Movie
- func TitleIn(vs ...string) predicate.Movie
- func TitleLT(v string) predicate.Movie
- func TitleLTE(v string) predicate.Movie
- func TitleNEQ(v string) predicate.Movie
- func TitleNotIn(vs ...string) predicate.Movie
- func ValidColumn(column string) bool
- func Watched(v bool) predicate.Movie
- func WatchedEQ(v bool) predicate.Movie
- func WatchedNEQ(v bool) predicate.Movie
Constants ¶
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 ¶
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"} )
var Columns = []string{ FieldID, FieldTitle, FieldOriginalTitle, FieldReleaseDate, FieldPlot, FieldDuration, FieldWatched, }
Columns holds all SQL columns for movie fields.
var ( // DefaultWatched holds the default value on creation for the "watched" field. DefaultWatched bool )
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 Duration ¶
Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.
func DurationEQ ¶
DurationEQ applies the EQ predicate on the "duration" field.
func DurationGT ¶
DurationGT applies the GT predicate on the "duration" field.
func DurationGTE ¶
DurationGTE applies the GTE predicate on the "duration" field.
func DurationIn ¶
DurationIn applies the In predicate on the "duration" field.
func DurationIsNil ¶
DurationIsNil applies the IsNil predicate on the "duration" field.
func DurationLT ¶
DurationLT applies the LT predicate on the "duration" field.
func DurationLTE ¶
DurationLTE applies the LTE predicate on the "duration" field.
func DurationNEQ ¶
DurationNEQ applies the NEQ predicate on the "duration" field.
func DurationNotIn ¶
DurationNotIn applies the NotIn predicate on the "duration" field.
func DurationNotNil ¶
DurationNotNil applies the NotNil predicate on the "duration" field.
func HasCastWith ¶
HasCastWith applies the HasEdge predicate on the "cast" edge with a given conditions (other predicates).
func HasCountries ¶
HasCountries applies the HasEdge predicate on the "countries" edge.
func HasCountriesWith ¶
HasCountriesWith applies the HasEdge predicate on the "countries" edge with a given conditions (other predicates).
func HasDirectors ¶
HasDirectors applies the HasEdge predicate on the "directors" edge.
func HasDirectorsWith ¶
HasDirectorsWith applies the HasEdge predicate on the "directors" edge with a given conditions (other predicates).
func HasFanartWith ¶
HasFanartWith applies the HasEdge predicate on the "fanart" edge with a given conditions (other predicates).
func HasFileWith ¶
HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).
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 HasPosterWith ¶
HasPosterWith applies the HasEdge predicate on the "poster" edge with a given conditions (other predicates).
func HasRatings ¶
HasRatings applies the HasEdge predicate on the "ratings" edge.
func HasRatingsWith ¶
HasRatingsWith applies the HasEdge predicate on the "ratings" edge with a given conditions (other predicates).
func HasWriters ¶
HasWriters applies the HasEdge predicate on the "writers" edge.
func HasWritersWith ¶
HasWritersWith applies the HasEdge predicate on the "writers" edge with a given conditions (other predicates).
func OriginalTitle ¶
OriginalTitle applies equality check predicate on the "original_title" field. It's identical to OriginalTitleEQ.
func OriginalTitleContains ¶
OriginalTitleContains applies the Contains predicate on the "original_title" field.
func OriginalTitleContainsFold ¶
OriginalTitleContainsFold applies the ContainsFold predicate on the "original_title" field.
func OriginalTitleEQ ¶
OriginalTitleEQ applies the EQ predicate on the "original_title" field.
func OriginalTitleEqualFold ¶
OriginalTitleEqualFold applies the EqualFold predicate on the "original_title" field.
func OriginalTitleGT ¶
OriginalTitleGT applies the GT predicate on the "original_title" field.
func OriginalTitleGTE ¶
OriginalTitleGTE applies the GTE predicate on the "original_title" field.
func OriginalTitleHasPrefix ¶
OriginalTitleHasPrefix applies the HasPrefix predicate on the "original_title" field.
func OriginalTitleHasSuffix ¶
OriginalTitleHasSuffix applies the HasSuffix predicate on the "original_title" field.
func OriginalTitleIn ¶
OriginalTitleIn applies the In predicate on the "original_title" field.
func OriginalTitleIsNil ¶
OriginalTitleIsNil applies the IsNil predicate on the "original_title" field.
func OriginalTitleLT ¶
OriginalTitleLT applies the LT predicate on the "original_title" field.
func OriginalTitleLTE ¶
OriginalTitleLTE applies the LTE predicate on the "original_title" field.
func OriginalTitleNEQ ¶
OriginalTitleNEQ applies the NEQ predicate on the "original_title" field.
func OriginalTitleNotIn ¶
OriginalTitleNotIn applies the NotIn predicate on the "original_title" field.
func OriginalTitleNotNil ¶
OriginalTitleNotNil applies the NotNil predicate on the "original_title" field.
func PlotContains ¶
PlotContains applies the Contains predicate on the "plot" field.
func PlotContainsFold ¶
PlotContainsFold applies the ContainsFold predicate on the "plot" field.
func PlotEqualFold ¶
PlotEqualFold applies the EqualFold predicate on the "plot" field.
func PlotHasPrefix ¶
PlotHasPrefix applies the HasPrefix predicate on the "plot" field.
func PlotHasSuffix ¶
PlotHasSuffix applies the HasSuffix predicate on the "plot" field.
func PlotNotNil ¶
PlotNotNil applies the NotNil predicate on the "plot" field.
func ReleaseDate ¶
ReleaseDate applies equality check predicate on the "release_date" field. It's identical to ReleaseDateEQ.
func ReleaseDateEQ ¶
ReleaseDateEQ applies the EQ predicate on the "release_date" field.
func ReleaseDateGT ¶
ReleaseDateGT applies the GT predicate on the "release_date" field.
func ReleaseDateGTE ¶
ReleaseDateGTE applies the GTE predicate on the "release_date" field.
func ReleaseDateIn ¶
ReleaseDateIn applies the In predicate on the "release_date" field.
func ReleaseDateIsNil ¶
ReleaseDateIsNil applies the IsNil predicate on the "release_date" field.
func ReleaseDateLT ¶
ReleaseDateLT applies the LT predicate on the "release_date" field.
func ReleaseDateLTE ¶
ReleaseDateLTE applies the LTE predicate on the "release_date" field.
func ReleaseDateNEQ ¶
ReleaseDateNEQ applies the NEQ predicate on the "release_date" field.
func ReleaseDateNotIn ¶
ReleaseDateNotIn applies the NotIn predicate on the "release_date" field.
func ReleaseDateNotNil ¶
ReleaseDateNotNil applies the NotNil predicate on the "release_date" field.
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 TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Watched ¶
Watched applies equality check predicate on the "watched" field. It's identical to WatchedEQ.
func WatchedNEQ ¶
WatchedNEQ applies the NEQ predicate on the "watched" field.
Types ¶
This section is empty.