Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.IndividualSport) predicate.IndividualSport
- func Bronze(v int) predicate.IndividualSport
- func BronzeEQ(v int) predicate.IndividualSport
- func BronzeGT(v int) predicate.IndividualSport
- func BronzeGTE(v int) predicate.IndividualSport
- func BronzeIn(vs ...int) predicate.IndividualSport
- func BronzeLT(v int) predicate.IndividualSport
- func BronzeLTE(v int) predicate.IndividualSport
- func BronzeNEQ(v int) predicate.IndividualSport
- func BronzeNotIn(vs ...int) predicate.IndividualSport
- func Country(v string) predicate.IndividualSport
- func CountryContains(v string) predicate.IndividualSport
- func CountryContainsFold(v string) predicate.IndividualSport
- func CountryEQ(v string) predicate.IndividualSport
- func CountryEqualFold(v string) predicate.IndividualSport
- func CountryGT(v string) predicate.IndividualSport
- func CountryGTE(v string) predicate.IndividualSport
- func CountryHasPrefix(v string) predicate.IndividualSport
- func CountryHasSuffix(v string) predicate.IndividualSport
- func CountryIn(vs ...string) predicate.IndividualSport
- func CountryLT(v string) predicate.IndividualSport
- func CountryLTE(v string) predicate.IndividualSport
- func CountryNEQ(v string) predicate.IndividualSport
- func CountryNotIn(vs ...string) predicate.IndividualSport
- func Gold(v int) predicate.IndividualSport
- func GoldEQ(v int) predicate.IndividualSport
- func GoldGT(v int) predicate.IndividualSport
- func GoldGTE(v int) predicate.IndividualSport
- func GoldIn(vs ...int) predicate.IndividualSport
- func GoldLT(v int) predicate.IndividualSport
- func GoldLTE(v int) predicate.IndividualSport
- func GoldNEQ(v int) predicate.IndividualSport
- func GoldNotIn(vs ...int) predicate.IndividualSport
- func ID(id int) predicate.IndividualSport
- func IDEQ(id int) predicate.IndividualSport
- func IDGT(id int) predicate.IndividualSport
- func IDGTE(id int) predicate.IndividualSport
- func IDIn(ids ...int) predicate.IndividualSport
- func IDLT(id int) predicate.IndividualSport
- func IDLTE(id int) predicate.IndividualSport
- func IDNEQ(id int) predicate.IndividualSport
- func IDNotIn(ids ...int) predicate.IndividualSport
- func Not(p predicate.IndividualSport) predicate.IndividualSport
- func Or(predicates ...predicate.IndividualSport) predicate.IndividualSport
- func PerCapita(v float64) predicate.IndividualSport
- func PerCapitaEQ(v float64) predicate.IndividualSport
- func PerCapitaGT(v float64) predicate.IndividualSport
- func PerCapitaGTE(v float64) predicate.IndividualSport
- func PerCapitaIn(vs ...float64) predicate.IndividualSport
- func PerCapitaLT(v float64) predicate.IndividualSport
- func PerCapitaLTE(v float64) predicate.IndividualSport
- func PerCapitaNEQ(v float64) predicate.IndividualSport
- func PerCapitaNotIn(vs ...float64) predicate.IndividualSport
- func Points(v int) predicate.IndividualSport
- func PointsEQ(v int) predicate.IndividualSport
- func PointsGT(v int) predicate.IndividualSport
- func PointsGTE(v int) predicate.IndividualSport
- func PointsIn(vs ...int) predicate.IndividualSport
- func PointsLT(v int) predicate.IndividualSport
- func PointsLTE(v int) predicate.IndividualSport
- func PointsNEQ(v int) predicate.IndividualSport
- func PointsNotIn(vs ...int) predicate.IndividualSport
- func Population(v int) predicate.IndividualSport
- func PopulationEQ(v int) predicate.IndividualSport
- func PopulationGT(v int) predicate.IndividualSport
- func PopulationGTE(v int) predicate.IndividualSport
- func PopulationIn(vs ...int) predicate.IndividualSport
- func PopulationLT(v int) predicate.IndividualSport
- func PopulationLTE(v int) predicate.IndividualSport
- func PopulationNEQ(v int) predicate.IndividualSport
- func PopulationNotIn(vs ...int) predicate.IndividualSport
- func Silver(v int) predicate.IndividualSport
- func SilverEQ(v int) predicate.IndividualSport
- func SilverGT(v int) predicate.IndividualSport
- func SilverGTE(v int) predicate.IndividualSport
- func SilverIn(vs ...int) predicate.IndividualSport
- func SilverLT(v int) predicate.IndividualSport
- func SilverLTE(v int) predicate.IndividualSport
- func SilverNEQ(v int) predicate.IndividualSport
- func SilverNotIn(vs ...int) predicate.IndividualSport
- func Sport(v string) predicate.IndividualSport
- func SportContains(v string) predicate.IndividualSport
- func SportContainsFold(v string) predicate.IndividualSport
- func SportEQ(v string) predicate.IndividualSport
- func SportEqualFold(v string) predicate.IndividualSport
- func SportGT(v string) predicate.IndividualSport
- func SportGTE(v string) predicate.IndividualSport
- func SportHasPrefix(v string) predicate.IndividualSport
- func SportHasSuffix(v string) predicate.IndividualSport
- func SportIn(vs ...string) predicate.IndividualSport
- func SportLT(v string) predicate.IndividualSport
- func SportLTE(v string) predicate.IndividualSport
- func SportNEQ(v string) predicate.IndividualSport
- func SportNotIn(vs ...string) predicate.IndividualSport
- func TotalScore(v int) predicate.IndividualSport
- func TotalScoreEQ(v int) predicate.IndividualSport
- func TotalScoreGT(v int) predicate.IndividualSport
- func TotalScoreGTE(v int) predicate.IndividualSport
- func TotalScoreIn(vs ...int) predicate.IndividualSport
- func TotalScoreLT(v int) predicate.IndividualSport
- func TotalScoreLTE(v int) predicate.IndividualSport
- func TotalScoreNEQ(v int) predicate.IndividualSport
- func TotalScoreNotIn(vs ...int) predicate.IndividualSport
- func ValidColumn(column string) bool
- type OrderOption
- func ByBronze(opts ...sql.OrderTermOption) OrderOption
- func ByCountry(opts ...sql.OrderTermOption) OrderOption
- func ByGold(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPerCapita(opts ...sql.OrderTermOption) OrderOption
- func ByPoints(opts ...sql.OrderTermOption) OrderOption
- func ByPopulation(opts ...sql.OrderTermOption) OrderOption
- func BySilver(opts ...sql.OrderTermOption) OrderOption
- func BySport(opts ...sql.OrderTermOption) OrderOption
- func ByTotalScore(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the individualsport type in the database. Label = "individual_sport" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCountry holds the string denoting the country field in the database. FieldCountry = "country" // FieldSport holds the string denoting the sport field in the database. FieldSport = "sport" // FieldGold holds the string denoting the gold field in the database. FieldGold = "gold" // FieldSilver holds the string denoting the silver field in the database. FieldSilver = "silver" // FieldBronze holds the string denoting the bronze field in the database. FieldBronze = "bronze" // FieldPoints holds the string denoting the points field in the database. FieldPoints = "points" // FieldTotalScore holds the string denoting the total_score field in the database. FieldTotalScore = "total_score" // FieldPopulation holds the string denoting the population field in the database. FieldPopulation = "population" // FieldPerCapita holds the string denoting the per_capita field in the database. FieldPerCapita = "per_capita" // Table holds the table name of the individualsport in the database. Table = "individual_sports" )
Variables ¶
var Columns = []string{ FieldID, FieldCountry, FieldSport, FieldGold, FieldSilver, FieldBronze, FieldPoints, FieldTotalScore, FieldPopulation, FieldPerCapita, }
Columns holds all SQL columns for individualsport fields.
Functions ¶
func And ¶
func And(predicates ...predicate.IndividualSport) predicate.IndividualSport
And groups predicates with the AND operator between them.
func Bronze ¶
func Bronze(v int) predicate.IndividualSport
Bronze applies equality check predicate on the "bronze" field. It's identical to BronzeEQ.
func BronzeEQ ¶
func BronzeEQ(v int) predicate.IndividualSport
BronzeEQ applies the EQ predicate on the "bronze" field.
func BronzeGT ¶
func BronzeGT(v int) predicate.IndividualSport
BronzeGT applies the GT predicate on the "bronze" field.
func BronzeGTE ¶
func BronzeGTE(v int) predicate.IndividualSport
BronzeGTE applies the GTE predicate on the "bronze" field.
func BronzeIn ¶
func BronzeIn(vs ...int) predicate.IndividualSport
BronzeIn applies the In predicate on the "bronze" field.
func BronzeLT ¶
func BronzeLT(v int) predicate.IndividualSport
BronzeLT applies the LT predicate on the "bronze" field.
func BronzeLTE ¶
func BronzeLTE(v int) predicate.IndividualSport
BronzeLTE applies the LTE predicate on the "bronze" field.
func BronzeNEQ ¶
func BronzeNEQ(v int) predicate.IndividualSport
BronzeNEQ applies the NEQ predicate on the "bronze" field.
func BronzeNotIn ¶
func BronzeNotIn(vs ...int) predicate.IndividualSport
BronzeNotIn applies the NotIn predicate on the "bronze" field.
func Country ¶
func Country(v string) predicate.IndividualSport
Country applies equality check predicate on the "country" field. It's identical to CountryEQ.
func CountryContains ¶
func CountryContains(v string) predicate.IndividualSport
CountryContains applies the Contains predicate on the "country" field.
func CountryContainsFold ¶
func CountryContainsFold(v string) predicate.IndividualSport
CountryContainsFold applies the ContainsFold predicate on the "country" field.
func CountryEQ ¶
func CountryEQ(v string) predicate.IndividualSport
CountryEQ applies the EQ predicate on the "country" field.
func CountryEqualFold ¶
func CountryEqualFold(v string) predicate.IndividualSport
CountryEqualFold applies the EqualFold predicate on the "country" field.
func CountryGT ¶
func CountryGT(v string) predicate.IndividualSport
CountryGT applies the GT predicate on the "country" field.
func CountryGTE ¶
func CountryGTE(v string) predicate.IndividualSport
CountryGTE applies the GTE predicate on the "country" field.
func CountryHasPrefix ¶
func CountryHasPrefix(v string) predicate.IndividualSport
CountryHasPrefix applies the HasPrefix predicate on the "country" field.
func CountryHasSuffix ¶
func CountryHasSuffix(v string) predicate.IndividualSport
CountryHasSuffix applies the HasSuffix predicate on the "country" field.
func CountryIn ¶
func CountryIn(vs ...string) predicate.IndividualSport
CountryIn applies the In predicate on the "country" field.
func CountryLT ¶
func CountryLT(v string) predicate.IndividualSport
CountryLT applies the LT predicate on the "country" field.
func CountryLTE ¶
func CountryLTE(v string) predicate.IndividualSport
CountryLTE applies the LTE predicate on the "country" field.
func CountryNEQ ¶
func CountryNEQ(v string) predicate.IndividualSport
CountryNEQ applies the NEQ predicate on the "country" field.
func CountryNotIn ¶
func CountryNotIn(vs ...string) predicate.IndividualSport
CountryNotIn applies the NotIn predicate on the "country" field.
func Gold ¶
func Gold(v int) predicate.IndividualSport
Gold applies equality check predicate on the "gold" field. It's identical to GoldEQ.
func GoldEQ ¶
func GoldEQ(v int) predicate.IndividualSport
GoldEQ applies the EQ predicate on the "gold" field.
func GoldGT ¶
func GoldGT(v int) predicate.IndividualSport
GoldGT applies the GT predicate on the "gold" field.
func GoldGTE ¶
func GoldGTE(v int) predicate.IndividualSport
GoldGTE applies the GTE predicate on the "gold" field.
func GoldIn ¶
func GoldIn(vs ...int) predicate.IndividualSport
GoldIn applies the In predicate on the "gold" field.
func GoldLT ¶
func GoldLT(v int) predicate.IndividualSport
GoldLT applies the LT predicate on the "gold" field.
func GoldLTE ¶
func GoldLTE(v int) predicate.IndividualSport
GoldLTE applies the LTE predicate on the "gold" field.
func GoldNEQ ¶
func GoldNEQ(v int) predicate.IndividualSport
GoldNEQ applies the NEQ predicate on the "gold" field.
func GoldNotIn ¶
func GoldNotIn(vs ...int) predicate.IndividualSport
GoldNotIn applies the NotIn predicate on the "gold" field.
func IDEQ ¶
func IDEQ(id int) predicate.IndividualSport
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.IndividualSport
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.IndividualSport
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.IndividualSport
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.IndividualSport
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.IndividualSport
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.IndividualSport
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.IndividualSport
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.IndividualSport) predicate.IndividualSport
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.IndividualSport) predicate.IndividualSport
Or groups predicates with the OR operator between them.
func PerCapita ¶
func PerCapita(v float64) predicate.IndividualSport
PerCapita applies equality check predicate on the "per_capita" field. It's identical to PerCapitaEQ.
func PerCapitaEQ ¶
func PerCapitaEQ(v float64) predicate.IndividualSport
PerCapitaEQ applies the EQ predicate on the "per_capita" field.
func PerCapitaGT ¶
func PerCapitaGT(v float64) predicate.IndividualSport
PerCapitaGT applies the GT predicate on the "per_capita" field.
func PerCapitaGTE ¶
func PerCapitaGTE(v float64) predicate.IndividualSport
PerCapitaGTE applies the GTE predicate on the "per_capita" field.
func PerCapitaIn ¶
func PerCapitaIn(vs ...float64) predicate.IndividualSport
PerCapitaIn applies the In predicate on the "per_capita" field.
func PerCapitaLT ¶
func PerCapitaLT(v float64) predicate.IndividualSport
PerCapitaLT applies the LT predicate on the "per_capita" field.
func PerCapitaLTE ¶
func PerCapitaLTE(v float64) predicate.IndividualSport
PerCapitaLTE applies the LTE predicate on the "per_capita" field.
func PerCapitaNEQ ¶
func PerCapitaNEQ(v float64) predicate.IndividualSport
PerCapitaNEQ applies the NEQ predicate on the "per_capita" field.
func PerCapitaNotIn ¶
func PerCapitaNotIn(vs ...float64) predicate.IndividualSport
PerCapitaNotIn applies the NotIn predicate on the "per_capita" field.
func Points ¶
func Points(v int) predicate.IndividualSport
Points applies equality check predicate on the "points" field. It's identical to PointsEQ.
func PointsEQ ¶
func PointsEQ(v int) predicate.IndividualSport
PointsEQ applies the EQ predicate on the "points" field.
func PointsGT ¶
func PointsGT(v int) predicate.IndividualSport
PointsGT applies the GT predicate on the "points" field.
func PointsGTE ¶
func PointsGTE(v int) predicate.IndividualSport
PointsGTE applies the GTE predicate on the "points" field.
func PointsIn ¶
func PointsIn(vs ...int) predicate.IndividualSport
PointsIn applies the In predicate on the "points" field.
func PointsLT ¶
func PointsLT(v int) predicate.IndividualSport
PointsLT applies the LT predicate on the "points" field.
func PointsLTE ¶
func PointsLTE(v int) predicate.IndividualSport
PointsLTE applies the LTE predicate on the "points" field.
func PointsNEQ ¶
func PointsNEQ(v int) predicate.IndividualSport
PointsNEQ applies the NEQ predicate on the "points" field.
func PointsNotIn ¶
func PointsNotIn(vs ...int) predicate.IndividualSport
PointsNotIn applies the NotIn predicate on the "points" field.
func Population ¶
func Population(v int) predicate.IndividualSport
Population applies equality check predicate on the "population" field. It's identical to PopulationEQ.
func PopulationEQ ¶
func PopulationEQ(v int) predicate.IndividualSport
PopulationEQ applies the EQ predicate on the "population" field.
func PopulationGT ¶
func PopulationGT(v int) predicate.IndividualSport
PopulationGT applies the GT predicate on the "population" field.
func PopulationGTE ¶
func PopulationGTE(v int) predicate.IndividualSport
PopulationGTE applies the GTE predicate on the "population" field.
func PopulationIn ¶
func PopulationIn(vs ...int) predicate.IndividualSport
PopulationIn applies the In predicate on the "population" field.
func PopulationLT ¶
func PopulationLT(v int) predicate.IndividualSport
PopulationLT applies the LT predicate on the "population" field.
func PopulationLTE ¶
func PopulationLTE(v int) predicate.IndividualSport
PopulationLTE applies the LTE predicate on the "population" field.
func PopulationNEQ ¶
func PopulationNEQ(v int) predicate.IndividualSport
PopulationNEQ applies the NEQ predicate on the "population" field.
func PopulationNotIn ¶
func PopulationNotIn(vs ...int) predicate.IndividualSport
PopulationNotIn applies the NotIn predicate on the "population" field.
func Silver ¶
func Silver(v int) predicate.IndividualSport
Silver applies equality check predicate on the "silver" field. It's identical to SilverEQ.
func SilverEQ ¶
func SilverEQ(v int) predicate.IndividualSport
SilverEQ applies the EQ predicate on the "silver" field.
func SilverGT ¶
func SilverGT(v int) predicate.IndividualSport
SilverGT applies the GT predicate on the "silver" field.
func SilverGTE ¶
func SilverGTE(v int) predicate.IndividualSport
SilverGTE applies the GTE predicate on the "silver" field.
func SilverIn ¶
func SilverIn(vs ...int) predicate.IndividualSport
SilverIn applies the In predicate on the "silver" field.
func SilverLT ¶
func SilverLT(v int) predicate.IndividualSport
SilverLT applies the LT predicate on the "silver" field.
func SilverLTE ¶
func SilverLTE(v int) predicate.IndividualSport
SilverLTE applies the LTE predicate on the "silver" field.
func SilverNEQ ¶
func SilverNEQ(v int) predicate.IndividualSport
SilverNEQ applies the NEQ predicate on the "silver" field.
func SilverNotIn ¶
func SilverNotIn(vs ...int) predicate.IndividualSport
SilverNotIn applies the NotIn predicate on the "silver" field.
func Sport ¶
func Sport(v string) predicate.IndividualSport
Sport applies equality check predicate on the "sport" field. It's identical to SportEQ.
func SportContains ¶
func SportContains(v string) predicate.IndividualSport
SportContains applies the Contains predicate on the "sport" field.
func SportContainsFold ¶
func SportContainsFold(v string) predicate.IndividualSport
SportContainsFold applies the ContainsFold predicate on the "sport" field.
func SportEQ ¶
func SportEQ(v string) predicate.IndividualSport
SportEQ applies the EQ predicate on the "sport" field.
func SportEqualFold ¶
func SportEqualFold(v string) predicate.IndividualSport
SportEqualFold applies the EqualFold predicate on the "sport" field.
func SportGT ¶
func SportGT(v string) predicate.IndividualSport
SportGT applies the GT predicate on the "sport" field.
func SportGTE ¶
func SportGTE(v string) predicate.IndividualSport
SportGTE applies the GTE predicate on the "sport" field.
func SportHasPrefix ¶
func SportHasPrefix(v string) predicate.IndividualSport
SportHasPrefix applies the HasPrefix predicate on the "sport" field.
func SportHasSuffix ¶
func SportHasSuffix(v string) predicate.IndividualSport
SportHasSuffix applies the HasSuffix predicate on the "sport" field.
func SportIn ¶
func SportIn(vs ...string) predicate.IndividualSport
SportIn applies the In predicate on the "sport" field.
func SportLT ¶
func SportLT(v string) predicate.IndividualSport
SportLT applies the LT predicate on the "sport" field.
func SportLTE ¶
func SportLTE(v string) predicate.IndividualSport
SportLTE applies the LTE predicate on the "sport" field.
func SportNEQ ¶
func SportNEQ(v string) predicate.IndividualSport
SportNEQ applies the NEQ predicate on the "sport" field.
func SportNotIn ¶
func SportNotIn(vs ...string) predicate.IndividualSport
SportNotIn applies the NotIn predicate on the "sport" field.
func TotalScore ¶
func TotalScore(v int) predicate.IndividualSport
TotalScore applies equality check predicate on the "total_score" field. It's identical to TotalScoreEQ.
func TotalScoreEQ ¶
func TotalScoreEQ(v int) predicate.IndividualSport
TotalScoreEQ applies the EQ predicate on the "total_score" field.
func TotalScoreGT ¶
func TotalScoreGT(v int) predicate.IndividualSport
TotalScoreGT applies the GT predicate on the "total_score" field.
func TotalScoreGTE ¶
func TotalScoreGTE(v int) predicate.IndividualSport
TotalScoreGTE applies the GTE predicate on the "total_score" field.
func TotalScoreIn ¶
func TotalScoreIn(vs ...int) predicate.IndividualSport
TotalScoreIn applies the In predicate on the "total_score" field.
func TotalScoreLT ¶
func TotalScoreLT(v int) predicate.IndividualSport
TotalScoreLT applies the LT predicate on the "total_score" field.
func TotalScoreLTE ¶
func TotalScoreLTE(v int) predicate.IndividualSport
TotalScoreLTE applies the LTE predicate on the "total_score" field.
func TotalScoreNEQ ¶
func TotalScoreNEQ(v int) predicate.IndividualSport
TotalScoreNEQ applies the NEQ predicate on the "total_score" field.
func TotalScoreNotIn ¶
func TotalScoreNotIn(vs ...int) predicate.IndividualSport
TotalScoreNotIn applies the NotIn predicate on the "total_score" 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 IndividualSport queries.
func ByBronze ¶
func ByBronze(opts ...sql.OrderTermOption) OrderOption
ByBronze orders the results by the bronze field.
func ByCountry ¶
func ByCountry(opts ...sql.OrderTermOption) OrderOption
ByCountry orders the results by the country field.
func ByGold ¶
func ByGold(opts ...sql.OrderTermOption) OrderOption
ByGold orders the results by the gold field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPerCapita ¶
func ByPerCapita(opts ...sql.OrderTermOption) OrderOption
ByPerCapita orders the results by the per_capita field.
func ByPoints ¶
func ByPoints(opts ...sql.OrderTermOption) OrderOption
ByPoints orders the results by the points field.
func ByPopulation ¶
func ByPopulation(opts ...sql.OrderTermOption) OrderOption
ByPopulation orders the results by the population field.
func BySilver ¶
func BySilver(opts ...sql.OrderTermOption) OrderOption
BySilver orders the results by the silver field.
func BySport ¶
func BySport(opts ...sql.OrderTermOption) OrderOption
BySport orders the results by the sport field.
func ByTotalScore ¶
func ByTotalScore(opts ...sql.OrderTermOption) OrderOption
ByTotalScore orders the results by the total_score field.