Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserPet) predicate.UserPet
- func HasPet() predicate.UserPet
- func HasPetWith(preds ...predicate.Pet) predicate.UserPet
- func HasUser() predicate.UserPet
- func HasUserWith(preds ...predicate.User) predicate.UserPet
- func HungerPercentage(v float64) predicate.UserPet
- func HungerPercentageEQ(v float64) predicate.UserPet
- func HungerPercentageGT(v float64) predicate.UserPet
- func HungerPercentageGTE(v float64) predicate.UserPet
- func HungerPercentageIn(vs ...float64) predicate.UserPet
- func HungerPercentageLT(v float64) predicate.UserPet
- func HungerPercentageLTE(v float64) predicate.UserPet
- func HungerPercentageNEQ(v float64) predicate.UserPet
- func HungerPercentageNotIn(vs ...float64) predicate.UserPet
- func Not(p predicate.UserPet) predicate.UserPet
- func Or(predicates ...predicate.UserPet) predicate.UserPet
- func PetID(v int) predicate.UserPet
- func PetIDEQ(v int) predicate.UserPet
- func PetIDIn(vs ...int) predicate.UserPet
- func PetIDNEQ(v int) predicate.UserPet
- func PetIDNotIn(vs ...int) predicate.UserPet
- func UserID(v int) predicate.UserPet
- func UserIDEQ(v int) predicate.UserPet
- func UserIDIn(vs ...int) predicate.UserPet
- func UserIDNEQ(v int) predicate.UserPet
- func UserIDNotIn(vs ...int) predicate.UserPet
- func ValidColumn(column string) bool
- type OrderOption
- func ByHungerPercentage(opts ...sql.OrderTermOption) OrderOption
- func ByPetField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPetID(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the userpet type in the database. Label = "user_pet" // FieldHungerPercentage holds the string denoting the hunger_percentage field in the database. FieldHungerPercentage = "hunger_percentage" // FieldEnabledSvgGroupElementIds holds the string denoting the enabled_svg_group_element_ids field in the database. FieldEnabledSvgGroupElementIds = "enabled_svg_group_element_ids" // FieldPetID holds the string denoting the pet_id field in the database. FieldPetID = "pet_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgePet holds the string denoting the pet edge name in mutations. EdgePet = "pet" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // PetFieldID holds the string denoting the ID field of the Pet. PetFieldID = "id" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "id" // Table holds the table name of the userpet in the database. Table = "user_pets" // PetTable is the table that holds the pet relation/edge. PetTable = "user_pets" // PetInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetInverseTable = "pets" // PetColumn is the table column denoting the pet relation/edge. PetColumn = "pet_id" // UserTable is the table that holds the user relation/edge. UserTable = "user_pets" // 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 = "user_id" )
Variables ¶
var ( // HungerPercentageValidator is a validator for the "hunger_percentage" field. It is called by the builders before save. HungerPercentageValidator func(float64) error // DefaultEnabledSvgGroupElementIds holds the default value on creation for the "enabled_svg_group_element_ids" field. DefaultEnabledSvgGroupElementIds map[string]bool )
var Columns = []string{ FieldHungerPercentage, FieldEnabledSvgGroupElementIds, FieldPetID, FieldUserID, }
Columns holds all SQL columns for userpet fields.
Functions ¶
func HasPetWith ¶
HasPetWith applies the HasEdge predicate on the "pet" 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 HungerPercentage ¶
HungerPercentage applies equality check predicate on the "hunger_percentage" field. It's identical to HungerPercentageEQ.
func HungerPercentageEQ ¶
HungerPercentageEQ applies the EQ predicate on the "hunger_percentage" field.
func HungerPercentageGT ¶
HungerPercentageGT applies the GT predicate on the "hunger_percentage" field.
func HungerPercentageGTE ¶
HungerPercentageGTE applies the GTE predicate on the "hunger_percentage" field.
func HungerPercentageIn ¶
HungerPercentageIn applies the In predicate on the "hunger_percentage" field.
func HungerPercentageLT ¶
HungerPercentageLT applies the LT predicate on the "hunger_percentage" field.
func HungerPercentageLTE ¶
HungerPercentageLTE applies the LTE predicate on the "hunger_percentage" field.
func HungerPercentageNEQ ¶
HungerPercentageNEQ applies the NEQ predicate on the "hunger_percentage" field.
func HungerPercentageNotIn ¶
HungerPercentageNotIn applies the NotIn predicate on the "hunger_percentage" field.
func PetID ¶
PetID applies equality check predicate on the "pet_id" field. It's identical to PetIDEQ.
func PetIDNotIn ¶
PetIDNotIn applies the NotIn predicate on the "pet_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" 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 UserPet queries.
func ByHungerPercentage ¶
func ByHungerPercentage(opts ...sql.OrderTermOption) OrderOption
ByHungerPercentage orders the results by the hunger_percentage field.
func ByPetField ¶
func ByPetField(field string, opts ...sql.OrderTermOption) OrderOption
ByPetField orders the results by pet field.
func ByPetID ¶
func ByPetID(opts ...sql.OrderTermOption) OrderOption
ByPetID orders the results by the pet_id field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.