Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Player) predicate.Player
- func Gcid(v string) predicate.Player
- func GcidContains(v string) predicate.Player
- func GcidContainsFold(v string) predicate.Player
- func GcidEQ(v string) predicate.Player
- func GcidEqualFold(v string) predicate.Player
- func GcidGT(v string) predicate.Player
- func GcidGTE(v string) predicate.Player
- func GcidHasPrefix(v string) predicate.Player
- func GcidHasSuffix(v string) predicate.Player
- func GcidIn(vs ...string) predicate.Player
- func GcidLT(v string) predicate.Player
- func GcidLTE(v string) predicate.Player
- func GcidNEQ(v string) predicate.Player
- func GcidNotIn(vs ...string) predicate.Player
- func HasRoles() predicate.Player
- func HasRolesWith(preds ...predicate.PlayerRole) predicate.Player
- func ID(id int) predicate.Player
- func IDEQ(id int) predicate.Player
- func IDGT(id int) predicate.Player
- func IDGTE(id int) predicate.Player
- func IDIn(ids ...int) predicate.Player
- func IDLT(id int) predicate.Player
- func IDLTE(id int) predicate.Player
- func IDNEQ(id int) predicate.Player
- func IDNotIn(ids ...int) predicate.Player
- func Name(v string) predicate.Player
- func NameContains(v string) predicate.Player
- func NameContainsFold(v string) predicate.Player
- func NameEQ(v string) predicate.Player
- func NameEqualFold(v string) predicate.Player
- func NameGT(v string) predicate.Player
- func NameGTE(v string) predicate.Player
- func NameHasPrefix(v string) predicate.Player
- func NameHasSuffix(v string) predicate.Player
- func NameIn(vs ...string) predicate.Player
- func NameLT(v string) predicate.Player
- func NameLTE(v string) predicate.Player
- func NameNEQ(v string) predicate.Player
- func NameNotIn(vs ...string) predicate.Player
- func Not(p predicate.Player) predicate.Player
- func Or(predicates ...predicate.Player) predicate.Player
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the player type in the database. Label = "player" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGcid holds the string denoting the gcid field in the database. FieldGcid = "gcid" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // Table holds the table name of the player in the database. Table = "players" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "player_role_players" // RolesInverseTable is the table name for the PlayerRole entity. // It exists in this package in order to avoid circular dependency with the "playerrole" package. RolesInverseTable = "player_roles" )
Variables ¶
var Columns = []string{ FieldID, FieldGcid, FieldName, }
Columns holds all SQL columns for player fields.
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"role_player", "id"} )
Functions ¶
func GcidContains ¶
GcidContains applies the Contains predicate on the "gcid" field.
func GcidContainsFold ¶
GcidContainsFold applies the ContainsFold predicate on the "gcid" field.
func GcidEqualFold ¶
GcidEqualFold applies the EqualFold predicate on the "gcid" field.
func GcidHasPrefix ¶
GcidHasPrefix applies the HasPrefix predicate on the "gcid" field.
func GcidHasSuffix ¶
GcidHasSuffix applies the HasSuffix predicate on the "gcid" field.
func HasRolesWith ¶
func HasRolesWith(preds ...predicate.PlayerRole) predicate.Player
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 Player queries.
func ByGcid ¶
func ByGcid(opts ...sql.OrderTermOption) OrderOption
ByGcid orders the results by the gcid field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRoles ¶
func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRoles orders the results by roles terms.
func ByRolesCount ¶
func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
ByRolesCount orders the results by roles count.