Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Player) predicate.Player
- func CreatedAt(v time.Time) predicate.Player
- func CreatedAtEQ(v time.Time) predicate.Player
- func CreatedAtGT(v time.Time) predicate.Player
- func CreatedAtGTE(v time.Time) predicate.Player
- func CreatedAtIn(vs ...time.Time) predicate.Player
- func CreatedAtLT(v time.Time) predicate.Player
- func CreatedAtLTE(v time.Time) predicate.Player
- func CreatedAtNEQ(v time.Time) predicate.Player
- func CreatedAtNotIn(vs ...time.Time) predicate.Player
- func HasIdentifiers() predicate.Player
- func HasIdentifiersWith(preds ...predicate.PlayerIdentifier) predicate.Player
- func HasMetadata() predicate.Player
- func HasMetadataWith(preds ...predicate.Metadata) predicate.Player
- func HasServers() predicate.Player
- func HasServersWith(preds ...predicate.Server) predicate.Player
- func HasUser() predicate.Player
- func HasUserWith(preds ...predicate.User) 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 LastSeenAt(v time.Time) predicate.Player
- func LastSeenAtEQ(v time.Time) predicate.Player
- func LastSeenAtGT(v time.Time) predicate.Player
- func LastSeenAtGTE(v time.Time) predicate.Player
- func LastSeenAtIn(vs ...time.Time) predicate.Player
- func LastSeenAtIsNil() predicate.Player
- func LastSeenAtLT(v time.Time) predicate.Player
- func LastSeenAtLTE(v time.Time) predicate.Player
- func LastSeenAtNEQ(v time.Time) predicate.Player
- func LastSeenAtNotIn(vs ...time.Time) predicate.Player
- func LastSeenAtNotNil() 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 SessionEndedAt(v time.Time) predicate.Player
- func SessionEndedAtEQ(v time.Time) predicate.Player
- func SessionEndedAtGT(v time.Time) predicate.Player
- func SessionEndedAtGTE(v time.Time) predicate.Player
- func SessionEndedAtIn(vs ...time.Time) predicate.Player
- func SessionEndedAtIsNil() predicate.Player
- func SessionEndedAtLT(v time.Time) predicate.Player
- func SessionEndedAtLTE(v time.Time) predicate.Player
- func SessionEndedAtNEQ(v time.Time) predicate.Player
- func SessionEndedAtNotIn(vs ...time.Time) predicate.Player
- func SessionEndedAtNotNil() predicate.Player
- func SessionStartedAt(v time.Time) predicate.Player
- func SessionStartedAtEQ(v time.Time) predicate.Player
- func SessionStartedAtGT(v time.Time) predicate.Player
- func SessionStartedAtGTE(v time.Time) predicate.Player
- func SessionStartedAtIn(vs ...time.Time) predicate.Player
- func SessionStartedAtIsNil() predicate.Player
- func SessionStartedAtLT(v time.Time) predicate.Player
- func SessionStartedAtLTE(v time.Time) predicate.Player
- func SessionStartedAtNEQ(v time.Time) predicate.Player
- func SessionStartedAtNotIn(vs ...time.Time) predicate.Player
- func SessionStartedAtNotNil() predicate.Player
- func TotalMinutes(v int) predicate.Player
- func TotalMinutesEQ(v int) predicate.Player
- func TotalMinutesGT(v int) predicate.Player
- func TotalMinutesGTE(v int) predicate.Player
- func TotalMinutesIn(vs ...int) predicate.Player
- func TotalMinutesLT(v int) predicate.Player
- func TotalMinutesLTE(v int) predicate.Player
- func TotalMinutesNEQ(v int) predicate.Player
- func TotalMinutesNotIn(vs ...int) predicate.Player
- func UpdatedAt(v time.Time) predicate.Player
- func UpdatedAtEQ(v time.Time) predicate.Player
- func UpdatedAtGT(v time.Time) predicate.Player
- func UpdatedAtGTE(v time.Time) predicate.Player
- func UpdatedAtIn(vs ...time.Time) predicate.Player
- func UpdatedAtLT(v time.Time) predicate.Player
- func UpdatedAtLTE(v time.Time) predicate.Player
- func UpdatedAtNEQ(v time.Time) predicate.Player
- func UpdatedAtNotIn(vs ...time.Time) predicate.Player
- func ValidColumn(column string) bool
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldTotalMinutes holds the string denoting the total_minutes field in the database. FieldTotalMinutes = "total_minutes" // FieldSessionStartedAt holds the string denoting the session_started_at field in the database. FieldSessionStartedAt = "session_started_at" // FieldSessionEndedAt holds the string denoting the session_ended_at field in the database. FieldSessionEndedAt = "session_ended_at" // FieldLastSeenAt holds the string denoting the last_seen_at field in the database. FieldLastSeenAt = "last_seen_at" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // EdgeServers holds the string denoting the servers edge name in mutations. EdgeServers = "servers" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeIdentifiers holds the string denoting the identifiers edge name in mutations. EdgeIdentifiers = "identifiers" // Table holds the table name of the player in the database. Table = "players" // MetadataTable is the table the holds the metadata relation/edge. MetadataTable = "players" // MetadataInverseTable is the table name for the Metadata entity. // It exists in this package in order to avoid circular dependency with the "metadata" package. MetadataInverseTable = "metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "player_metadata" // ServersTable is the table the holds the servers relation/edge. The primary key declared below. ServersTable = "player_servers" // ServersInverseTable is the table name for the Server entity. // It exists in this package in order to avoid circular dependency with the "server" package. ServersInverseTable = "servers" // UserTable is the table the holds the user relation/edge. UserTable = "players" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "player_user" // IdentifiersTable is the table the holds the identifiers relation/edge. IdentifiersTable = "player_identifiers" // IdentifiersInverseTable is the table name for the PlayerIdentifier entity. // It exists in this package in order to avoid circular dependency with the "playeridentifier" package. IdentifiersInverseTable = "player_identifiers" // IdentifiersColumn is the table column denoting the identifiers relation/edge. IdentifiersColumn = "player_identifier_player" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // DefaultTotalMinutes holds the default value on creation for the total_minutes field. DefaultTotalMinutes int )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldTotalMinutes, FieldSessionStartedAt, FieldSessionEndedAt, FieldLastSeenAt, }
Columns holds all SQL columns for player fields.
var ForeignKeys = []string{
"player_metadata",
"player_user",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Player type.
var ( // ServersPrimaryKey and ServersColumn2 are the table columns denoting the // primary key for the servers relation (M2M). ServersPrimaryKey = []string{"player_id", "server_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasIdentifiers ¶
HasIdentifiers applies the HasEdge predicate on the "identifiers" edge.
func HasIdentifiersWith ¶
func HasIdentifiersWith(preds ...predicate.PlayerIdentifier) predicate.Player
HasIdentifiersWith applies the HasEdge predicate on the "identifiers" edge with a given conditions (other predicates).
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasServers ¶
HasServers applies the HasEdge predicate on the "servers" edge.
func HasServersWith ¶
HasServersWith applies the HasEdge predicate on the "servers" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LastSeenAt ¶
LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.
func LastSeenAtEQ ¶
LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.
func LastSeenAtGT ¶
LastSeenAtGT applies the GT predicate on the "last_seen_at" field.
func LastSeenAtGTE ¶
LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.
func LastSeenAtIn ¶
LastSeenAtIn applies the In predicate on the "last_seen_at" field.
func LastSeenAtIsNil ¶
LastSeenAtIsNil applies the IsNil predicate on the "last_seen_at" field.
func LastSeenAtLT ¶
LastSeenAtLT applies the LT predicate on the "last_seen_at" field.
func LastSeenAtLTE ¶
LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.
func LastSeenAtNEQ ¶
LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.
func LastSeenAtNotIn ¶
LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.
func LastSeenAtNotNil ¶
LastSeenAtNotNil applies the NotNil predicate on the "last_seen_at" field.
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 SessionEndedAt ¶
SessionEndedAt applies equality check predicate on the "session_ended_at" field. It's identical to SessionEndedAtEQ.
func SessionEndedAtEQ ¶
SessionEndedAtEQ applies the EQ predicate on the "session_ended_at" field.
func SessionEndedAtGT ¶
SessionEndedAtGT applies the GT predicate on the "session_ended_at" field.
func SessionEndedAtGTE ¶
SessionEndedAtGTE applies the GTE predicate on the "session_ended_at" field.
func SessionEndedAtIn ¶
SessionEndedAtIn applies the In predicate on the "session_ended_at" field.
func SessionEndedAtIsNil ¶
SessionEndedAtIsNil applies the IsNil predicate on the "session_ended_at" field.
func SessionEndedAtLT ¶
SessionEndedAtLT applies the LT predicate on the "session_ended_at" field.
func SessionEndedAtLTE ¶
SessionEndedAtLTE applies the LTE predicate on the "session_ended_at" field.
func SessionEndedAtNEQ ¶
SessionEndedAtNEQ applies the NEQ predicate on the "session_ended_at" field.
func SessionEndedAtNotIn ¶
SessionEndedAtNotIn applies the NotIn predicate on the "session_ended_at" field.
func SessionEndedAtNotNil ¶
SessionEndedAtNotNil applies the NotNil predicate on the "session_ended_at" field.
func SessionStartedAt ¶
SessionStartedAt applies equality check predicate on the "session_started_at" field. It's identical to SessionStartedAtEQ.
func SessionStartedAtEQ ¶
SessionStartedAtEQ applies the EQ predicate on the "session_started_at" field.
func SessionStartedAtGT ¶
SessionStartedAtGT applies the GT predicate on the "session_started_at" field.
func SessionStartedAtGTE ¶
SessionStartedAtGTE applies the GTE predicate on the "session_started_at" field.
func SessionStartedAtIn ¶
SessionStartedAtIn applies the In predicate on the "session_started_at" field.
func SessionStartedAtIsNil ¶
SessionStartedAtIsNil applies the IsNil predicate on the "session_started_at" field.
func SessionStartedAtLT ¶
SessionStartedAtLT applies the LT predicate on the "session_started_at" field.
func SessionStartedAtLTE ¶
SessionStartedAtLTE applies the LTE predicate on the "session_started_at" field.
func SessionStartedAtNEQ ¶
SessionStartedAtNEQ applies the NEQ predicate on the "session_started_at" field.
func SessionStartedAtNotIn ¶
SessionStartedAtNotIn applies the NotIn predicate on the "session_started_at" field.
func SessionStartedAtNotNil ¶
SessionStartedAtNotNil applies the NotNil predicate on the "session_started_at" field.
func TotalMinutes ¶
TotalMinutes applies equality check predicate on the "total_minutes" field. It's identical to TotalMinutesEQ.
func TotalMinutesEQ ¶
TotalMinutesEQ applies the EQ predicate on the "total_minutes" field.
func TotalMinutesGT ¶
TotalMinutesGT applies the GT predicate on the "total_minutes" field.
func TotalMinutesGTE ¶
TotalMinutesGTE applies the GTE predicate on the "total_minutes" field.
func TotalMinutesIn ¶
TotalMinutesIn applies the In predicate on the "total_minutes" field.
func TotalMinutesLT ¶
TotalMinutesLT applies the LT predicate on the "total_minutes" field.
func TotalMinutesLTE ¶
TotalMinutesLTE applies the LTE predicate on the "total_minutes" field.
func TotalMinutesNEQ ¶
TotalMinutesNEQ applies the NEQ predicate on the "total_minutes" field.
func TotalMinutesNotIn ¶
TotalMinutesNotIn applies the NotIn predicate on the "total_minutes" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.