match

package
v0.0.0-...-4b256dd Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the match type in the database.
	Label = "match"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldShareCode holds the string denoting the share_code field in the database.
	FieldShareCode = "share_code"
	// FieldMap holds the string denoting the map field in the database.
	FieldMap = "map"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// FieldScoreTeamA holds the string denoting the score_team_a field in the database.
	FieldScoreTeamA = "score_team_a"
	// FieldScoreTeamB holds the string denoting the score_team_b field in the database.
	FieldScoreTeamB = "score_team_b"
	// FieldReplayURL holds the string denoting the replay_url field in the database.
	FieldReplayURL = "replay_url"
	// FieldDuration holds the string denoting the duration field in the database.
	FieldDuration = "duration"
	// FieldMatchResult holds the string denoting the match_result field in the database.
	FieldMatchResult = "match_result"
	// FieldMaxRounds holds the string denoting the max_rounds field in the database.
	FieldMaxRounds = "max_rounds"
	// FieldDemoParsed holds the string denoting the demo_parsed field in the database.
	FieldDemoParsed = "demo_parsed"
	// FieldVacPresent holds the string denoting the vac_present field in the database.
	FieldVacPresent = "vac_present"
	// FieldGamebanPresent holds the string denoting the gameban_present field in the database.
	FieldGamebanPresent = "gameban_present"
	// FieldDecryptionKey holds the string denoting the decryption_key field in the database.
	FieldDecryptionKey = "decryption_key"
	// FieldTickRate holds the string denoting the tick_rate field in the database.
	FieldTickRate = "tick_rate"
	// EdgeStats holds the string denoting the stats edge name in mutations.
	EdgeStats = "stats"
	// EdgePlayers holds the string denoting the players edge name in mutations.
	EdgePlayers = "players"
	// Table holds the table name of the match in the database.
	Table = "matches"
	// StatsTable is the table that holds the stats relation/edge.
	StatsTable = "match_players"
	// StatsInverseTable is the table name for the MatchPlayer entity.
	// It exists in this package in order to avoid circular dependency with the "matchplayer" package.
	StatsInverseTable = "match_players"
	// StatsColumn is the table column denoting the stats relation/edge.
	StatsColumn = "match_stats"
	// PlayersTable is the table that holds the players relation/edge. The primary key declared below.
	PlayersTable = "player_matches"
	// PlayersInverseTable is the table name for the Player entity.
	// It exists in this package in order to avoid circular dependency with the "player" package.
	PlayersInverseTable = "players"
)

Variables

View Source
var (
	// DefaultDemoParsed holds the default value on creation for the "demo_parsed" field.
	DefaultDemoParsed bool
	// DefaultVacPresent holds the default value on creation for the "vac_present" field.
	DefaultVacPresent bool
	// DefaultGamebanPresent holds the default value on creation for the "gameban_present" field.
	DefaultGamebanPresent bool
)

Columns holds all SQL columns for match fields.

View Source
var (
	// PlayersPrimaryKey and PlayersColumn2 are the table columns denoting the
	// primary key for the players relation (M2M).
	PlayersPrimaryKey = []string{"player_id", "match_id"}
)

Functions

func And

func And(predicates ...predicate.Match) predicate.Match

And groups predicates with the AND operator between them.

func Date

func Date(v time.Time) predicate.Match

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

func DateEQ(v time.Time) predicate.Match

DateEQ applies the EQ predicate on the "date" field.

func DateGT

func DateGT(v time.Time) predicate.Match

DateGT applies the GT predicate on the "date" field.

func DateGTE

func DateGTE(v time.Time) predicate.Match

DateGTE applies the GTE predicate on the "date" field.

func DateIn

func DateIn(vs ...time.Time) predicate.Match

DateIn applies the In predicate on the "date" field.

func DateLT

func DateLT(v time.Time) predicate.Match

DateLT applies the LT predicate on the "date" field.

func DateLTE

func DateLTE(v time.Time) predicate.Match

DateLTE applies the LTE predicate on the "date" field.

func DateNEQ

func DateNEQ(v time.Time) predicate.Match

DateNEQ applies the NEQ predicate on the "date" field.

func DateNotIn

func DateNotIn(vs ...time.Time) predicate.Match

DateNotIn applies the NotIn predicate on the "date" field.

func DecryptionKey

func DecryptionKey(v []byte) predicate.Match

DecryptionKey applies equality check predicate on the "decryption_key" field. It's identical to DecryptionKeyEQ.

func DecryptionKeyEQ

func DecryptionKeyEQ(v []byte) predicate.Match

DecryptionKeyEQ applies the EQ predicate on the "decryption_key" field.

