Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Game) predicate.Game
- func CreatedAt(v time.Time) predicate.Game
- func CreatedAtEQ(v time.Time) predicate.Game
- func CreatedAtGT(v time.Time) predicate.Game
- func CreatedAtGTE(v time.Time) predicate.Game
- func CreatedAtIn(vs ...time.Time) predicate.Game
- func CreatedAtLT(v time.Time) predicate.Game
- func CreatedAtLTE(v time.Time) predicate.Game
- func CreatedAtNEQ(v time.Time) predicate.Game
- func CreatedAtNotIn(vs ...time.Time) predicate.Game
- func DeletedAt(v time.Time) predicate.Game
- func DeletedAtEQ(v time.Time) predicate.Game
- func DeletedAtGT(v time.Time) predicate.Game
- func DeletedAtGTE(v time.Time) predicate.Game
- func DeletedAtIn(vs ...time.Time) predicate.Game
- func DeletedAtIsNil() predicate.Game
- func DeletedAtLT(v time.Time) predicate.Game
- func DeletedAtLTE(v time.Time) predicate.Game
- func DeletedAtNEQ(v time.Time) predicate.Game
- func DeletedAtNotIn(vs ...time.Time) predicate.Game
- func DeletedAtNotNil() predicate.Game
- func HasGameCategory() predicate.Game
- func HasGameCategoryWith(preds ...predicate.Category) predicate.Game
- func ID(id int) predicate.Game
- func IDEQ(id int) predicate.Game
- func IDGT(id int) predicate.Game
- func IDGTE(id int) predicate.Game
- func IDIn(ids ...int) predicate.Game
- func IDLT(id int) predicate.Game
- func IDLTE(id int) predicate.Game
- func IDNEQ(id int) predicate.Game
- func IDNotIn(ids ...int) predicate.Game
- func Icon(v string) predicate.Game
- func IconContains(v string) predicate.Game
- func IconContainsFold(v string) predicate.Game
- func IconEQ(v string) predicate.Game
- func IconEqualFold(v string) predicate.Game
- func IconGT(v string) predicate.Game
- func IconGTE(v string) predicate.Game
- func IconHasPrefix(v string) predicate.Game
- func IconHasSuffix(v string) predicate.Game
- func IconIn(vs ...string) predicate.Game
- func IconIsNil() predicate.Game
- func IconLT(v string) predicate.Game
- func IconLTE(v string) predicate.Game
- func IconNEQ(v string) predicate.Game
- func IconNotIn(vs ...string) predicate.Game
- func IconNotNil() predicate.Game
- func Name(v string) predicate.Game
- func NameContains(v string) predicate.Game
- func NameContainsFold(v string) predicate.Game
- func NameEQ(v string) predicate.Game
- func NameEqualFold(v string) predicate.Game
- func NameGT(v string) predicate.Game
- func NameGTE(v string) predicate.Game
- func NameHasPrefix(v string) predicate.Game
- func NameHasSuffix(v string) predicate.Game
- func NameIn(vs ...string) predicate.Game
- func NameLT(v string) predicate.Game
- func NameLTE(v string) predicate.Game
- func NameNEQ(v string) predicate.Game
- func NameNotIn(vs ...string) predicate.Game
- func Not(p predicate.Game) predicate.Game
- func Or(predicates ...predicate.Game) predicate.Game
- func UpdatedAt(v time.Time) predicate.Game
- func UpdatedAtEQ(v time.Time) predicate.Game
- func UpdatedAtGT(v time.Time) predicate.Game
- func UpdatedAtGTE(v time.Time) predicate.Game
- func UpdatedAtIn(vs ...time.Time) predicate.Game
- func UpdatedAtLT(v time.Time) predicate.Game
- func UpdatedAtLTE(v time.Time) predicate.Game
- func UpdatedAtNEQ(v time.Time) predicate.Game
- func UpdatedAtNotIn(vs ...time.Time) predicate.Game
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGameCategory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGameCategoryCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIcon(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the game type in the database. Label = "game" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgeGameCategory holds the string denoting the game_category edge name in mutations. EdgeGameCategory = "game_category" // Table holds the table name of the game in the database. Table = "games" // GameCategoryTable is the table that holds the game_category relation/edge. GameCategoryTable = "categories" // GameCategoryInverseTable is the table name for the Category entity. // It exists in this package in order to avoid circular dependency with the "category" package. GameCategoryInverseTable = "categories" // GameCategoryColumn is the table column denoting the game_category relation/edge. GameCategoryColumn = "game_id" )
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 // UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field. UpdateDefaultDeletedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldIcon, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for game fields.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasGameCategory ¶
HasGameCategory applies the HasEdge predicate on the "game_category" edge.
func HasGameCategoryWith ¶
HasGameCategoryWith applies the HasEdge predicate on the "game_category" edge with a given conditions (other predicates).
func IconContains ¶
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEqualFold ¶
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconHasPrefix ¶
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func IconNotNil ¶
IconNotNil applies the NotNil predicate on the "icon" 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 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Game queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByGameCategory ¶
func ByGameCategory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGameCategory orders the results by game_category terms.
func ByGameCategoryCount ¶
func ByGameCategoryCount(opts ...sql.OrderTermOption) OrderOption
ByGameCategoryCount orders the results by game_category count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIcon ¶
func ByIcon(opts ...sql.OrderTermOption) OrderOption
ByIcon orders the results by the icon field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.