Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Country) predicate.Country
- func Code(v string) predicate.Country
- func CodeContains(v string) predicate.Country
- func CodeContainsFold(v string) predicate.Country
- func CodeEQ(v string) predicate.Country
- func CodeEqualFold(v string) predicate.Country
- func CodeGT(v string) predicate.Country
- func CodeGTE(v string) predicate.Country
- func CodeHasPrefix(v string) predicate.Country
- func CodeHasSuffix(v string) predicate.Country
- func CodeIn(vs ...string) predicate.Country
- func CodeLT(v string) predicate.Country
- func CodeLTE(v string) predicate.Country
- func CodeNEQ(v string) predicate.Country
- func CodeNotIn(vs ...string) predicate.Country
- func HasArtists() predicate.Country
- func HasArtistsWith(preds ...predicate.Artist) predicate.Country
- func HasMovies() predicate.Country
- func HasMoviesWith(preds ...predicate.Movie) predicate.Country
- func ID(id int) predicate.Country
- func IDEQ(id int) predicate.Country
- func IDGT(id int) predicate.Country
- func IDGTE(id int) predicate.Country
- func IDIn(ids ...int) predicate.Country
- func IDLT(id int) predicate.Country
- func IDLTE(id int) predicate.Country
- func IDNEQ(id int) predicate.Country
- func IDNotIn(ids ...int) predicate.Country
- func Name(v string) predicate.Country
- func NameContains(v string) predicate.Country
- func NameContainsFold(v string) predicate.Country
- func NameEQ(v string) predicate.Country
- func NameEqualFold(v string) predicate.Country
- func NameGT(v string) predicate.Country
- func NameGTE(v string) predicate.Country
- func NameHasPrefix(v string) predicate.Country
- func NameHasSuffix(v string) predicate.Country
- func NameIn(vs ...string) predicate.Country
- func NameLT(v string) predicate.Country
- func NameLTE(v string) predicate.Country
- func NameNEQ(v string) predicate.Country
- func NameNotIn(vs ...string) predicate.Country
- func Not(p predicate.Country) predicate.Country
- func Or(predicates ...predicate.Country) predicate.Country
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the country type in the database. Label = "country" // 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" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // EdgeMovies holds the string denoting the movies edge name in mutations. EdgeMovies = "movies" // EdgeArtists holds the string denoting the artists edge name in mutations. EdgeArtists = "artists" // Table holds the table name of the country in the database. Table = "countries" // MoviesTable is the table that holds the movies relation/edge. The primary key declared below. MoviesTable = "country_movies" // MoviesInverseTable is the table name for the Movie entity. // It exists in this package in order to avoid circular dependency with the "movie" package. MoviesInverseTable = "movies" // ArtistsTable is the table that holds the artists relation/edge. The primary key declared below. ArtistsTable = "country_artists" // ArtistsInverseTable is the table name for the Artist entity. // It exists in this package in order to avoid circular dependency with the "artist" package. ArtistsInverseTable = "artists" )
Variables ¶
var ( // MoviesPrimaryKey and MoviesColumn2 are the table columns denoting the // primary key for the movies relation (M2M). MoviesPrimaryKey = []string{"country_id", "movie_id"} // ArtistsPrimaryKey and ArtistsColumn2 are the table columns denoting the // primary key for the artists relation (M2M). ArtistsPrimaryKey = []string{"country_id", "artist_id"} )
var Columns = []string{ FieldID, FieldName, FieldCode, }
Columns holds all SQL columns for country fields.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func HasArtists ¶
HasArtists applies the HasEdge predicate on the "artists" edge.
func HasArtistsWith ¶
HasArtistsWith applies the HasEdge predicate on the "artists" edge with a given conditions (other predicates).
func HasMoviesWith ¶
HasMoviesWith applies the HasEdge predicate on the "movies" 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.