func DecryptionKeyGT

func DecryptionKeyGT(v []byte) predicate.Match

DecryptionKeyGT applies the GT predicate on the "decryption_key" field.

func DecryptionKeyGTE

func DecryptionKeyGTE(v []byte) predicate.Match

DecryptionKeyGTE applies the GTE predicate on the "decryption_key" field.

func DecryptionKeyIn

func DecryptionKeyIn(vs ...[]byte) predicate.Match

DecryptionKeyIn applies the In predicate on the "decryption_key" field.

func DecryptionKeyIsNil

func DecryptionKeyIsNil() predicate.Match

DecryptionKeyIsNil applies the IsNil predicate on the "decryption_key" field.

func DecryptionKeyLT

func DecryptionKeyLT(v []byte) predicate.Match

DecryptionKeyLT applies the LT predicate on the "decryption_key" field.

func DecryptionKeyLTE

func DecryptionKeyLTE(v []byte) predicate.Match

DecryptionKeyLTE applies the LTE predicate on the "decryption_key" field.

func DecryptionKeyNEQ

func DecryptionKeyNEQ(v []byte) predicate.Match

DecryptionKeyNEQ applies the NEQ predicate on the "decryption_key" field.

func DecryptionKeyNotIn

func DecryptionKeyNotIn(vs ...[]byte) predicate.Match

DecryptionKeyNotIn applies the NotIn predicate on the "decryption_key" field.

func DecryptionKeyNotNil

func DecryptionKeyNotNil() predicate.Match

DecryptionKeyNotNil applies the NotNil predicate on the "decryption_key" field.

func DemoParsed

func DemoParsed(v bool) predicate.Match

DemoParsed applies equality check predicate on the "demo_parsed" field. It's identical to DemoParsedEQ.

func DemoParsedEQ

func DemoParsedEQ(v bool) predicate.Match

DemoParsedEQ applies the EQ predicate on the "demo_parsed" field.

func DemoParsedNEQ

func DemoParsedNEQ(v bool) predicate.Match

DemoParsedNEQ applies the NEQ predicate on the "demo_parsed" field.

func Duration

func Duration(v int) predicate.Match

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v int) predicate.Match

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v int) predicate.Match

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v int) predicate.Match

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...int) predicate.Match

DurationIn applies the In predicate on the "duration" field.

func DurationLT

func DurationLT(v int) predicate.Match

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v int) predicate.Match

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v int) predicate.Match

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...int) predicate.Match

DurationNotIn applies the NotIn predicate on the "duration" field.

func GamebanPresent

func GamebanPresent(v bool) predicate.Match

GamebanPresent applies equality check predicate on the "gameban_present" field. It's identical to GamebanPresentEQ.

func GamebanPresentEQ

func GamebanPresentEQ(v bool) predicate.Match

GamebanPresentEQ applies the EQ predicate on the "gameban_present" field.

func GamebanPresentNEQ

func GamebanPresentNEQ(v bool) predicate.Match

GamebanPresentNEQ applies the NEQ predicate on the "gameban_present" field.

func HasPlayers

func HasPlayers() predicate.Match

HasPlayers applies the HasEdge predicate on the "players" edge.

func HasPlayersWith

func HasPlayersWith(preds ...predicate.Player) predicate.Match

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

func HasStats

func HasStats() predicate.Match

HasStats applies the HasEdge predicate on the "stats" edge.

func HasStatsWith

func HasStatsWith(preds ...predicate.MatchPlayer) predicate.Match

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

func ID

func ID(id uint64) predicate.Match

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Match

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Match

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Match

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Match

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Match

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Match

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Match

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Match

IDNotIn applies the NotIn predicate on the ID field.

func Map

func Map(v string) predicate.Match

Map applies equality check predicate on the "map" field. It's identical to MapEQ.

func MapContains

func MapContains(v string) predicate.Match

MapContains applies the Contains predicate on the "map" field.

func MapContainsFold

func MapContainsFold(v string) predicate.Match

MapContainsFold applies the ContainsFold predicate on the "map" field.

func MapEQ

func MapEQ(v string) predicate.Match

MapEQ applies the EQ predicate on the "map" field.

func MapEqualFold

func MapEqualFold(v string) predicate.Match

MapEqualFold applies the EqualFold predicate on the "map" field.

func MapGT

func MapGT(v string) predicate.Match

MapGT applies the GT predicate on the "map" field.

func MapGTE

func MapGTE(v string) predicate.Match

MapGTE applies the GTE predicate on the "map" field.

func MapHasPrefix

func MapHasPrefix(v string) predicate.Match

MapHasPrefix applies the HasPrefix predicate on the "map" field.

func MapHasSuffix

func MapHasSuffix(v string) predicate.Match

MapHasSuffix applies the HasSuffix predicate on the "map" field.

func MapIn

func MapIn(vs ...string) predicate.Match

MapIn applies the In predicate on the "map" field.

func MapIsNil

func MapIsNil() predicate.Match

MapIsNil applies the IsNil predicate on the "map" field.

func MapLT

func MapLT(v string) predicate.Match

MapLT applies the LT predicate on the "map" field.

func MapLTE

func MapLTE(v string) predicate.Match

MapLTE applies the LTE predicate on the "map" field.

func MapNEQ

func MapNEQ(v string) predicate.Match

MapNEQ applies the NEQ predicate on the "map" field.

func MapNotIn

func MapNotIn(vs ...string) predicate.Match

MapNotIn applies the NotIn predicate on the "map" field.

func MapNotNil

func MapNotNil() predicate.Match

MapNotNil applies the NotNil predicate on the "map" field.

func MatchResult

func MatchResult(v int) predicate.Match

MatchResult applies equality check predicate on the "match_result" field. It's identical to MatchResultEQ.

func MatchResultEQ

func MatchResultEQ(v int) predicate.Match

MatchResultEQ applies the EQ predicate on the "match_result" field.

func MatchResultGT

func MatchResultGT(v int) predicate.Match

MatchResultGT applies the GT predicate on the "match_result" field.

func MatchResultGTE

func MatchResultGTE(v int) predicate.Match

MatchResultGTE applies the GTE predicate on the "match_result" field.

func MatchResultIn

func MatchResultIn(vs ...int) predicate.Match

MatchResultIn applies the In predicate on the "match_result" field.

func MatchResultLT

func MatchResultLT(v int) predicate.Match

MatchResultLT applies the LT predicate on the "match_result" field.

func MatchResultLTE

func MatchResultLTE(v int) predicate.Match

MatchResultLTE applies the LTE predicate on the "match_result" field.

func MatchResultNEQ

func MatchResultNEQ(v int) predicate.Match

MatchResultNEQ applies the NEQ predicate on the "match_result" field.

func MatchResultNotIn

func MatchResultNotIn(vs ...int) predicate.Match

MatchResultNotIn applies the NotIn predicate on the "match_result" field.

func MaxRounds

func MaxRounds(v int) predicate.Match

MaxRounds applies equality check predicate on the "max_rounds" field. It's identical to MaxRoundsEQ.

func MaxRoundsEQ

func MaxRoundsEQ(v int) predicate.Match

MaxRoundsEQ applies the EQ predicate on the "max_rounds" field.

func MaxRoundsGT

func MaxRoundsGT(v int) predicate.Match

MaxRoundsGT applies the GT predicate on the "max_rounds" field.

func MaxRoundsGTE

func MaxRoundsGTE(v int) predicate.Match

MaxRoundsGTE applies the GTE predicate on the "max_rounds" field.

func MaxRoundsIn

func MaxRoundsIn(vs ...int) predicate.Match

MaxRoundsIn applies the In predicate on the "max_rounds" field.

func MaxRoundsLT

func MaxRoundsLT(v int) predicate.Match

MaxRoundsLT applies the LT predicate on the "max_rounds" field.

func MaxRoundsLTE

func MaxRoundsLTE(v int) predicate.Match

MaxRoundsLTE applies the LTE predicate on the "max_rounds" field.

func MaxRoundsNEQ

func MaxRoundsNEQ(v int) predicate.Match

MaxRoundsNEQ applies the NEQ predicate on the "max_rounds" field.

func MaxRoundsNotIn

func MaxRoundsNotIn(vs ...int) predicate.Match

MaxRoundsNotIn applies the NotIn predicate on the "max_rounds" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Match) predicate.Match

Or groups predicates with the OR operator between them.

func ReplayURL

func ReplayURL(v string) predicate.Match

ReplayURL applies equality check predicate on the "replay_url" field. It's identical to ReplayURLEQ.

func ReplayURLContains

func ReplayURLContains(v string) predicate.Match

ReplayURLContains applies the Contains predicate on the "replay_url" field.

func ReplayURLContainsFold

func ReplayURLContainsFold(v string) predicate.Match

ReplayURLContainsFold applies the ContainsFold predicate on the "replay_url" field.

func ReplayURLEQ

func ReplayURLEQ(v string) predicate.Match

ReplayURLEQ applies the EQ predicate on the "replay_url" field.

func ReplayURLEqualFold

func ReplayURLEqualFold(v string) predicate.Match

ReplayURLEqualFold applies the EqualFold predicate on the "replay_url" field.

func ReplayURLGT

func ReplayURLGT(v string) predicate.Match

ReplayURLGT applies the GT predicate on the "replay_url" field.

func ReplayURLGTE

func ReplayURLGTE(v string) predicate.Match

ReplayURLGTE applies the GTE predicate on the "replay_url" field.

func ReplayURLHasPrefix

func ReplayURLHasPrefix(v string) predicate.Match

ReplayURLHasPrefix applies the HasPrefix predicate on the "replay_url" field.

func ReplayURLHasSuffix

func ReplayURLHasSuffix(v string) predicate.Match

ReplayURLHasSuffix applies the HasSuffix predicate on the "replay_url" field.

func ReplayURLIn

func ReplayURLIn(vs ...string) predicate.Match

ReplayURLIn applies the In predicate on the "replay_url" field.

func ReplayURLIsNil

func ReplayURLIsNil() predicate.Match

ReplayURLIsNil applies the IsNil predicate on the "replay_url" field.

func ReplayURLLT

func ReplayURLLT(v string) predicate.Match

ReplayURLLT applies the LT predicate on the "replay_url" field.

func ReplayURLLTE

func ReplayURLLTE(v string) predicate.Match

ReplayURLLTE applies the LTE predicate on the "replay_url" field.

func ReplayURLNEQ

func ReplayURLNEQ(v string) predicate.Match

ReplayURLNEQ applies the NEQ predicate on the "replay_url" field.

func ReplayURLNotIn

func ReplayURLNotIn(vs ...string) predicate.Match

ReplayURLNotIn applies the NotIn predicate on the "replay_url" field.

func ReplayURLNotNil

func ReplayURLNotNil() predicate.Match

ReplayURLNotNil applies the NotNil predicate on the "replay_url" field.

func ScoreTeamA

func ScoreTeamA(v int) predicate.Match

ScoreTeamA applies equality check predicate on the "score_team_a" field. It's identical to ScoreTeamAEQ.

func ScoreTeamAEQ

func ScoreTeamAEQ(v int) predicate.Match

ScoreTeamAEQ applies the EQ predicate on the "score_team_a" field.

func ScoreTeamAGT

func ScoreTeamAGT(v int) predicate.Match

ScoreTeamAGT applies the GT predicate on the "score_team_a" field.

func ScoreTeamAGTE

func ScoreTeamAGTE(v int) predicate.Match

ScoreTeamAGTE applies the GTE predicate on the "score_team_a" field.

func ScoreTeamAIn

func ScoreTeamAIn(vs ...int) predicate.Match

ScoreTeamAIn applies the In predicate on the "score_team_a" field.

func ScoreTeamALT

func ScoreTeamALT(v int) predicate.Match

ScoreTeamALT applies the LT predicate on the "score_team_a" field.

func ScoreTeamALTE

func ScoreTeamALTE(v int) predicate.Match

ScoreTeamALTE applies the LTE predicate on the "score_team_a" field.

func ScoreTeamANEQ

func ScoreTeamANEQ(v int) predicate.Match

ScoreTeamANEQ applies the NEQ predicate on the "score_team_a" field.

func ScoreTeamANotIn

func ScoreTeamANotIn(vs ...int) predicate.Match

ScoreTeamANotIn applies the NotIn predicate on the "score_team_a" field.

func ScoreTeamB

func ScoreTeamB(v int) predicate.Match

ScoreTeamB applies equality check predicate on the "score_team_b" field. It's identical to ScoreTeamBEQ.

func ScoreTeamBEQ

func ScoreTeamBEQ(v int) predicate.Match

ScoreTeamBEQ applies the EQ predicate on the "score_team_b" field.

func ScoreTeamBGT

func ScoreTeamBGT(v int) predicate.Match

ScoreTeamBGT applies the GT predicate on the "score_team_b" field.

func ScoreTeamBGTE

func ScoreTeamBGTE(v int) predicate.Match

ScoreTeamBGTE applies the GTE predicate on the "score_team_b" field.

func ScoreTeamBIn

func ScoreTeamBIn(vs ...int) predicate.Match

ScoreTeamBIn applies the In predicate on the "score_team_b" field.

func ScoreTeamBLT

func ScoreTeamBLT(v int) predicate.Match

ScoreTeamBLT applies the LT predicate on the "score_team_b" field.

func ScoreTeamBLTE

func ScoreTeamBLTE(v int) predicate.Match

ScoreTeamBLTE applies the LTE predicate on the "score_team_b" field.

func ScoreTeamBNEQ

func ScoreTeamBNEQ(v int) predicate.Match

ScoreTeamBNEQ applies the NEQ predicate on the "score_team_b" field.

func ScoreTeamBNotIn

func ScoreTeamBNotIn(vs ...int) predicate.Match

ScoreTeamBNotIn applies the NotIn predicate on the "score_team_b" field.

func ShareCode

func ShareCode(v string) predicate.Match

ShareCode applies equality check predicate on the "share_code" field. It's identical to ShareCodeEQ.

func ShareCodeContains

func ShareCodeContains(v string) predicate.Match

ShareCodeContains applies the Contains predicate on the "share_code" field.

func ShareCodeContainsFold

func ShareCodeContainsFold(v string) predicate.Match

ShareCodeContainsFold applies the ContainsFold predicate on the "share_code" field.

func ShareCodeEQ

func ShareCodeEQ(v string) predicate.Match

ShareCodeEQ applies the EQ predicate on the "share_code" field.

func ShareCodeEqualFold

func ShareCodeEqualFold(v string) predicate.Match

ShareCodeEqualFold applies the EqualFold predicate on the "share_code" field.

func ShareCodeGT

func ShareCodeGT(v string) predicate.Match

ShareCodeGT applies the GT predicate on the "share_code" field.

func ShareCodeGTE

func ShareCodeGTE(v string) predicate.Match

ShareCodeGTE applies the GTE predicate on the "share_code" field.

func ShareCodeHasPrefix

func ShareCodeHasPrefix(v string) predicate.Match

ShareCodeHasPrefix applies the HasPrefix predicate on the "share_code" field.

func ShareCodeHasSuffix

func ShareCodeHasSuffix(v string) predicate.Match

ShareCodeHasSuffix applies the HasSuffix predicate on the "share_code" field.

func ShareCodeIn

func ShareCodeIn(vs ...string) predicate.Match

ShareCodeIn applies the In predicate on the "share_code" field.

func ShareCodeLT

func ShareCodeLT(v string) predicate.Match

ShareCodeLT applies the LT predicate on the "share_code" field.

func ShareCodeLTE

func ShareCodeLTE(v string) predicate.Match

ShareCodeLTE applies the LTE predicate on the "share_code" field.

func ShareCodeNEQ

func ShareCodeNEQ(v string) predicate.Match

ShareCodeNEQ applies the NEQ predicate on the "share_code" field.

func ShareCodeNotIn

func ShareCodeNotIn(vs ...string) predicate.Match

ShareCodeNotIn applies the NotIn predicate on the "share_code" field.

func TickRate

func TickRate(v float64) predicate.Match

TickRate applies equality check predicate on the "tick_rate" field. It's identical to TickRateEQ.

func TickRateEQ

func TickRateEQ(v float64) predicate.Match

TickRateEQ applies the EQ predicate on the "tick_rate" field.

func TickRateGT

func TickRateGT(v float64) predicate.Match

TickRateGT applies the GT predicate on the "tick_rate" field.

func TickRateGTE

func TickRateGTE(v float64) predicate.Match

TickRateGTE applies the GTE predicate on the "tick_rate" field.

func TickRateIn

func TickRateIn(vs ...float64) predicate.Match

TickRateIn applies the In predicate on the "tick_rate" field.

func TickRateIsNil

func TickRateIsNil() predicate.Match

TickRateIsNil applies the IsNil predicate on the "tick_rate" field.

func TickRateLT

func TickRateLT(v float64) predicate.Match

TickRateLT applies the LT predicate on the "tick_rate" field.

func TickRateLTE

func TickRateLTE(v float64) predicate.Match

TickRateLTE applies the LTE predicate on the "tick_rate" field.

func TickRateNEQ

func TickRateNEQ(v float64) predicate.Match

TickRateNEQ applies the NEQ predicate on the "tick_rate" field.

func TickRateNotIn

func TickRateNotIn(vs ...float64) predicate.Match

TickRateNotIn applies the NotIn predicate on the "tick_rate" field.

func TickRateNotNil

func TickRateNotNil() predicate.Match

TickRateNotNil applies the NotNil predicate on the "tick_rate" field.

func VacPresent

func VacPresent(v bool) predicate.Match

VacPresent applies equality check predicate on the "vac_present" field. It's identical to VacPresentEQ.

func VacPresentEQ

func VacPresentEQ(v bool) predicate.Match

VacPresentEQ applies the EQ predicate on the "vac_present" field.

func VacPresentNEQ

func VacPresentNEQ(v bool) predicate.Match

VacPresentNEQ applies the NEQ predicate on the "vac_present" field.

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