Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Artist) predicate.Artist
- func Birthday(v time.Time) predicate.Artist
- func BirthdayEQ(v time.Time) predicate.Artist
- func BirthdayGT(v time.Time) predicate.Artist
- func BirthdayGTE(v time.Time) predicate.Artist
- func BirthdayIn(vs ...time.Time) predicate.Artist
- func BirthdayIsNil() predicate.Artist
- func BirthdayLT(v time.Time) predicate.Artist
- func BirthdayLTE(v time.Time) predicate.Artist
- func BirthdayNEQ(v time.Time) predicate.Artist
- func BirthdayNotIn(vs ...time.Time) predicate.Artist
- func BirthdayNotNil() predicate.Artist
- func HasActed() predicate.Artist
- func HasActedWith(preds ...predicate.Movie) predicate.Artist
- func HasCountries() predicate.Artist
- func HasCountriesWith(preds ...predicate.Country) predicate.Artist
- func HasDirected() predicate.Artist
- func HasDirectedWith(preds ...predicate.Movie) predicate.Artist
- func HasPictures() predicate.Artist
- func HasPicturesWith(preds ...predicate.Picture) predicate.Artist
- func HasProfilePicture() predicate.Artist
- func HasProfilePictureWith(preds ...predicate.Picture) predicate.Artist
- func HasWrote() predicate.Artist
- func HasWroteWith(preds ...predicate.Movie) predicate.Artist
- func ID(id int) predicate.Artist
- func IDEQ(id int) predicate.Artist
- func IDGT(id int) predicate.Artist
- func IDGTE(id int) predicate.Artist
- func IDIn(ids ...int) predicate.Artist
- func IDLT(id int) predicate.Artist
- func IDLTE(id int) predicate.Artist
- func IDNEQ(id int) predicate.Artist
- func IDNotIn(ids ...int) predicate.Artist
- func Name(v string) predicate.Artist
- func NameContains(v string) predicate.Artist
- func NameContainsFold(v string) predicate.Artist
- func NameEQ(v string) predicate.Artist
- func NameEqualFold(v string) predicate.Artist
- func NameGT(v string) predicate.Artist
- func NameGTE(v string) predicate.Artist
- func NameHasPrefix(v string) predicate.Artist
- func NameHasSuffix(v string) predicate.Artist
- func NameIn(vs ...string) predicate.Artist
- func NameLT(v string) predicate.Artist
- func NameLTE(v string) predicate.Artist
- func NameNEQ(v string) predicate.Artist
- func NameNotIn(vs ...string) predicate.Artist
- func Not(p predicate.Artist) predicate.Artist
- func Or(predicates ...predicate.Artist) predicate.Artist
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the artist type in the database. Label = "artist" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // EdgeProfilePicture holds the string denoting the profile_picture edge name in mutations. EdgeProfilePicture = "profile_picture" // EdgePictures holds the string denoting the pictures edge name in mutations. EdgePictures = "pictures" // EdgeDirected holds the string denoting the directed edge name in mutations. EdgeDirected = "directed" // EdgeActed holds the string denoting the acted edge name in mutations. EdgeActed = "acted" // EdgeWrote holds the string denoting the wrote edge name in mutations. EdgeWrote = "wrote" // EdgeCountries holds the string denoting the countries edge name in mutations. EdgeCountries = "countries" // Table holds the table name of the artist in the database. Table = "artists" // ProfilePictureTable is the table that holds the profile_picture relation/edge. ProfilePictureTable = "artists" // ProfilePictureInverseTable is the table name for the Picture entity. // It exists in this package in order to avoid circular dependency with the "picture" package. ProfilePictureInverseTable = "pictures" // ProfilePictureColumn is the table column denoting the profile_picture relation/edge. ProfilePictureColumn = "artist_profile_picture" // PicturesTable is the table that holds the pictures relation/edge. PicturesTable = "pictures" // PicturesInverseTable is the table name for the Picture entity. // It exists in this package in order to avoid circular dependency with the "picture" package. PicturesInverseTable = "pictures" // PicturesColumn is the table column denoting the pictures relation/edge. PicturesColumn = "artist_pictures" // DirectedTable is the table that holds the directed relation/edge. The primary key declared below. DirectedTable = "movie_directors" // DirectedInverseTable is the table name for the Movie entity. // It exists in this package in order to avoid circular dependency with the "movie" package. DirectedInverseTable = "movies" // ActedTable is the table that holds the acted relation/edge. The primary key declared below. ActedTable = "movie_cast" // ActedInverseTable is the table name for the Movie entity. // It exists in this package in order to avoid circular dependency with the "movie" package. ActedInverseTable = "movies" // WroteTable is the table that holds the wrote relation/edge. The primary key declared below. WroteTable = "movie_writers" // WroteInverseTable is the table name for the Movie entity. // It exists in this package in order to avoid circular dependency with the "movie" package. WroteInverseTable = "movies" // CountriesTable is the table that holds the countries relation/edge. The primary key declared below. CountriesTable = "country_artists" // 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 ( // DirectedPrimaryKey and DirectedColumn2 are the table columns denoting the // primary key for the directed relation (M2M). DirectedPrimaryKey = []string{"movie_id", "artist_id"} // ActedPrimaryKey and ActedColumn2 are the table columns denoting the // primary key for the acted relation (M2M). ActedPrimaryKey = []string{"movie_id", "artist_id"} // WrotePrimaryKey and WroteColumn2 are the table columns denoting the // primary key for the wrote relation (M2M). WrotePrimaryKey = []string{"movie_id", "artist_id"} // CountriesPrimaryKey and CountriesColumn2 are the table columns denoting the // primary key for the countries relation (M2M). CountriesPrimaryKey = []string{"country_id", "artist_id"} )
var Columns = []string{ FieldID, FieldName, FieldBirthday, }
Columns holds all SQL columns for artist fields.
var ForeignKeys = []string{
"artist_profile_picture",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "artists" table and are not defined as standalone fields in the schema.
Functions ¶
func Birthday ¶
Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.
func BirthdayEQ ¶
BirthdayEQ applies the EQ predicate on the "birthday" field.
func BirthdayGT ¶
BirthdayGT applies the GT predicate on the "birthday" field.
func BirthdayGTE ¶
BirthdayGTE applies the GTE predicate on the "birthday" field.
func BirthdayIn ¶
BirthdayIn applies the In predicate on the "birthday" field.
func BirthdayIsNil ¶
BirthdayIsNil applies the IsNil predicate on the "birthday" field.
func BirthdayLT ¶
BirthdayLT applies the LT predicate on the "birthday" field.
func BirthdayLTE ¶
BirthdayLTE applies the LTE predicate on the "birthday" field.
func BirthdayNEQ ¶
BirthdayNEQ applies the NEQ predicate on the "birthday" field.
func BirthdayNotIn ¶
BirthdayNotIn applies the NotIn predicate on the "birthday" field.
func BirthdayNotNil ¶
BirthdayNotNil applies the NotNil predicate on the "birthday" field.
func HasActedWith ¶
HasActedWith applies the HasEdge predicate on the "acted" 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 HasDirected ¶
HasDirected applies the HasEdge predicate on the "directed" edge.
func HasDirectedWith ¶
HasDirectedWith applies the HasEdge predicate on the "directed" edge with a given conditions (other predicates).
func HasPictures ¶
HasPictures applies the HasEdge predicate on the "pictures" edge.
func HasPicturesWith ¶
HasPicturesWith applies the HasEdge predicate on the "pictures" edge with a given conditions (other predicates).
func HasProfilePicture ¶
HasProfilePicture applies the HasEdge predicate on the "profile_picture" edge.
func HasProfilePictureWith ¶
HasProfilePictureWith applies the HasEdge predicate on the "profile_picture" edge with a given conditions (other predicates).
func HasWroteWith ¶
HasWroteWith applies the HasEdge predicate on the "wrote" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.