competition

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the competition type in the database.
	Label = "competition"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeCompetitionToTeams holds the string denoting the competitiontoteams edge name in mutations.
	EdgeCompetitionToTeams = "CompetitionToTeams"
	// EdgeCompetitionToProvider holds the string denoting the competitiontoprovider edge name in mutations.
	EdgeCompetitionToProvider = "CompetitionToProvider"
	// Table holds the table name of the competition in the database.
	Table = "competitions"
	// CompetitionToTeamsTable is the table that holds the CompetitionToTeams relation/edge.
	CompetitionToTeamsTable = "teams"
	// CompetitionToTeamsInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	CompetitionToTeamsInverseTable = "teams"
	// CompetitionToTeamsColumn is the table column denoting the CompetitionToTeams relation/edge.
	CompetitionToTeamsColumn = "competition_competition_to_teams"
	// CompetitionToProviderTable is the table that holds the CompetitionToProvider relation/edge.
	CompetitionToProviderTable = "competitions"
	// CompetitionToProviderInverseTable is the table name for the Provider entity.
	// It exists in this package in order to avoid circular dependency with the "provider" package.
	CompetitionToProviderInverseTable = "providers"
	// CompetitionToProviderColumn is the table column denoting the CompetitionToProvider relation/edge.
	CompetitionToProviderColumn = "competition_competition_to_provider"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldName,
}

Columns holds all SQL columns for competition fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var ForeignKeys = []string{
	"competition_competition_to_provider",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "competitions" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Competition) predicate.Competition

And groups predicates with the AND operator between them.

func HasCompetitionToProvider

func HasCompetitionToProvider() predicate.Competition

HasCompetitionToProvider applies the HasEdge predicate on the "CompetitionToProvider" edge.

func HasCompetitionToProviderWith

func HasCompetitionToProviderWith(preds ...predicate.Provider) predicate.Competition

HasCompetitionToProviderWith applies the HasEdge predicate on the "CompetitionToProvider" edge with a given conditions (other predicates).

func HasCompetitionToTeams

func HasCompetitionToTeams() predicate.Competition

HasCompetitionToTeams applies the HasEdge predicate on the "CompetitionToTeams" edge.

func HasCompetitionToTeamsWith

func HasCompetitionToTeamsWith(preds ...predicate.Team) predicate.Competition

HasCompetitionToTeamsWith applies the HasEdge predicate on the "CompetitionToTeams" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Competition

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Competition

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Competition

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Competition

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Competition

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Competition

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Competition

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Competition

IDNotIn applies the NotIn predicate on the ID field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Competition

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Competition

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Competition

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Competition

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Competition

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Competition

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Competition

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Competition

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Competition

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Competition

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Competition

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Competition

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Competition

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Competition) predicate.Competition

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

This section is empty.

Jump to

Keyboard shortcuts

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