challengegroup

package
v0.0.0-...-1b9e5be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"}
)
View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for challengegroup fields.

Functions

func And

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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL