Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PlayerRole) predicate.PlayerRole
- func HasMatch() predicate.PlayerRole
- func HasMatchWith(preds ...predicate.Match) predicate.PlayerRole
- func HasPlayers() predicate.PlayerRole
- func HasPlayersWith(preds ...predicate.Player) predicate.PlayerRole
- func ID(id int) predicate.PlayerRole
- func IDEQ(id int) predicate.PlayerRole
- func IDGT(id int) predicate.PlayerRole
- func IDGTE(id int) predicate.PlayerRole
- func IDIn(ids ...int) predicate.PlayerRole
- func IDLT(id int) predicate.PlayerRole
- func IDLTE(id int) predicate.PlayerRole
- func IDNEQ(id int) predicate.PlayerRole
- func IDNotIn(ids ...int) predicate.PlayerRole
- func MatchID(v int) predicate.PlayerRole
- func MatchIDEQ(v int) predicate.PlayerRole
- func MatchIDGT(v int) predicate.PlayerRole
- func MatchIDGTE(v int) predicate.PlayerRole
- func MatchIDIn(vs ...int) predicate.PlayerRole
- func MatchIDLT(v int) predicate.PlayerRole
- func MatchIDLTE(v int) predicate.PlayerRole
- func MatchIDNEQ(v int) predicate.PlayerRole
- func MatchIDNotIn(vs ...int) predicate.PlayerRole
- func Not(p predicate.PlayerRole) predicate.PlayerRole
- func Or(predicates ...predicate.PlayerRole) predicate.PlayerRole
- func PlayerID(v int) predicate.PlayerRole
- func PlayerIDEQ(v int) predicate.PlayerRole
- func PlayerIDGT(v int) predicate.PlayerRole
- func PlayerIDGTE(v int) predicate.PlayerRole
- func PlayerIDIn(vs ...int) predicate.PlayerRole
- func PlayerIDLT(v int) predicate.PlayerRole
- func PlayerIDLTE(v int) predicate.PlayerRole
- func PlayerIDNEQ(v int) predicate.PlayerRole
- func PlayerIDNotIn(vs ...int) predicate.PlayerRole
- func Position(v int) predicate.PlayerRole
- func PositionEQ(v int) predicate.PlayerRole
- func PositionGT(v int) predicate.PlayerRole
- func PositionGTE(v int) predicate.PlayerRole
- func PositionIn(vs ...int) predicate.PlayerRole
- func PositionLT(v int) predicate.PlayerRole
- func PositionLTE(v int) predicate.PlayerRole
- func PositionNEQ(v int) predicate.PlayerRole
- func PositionNotIn(vs ...int) predicate.PlayerRole
- func TurnOrder(v int) predicate.PlayerRole
- func TurnOrderEQ(v int) predicate.PlayerRole
- func TurnOrderGT(v int) predicate.PlayerRole
- func TurnOrderGTE(v int) predicate.PlayerRole
- func TurnOrderIn(vs ...int) predicate.PlayerRole
- func TurnOrderLT(v int) predicate.PlayerRole
- func TurnOrderLTE(v int) predicate.PlayerRole
- func TurnOrderNEQ(v int) predicate.PlayerRole
- func TurnOrderNotIn(vs ...int) predicate.PlayerRole
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMatch(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMatchCount(opts ...sql.OrderTermOption) OrderOption
- func ByMatchID(opts ...sql.OrderTermOption) OrderOption
- func ByPlayerID(opts ...sql.OrderTermOption) OrderOption
- func ByPlayers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPlayersCount(opts ...sql.OrderTermOption) OrderOption
- func ByPosition(opts ...sql.OrderTermOption) OrderOption
- func ByTurnOrder(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the playerrole type in the database. Label = "player_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldMatchID holds the string denoting the match_id field in the database. FieldMatchID = "role_match" // FieldPlayerID holds the string denoting the player_id field in the database. FieldPlayerID = "role_player" // FieldPosition holds the string denoting the position field in the database. FieldPosition = "position" // FieldTurnOrder holds the string denoting the turn_order field in the database. FieldTurnOrder = "turn_order" // EdgeMatch holds the string denoting the match edge name in mutations. EdgeMatch = "match" // EdgePlayers holds the string denoting the players edge name in mutations. EdgePlayers = "players" // Table holds the table name of the playerrole in the database. Table = "player_roles" // MatchTable is the table that holds the match relation/edge. The primary key declared below. MatchTable = "player_role_match" // MatchInverseTable is the table name for the Match entity. // It exists in this package in order to avoid circular dependency with the "match" package. MatchInverseTable = "matches" // PlayersTable is the table that holds the players relation/edge. The primary key declared below. PlayersTable = "player_role_players" // 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 ¶
var ( // MatchPrimaryKey and MatchColumn2 are the table columns denoting the // primary key for the match relation (M2M). MatchPrimaryKey = []string{"role_match", "id"} // PlayersPrimaryKey and PlayersColumn2 are the table columns denoting the // primary key for the players relation (M2M). PlayersPrimaryKey = []string{"role_player", "id"} )
var ( // PositionValidator is a validator for the "position" field. It is called by the builders before save. PositionValidator func(int) error // TurnOrderValidator is a validator for the "turn_order" field. It is called by the builders before save. TurnOrderValidator func(int) error )
var Columns = []string{ FieldID, FieldMatchID, FieldPlayerID, FieldPosition, FieldTurnOrder, }
Columns holds all SQL columns for playerrole fields.
Functions ¶
func And ¶
func And(predicates ...predicate.PlayerRole) predicate.PlayerRole
And groups predicates with the AND operator between them.
func HasMatch ¶
func HasMatch() predicate.PlayerRole
HasMatch applies the HasEdge predicate on the "match" edge.
func HasMatchWith ¶
func HasMatchWith(preds ...predicate.Match) predicate.PlayerRole
HasMatchWith applies the HasEdge predicate on the "match" edge with a given conditions (other predicates).
func HasPlayers ¶
func HasPlayers() predicate.PlayerRole
HasPlayers applies the HasEdge predicate on the "players" edge.
func HasPlayersWith ¶
func HasPlayersWith(preds ...predicate.Player) predicate.PlayerRole
HasPlayersWith applies the HasEdge predicate on the "players" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.PlayerRole
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PlayerRole
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PlayerRole
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PlayerRole
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PlayerRole
IDNotIn applies the NotIn predicate on the ID field.
func MatchID ¶
func MatchID(v int) predicate.PlayerRole
MatchID applies equality check predicate on the "match_id" field. It's identical to MatchIDEQ.
func MatchIDEQ ¶
func MatchIDEQ(v int) predicate.PlayerRole
MatchIDEQ applies the EQ predicate on the "match_id" field.
func MatchIDGT ¶
func MatchIDGT(v int) predicate.PlayerRole
MatchIDGT applies the GT predicate on the "match_id" field.
func MatchIDGTE ¶
func MatchIDGTE(v int) predicate.PlayerRole
MatchIDGTE applies the GTE predicate on the "match_id" field.
func MatchIDIn ¶
func MatchIDIn(vs ...int) predicate.PlayerRole
MatchIDIn applies the In predicate on the "match_id" field.
func MatchIDLT ¶
func MatchIDLT(v int) predicate.PlayerRole
MatchIDLT applies the LT predicate on the "match_id" field.
func MatchIDLTE ¶
func MatchIDLTE(v int) predicate.PlayerRole
MatchIDLTE applies the LTE predicate on the "match_id" field.
func MatchIDNEQ ¶
func MatchIDNEQ(v int) predicate.PlayerRole
MatchIDNEQ applies the NEQ predicate on the "match_id" field.
func MatchIDNotIn ¶
func MatchIDNotIn(vs ...int) predicate.PlayerRole
MatchIDNotIn applies the NotIn predicate on the "match_id" field.
func Not ¶
func Not(p predicate.PlayerRole) predicate.PlayerRole
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PlayerRole) predicate.PlayerRole
Or groups predicates with the OR operator between them.
func PlayerID ¶
func PlayerID(v int) predicate.PlayerRole
PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.
func PlayerIDEQ ¶
func PlayerIDEQ(v int) predicate.PlayerRole
PlayerIDEQ applies the EQ predicate on the "player_id" field.
func PlayerIDGT ¶
func PlayerIDGT(v int) predicate.PlayerRole
PlayerIDGT applies the GT predicate on the "player_id" field.
func PlayerIDGTE ¶
func PlayerIDGTE(v int) predicate.PlayerRole
PlayerIDGTE applies the GTE predicate on the "player_id" field.
func PlayerIDIn ¶
func PlayerIDIn(vs ...int) predicate.PlayerRole
PlayerIDIn applies the In predicate on the "player_id" field.
func PlayerIDLT ¶
func PlayerIDLT(v int) predicate.PlayerRole
PlayerIDLT applies the LT predicate on the "player_id" field.
func PlayerIDLTE ¶
func PlayerIDLTE(v int) predicate.PlayerRole
PlayerIDLTE applies the LTE predicate on the "player_id" field.
func PlayerIDNEQ ¶
func PlayerIDNEQ(v int) predicate.PlayerRole
PlayerIDNEQ applies the NEQ predicate on the "player_id" field.
func PlayerIDNotIn ¶
func PlayerIDNotIn(vs ...int) predicate.PlayerRole
PlayerIDNotIn applies the NotIn predicate on the "player_id" field.
func Position ¶
func Position(v int) predicate.PlayerRole
Position applies equality check predicate on the "position" field. It's identical to PositionEQ.
func PositionEQ ¶
func PositionEQ(v int) predicate.PlayerRole
PositionEQ applies the EQ predicate on the "position" field.
func PositionGT ¶
func PositionGT(v int) predicate.PlayerRole
PositionGT applies the GT predicate on the "position" field.
func PositionGTE ¶
func PositionGTE(v int) predicate.PlayerRole
PositionGTE applies the GTE predicate on the "position" field.
func PositionIn ¶
func PositionIn(vs ...int) predicate.PlayerRole
PositionIn applies the In predicate on the "position" field.
func PositionLT ¶
func PositionLT(v int) predicate.PlayerRole
PositionLT applies the LT predicate on the "position" field.
func PositionLTE ¶
func PositionLTE(v int) predicate.PlayerRole
PositionLTE applies the LTE predicate on the "position" field.
func PositionNEQ ¶
func PositionNEQ(v int) predicate.PlayerRole
PositionNEQ applies the NEQ predicate on the "position" field.
func PositionNotIn ¶
func PositionNotIn(vs ...int) predicate.PlayerRole
PositionNotIn applies the NotIn predicate on the "position" field.
func TurnOrder ¶
func TurnOrder(v int) predicate.PlayerRole
TurnOrder applies equality check predicate on the "turn_order" field. It's identical to TurnOrderEQ.
func TurnOrderEQ ¶
func TurnOrderEQ(v int) predicate.PlayerRole
TurnOrderEQ applies the EQ predicate on the "turn_order" field.
func TurnOrderGT ¶
func TurnOrderGT(v int) predicate.PlayerRole
TurnOrderGT applies the GT predicate on the "turn_order" field.
func TurnOrderGTE ¶
func TurnOrderGTE(v int) predicate.PlayerRole
TurnOrderGTE applies the GTE predicate on the "turn_order" field.
func TurnOrderIn ¶
func TurnOrderIn(vs ...int) predicate.PlayerRole
TurnOrderIn applies the In predicate on the "turn_order" field.
func TurnOrderLT ¶
func TurnOrderLT(v int) predicate.PlayerRole
TurnOrderLT applies the LT predicate on the "turn_order" field.
func TurnOrderLTE ¶
func TurnOrderLTE(v int) predicate.PlayerRole
TurnOrderLTE applies the LTE predicate on the "turn_order" field.
func TurnOrderNEQ ¶
func TurnOrderNEQ(v int) predicate.PlayerRole
TurnOrderNEQ applies the NEQ predicate on the "turn_order" field.
func TurnOrderNotIn ¶
func TurnOrderNotIn(vs ...int) predicate.PlayerRole
TurnOrderNotIn applies the NotIn predicate on the "turn_order" 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 PlayerRole queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMatch ¶
func ByMatch(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMatch orders the results by match terms.
func ByMatchCount ¶
func ByMatchCount(opts ...sql.OrderTermOption) OrderOption
ByMatchCount orders the results by match count.
func ByMatchID ¶
func ByMatchID(opts ...sql.OrderTermOption) OrderOption
ByMatchID orders the results by the match_id field.
func ByPlayerID ¶
func ByPlayerID(opts ...sql.OrderTermOption) OrderOption
ByPlayerID orders the results by the player_id field.
func ByPlayers ¶
func ByPlayers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPlayers orders the results by players terms.
func ByPlayersCount ¶
func ByPlayersCount(opts ...sql.OrderTermOption) OrderOption
ByPlayersCount orders the results by players count.
func ByPosition ¶
func ByPosition(opts ...sql.OrderTermOption) OrderOption
ByPosition orders the results by the position field.
func ByTurnOrder ¶
func ByTurnOrder(opts ...sql.OrderTermOption) OrderOption
ByTurnOrder orders the results by the turn_order field.