Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ChallengeGroup) predicate.ChallengeGroup
- func HasCategory() predicate.ChallengeGroup
- func HasCategoryWith(preds ...predicate.Category) predicate.ChallengeGroup
- func HasChallenges() predicate.ChallengeGroup
- func HasChallengesWith(preds ...predicate.Challenge) predicate.ChallengeGroup
- func HasEpisodeRound() predicate.ChallengeGroup
- func HasEpisodeRoundWith(preds ...predicate.EpisodeRound) predicate.ChallengeGroup
- func ID(id int) predicate.ChallengeGroup
- func IDEQ(id int) predicate.ChallengeGroup
- func IDGT(id int) predicate.ChallengeGroup
- func IDGTE(id int) predicate.ChallengeGroup
- func IDIn(ids ...int) predicate.ChallengeGroup
- func IDLT(id int) predicate.ChallengeGroup
- func IDLTE(id int) predicate.ChallengeGroup
- func IDNEQ(id int) predicate.ChallengeGroup
- func IDNotIn(ids ...int) predicate.ChallengeGroup
- func Not(p predicate.ChallengeGroup) predicate.ChallengeGroup
- func Or(predicates ...predicate.ChallengeGroup) predicate.ChallengeGroup
- func ValidColumn(column string) bool
- type OrderOption
- func ByCategory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCategoryCount(opts ...sql.OrderTermOption) OrderOption
- func ByChallenges(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChallengesCount(opts ...sql.OrderTermOption) OrderOption
- func ByEpisodeRound(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEpisodeRoundCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the challengegroup type in the database. Label = "challenge_group" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeChallenges holds the string denoting the challenges edge name in mutations. EdgeChallenges = "challenges" // EdgeCategory holds the string denoting the category edge name in mutations. EdgeCategory = "category" // EdgeEpisodeRound holds the string denoting the episode_round edge name in mutations. EdgeEpisodeRound = "episode_round" // Table holds the table name of the challengegroup in the database. Table = "challenge_groups" // ChallengesTable is the table that holds the challenges relation/edge. The primary key declared below. ChallengesTable = "challenge_group_challenges" // ChallengesInverseTable is the table name for the Challenge entity. // It exists in this package in order to avoid circular dependency with the "challenge" package. ChallengesInverseTable = "challenges" // CategoryTable is the table that holds the category relation/edge. The primary key declared below. CategoryTable = "category_challenge_groups" // CategoryInverseTable is the table name for the Category entity. // It exists in this package in order to avoid circular dependency with the "category" package. CategoryInverseTable = "categories" // EpisodeRoundTable is the table that holds the episode_round relation/edge. The primary key declared below. EpisodeRoundTable = "episode_round_categories" // EpisodeRoundInverseTable is the table name for the EpisodeRound entity. // It exists in this package in order to avoid circular dependency with the "episoderound" package. EpisodeRoundInverseTable = "episode_rounds" )
Variables ¶
var ( // ChallengesPrimaryKey and ChallengesColumn2 are the table columns denoting the // primary key for the challenges relation (M2M). ChallengesPrimaryKey = []string{"challenge_group_id", "challenge_id"} // CategoryPrimaryKey and CategoryColumn2 are the table columns denoting the // primary key for the category relation (M2M). CategoryPrimaryKey = []string{"category_id", "challenge_group_id"} // EpisodeRoundPrimaryKey and EpisodeRoundColumn2 are the table columns denoting the // primary key for the episode_round relation (M2M). EpisodeRoundPrimaryKey = []string{"episode_round_id", "challenge_group_id"} )
var Columns = []string{ FieldID, }
Columns holds all SQL columns for challengegroup fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ChallengeGroup) predicate.ChallengeGroup
And groups predicates with the AND operator between them.
func HasCategory ¶
func HasCategory() predicate.ChallengeGroup
HasCategory applies the HasEdge predicate on the "category" edge.
func HasCategoryWith ¶
func HasCategoryWith(preds ...predicate.Category) predicate.ChallengeGroup
HasCategoryWith applies the HasEdge predicate on the "category" edge with a given conditions (other predicates).
func HasChallenges ¶
func HasChallenges() predicate.ChallengeGroup
HasChallenges applies the HasEdge predicate on the "challenges" edge.
func HasChallengesWith ¶
func HasChallengesWith(preds ...predicate.Challenge) predicate.ChallengeGroup
HasChallengesWith applies the HasEdge predicate on the "challenges" edge with a given conditions (other predicates).
func HasEpisodeRound ¶
func HasEpisodeRound() predicate.ChallengeGroup
HasEpisodeRound applies the HasEdge predicate on the "episode_round" edge.
func HasEpisodeRoundWith ¶
func HasEpisodeRoundWith(preds ...predicate.EpisodeRound) predicate.ChallengeGroup
HasEpisodeRoundWith applies the HasEdge predicate on the "episode_round" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.ChallengeGroup
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ChallengeGroup
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ChallengeGroup
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ChallengeGroup
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ChallengeGroup
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ChallengeGroup
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ChallengeGroup
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ChallengeGroup
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ChallengeGroup) predicate.ChallengeGroup
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ChallengeGroup) predicate.ChallengeGroup
Or groups predicates with the OR operator between them.
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 ChallengeGroup queries.
func ByCategory ¶
func ByCategory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCategory orders the results by category terms.
func ByCategoryCount ¶
func ByCategoryCount(opts ...sql.OrderTermOption) OrderOption
ByCategoryCount orders the results by category count.
func ByChallenges ¶
func ByChallenges(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChallenges orders the results by challenges terms.
func ByChallengesCount ¶
func ByChallengesCount(opts ...sql.OrderTermOption) OrderOption
ByChallengesCount orders the results by challenges count.
func ByEpisodeRound ¶
func ByEpisodeRound(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEpisodeRound orders the results by episode_round terms.
func ByEpisodeRoundCount ¶
func ByEpisodeRoundCount(opts ...sql.OrderTermOption) OrderOption
ByEpisodeRoundCount orders the results by episode_round count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.