Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func HasAchievements() predicate.User
- func HasAchievementsWith(preds ...predicate.Achievement) predicate.User
- func HasBFPs() predicate.User
- func HasBFPsWith(preds ...predicate.BFPDataPoint) predicate.User
- func HasMeals() predicate.User
- func HasMealsWith(preds ...predicate.Meal) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func UserName(v string) predicate.User
- func UserNameContains(v string) predicate.User
- func UserNameContainsFold(v string) predicate.User
- func UserNameEQ(v string) predicate.User
- func UserNameEqualFold(v string) predicate.User
- func UserNameGT(v string) predicate.User
- func UserNameGTE(v string) predicate.User
- func UserNameHasPrefix(v string) predicate.User
- func UserNameHasSuffix(v string) predicate.User
- func UserNameIn(vs ...string) predicate.User
- func UserNameLT(v string) predicate.User
- func UserNameLTE(v string) predicate.User
- func UserNameNEQ(v string) predicate.User
- func UserNameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserName holds the string denoting the user_name field in the database. FieldUserName = "user_name" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // EdgeMeals holds the string denoting the meals edge name in mutations. EdgeMeals = "meals" // EdgeBFPs holds the string denoting the bfps edge name in mutations. EdgeBFPs = "BFPs" // EdgeAchievements holds the string denoting the achievements edge name in mutations. EdgeAchievements = "achievements" // Table holds the table name of the user in the database. Table = "users" // MealsTable is the table that holds the meals relation/edge. MealsTable = "meals" // MealsInverseTable is the table name for the Meal entity. // It exists in this package in order to avoid circular dependency with the "meal" package. MealsInverseTable = "meals" // MealsColumn is the table column denoting the meals relation/edge. MealsColumn = "user_meals" // BFPsTable is the table that holds the BFPs relation/edge. BFPsTable = "bfp_data_points" // BFPsInverseTable is the table name for the BFPDataPoint entity. // It exists in this package in order to avoid circular dependency with the "bfpdatapoint" package. BFPsInverseTable = "bfp_data_points" // BFPsColumn is the table column denoting the BFPs relation/edge. BFPsColumn = "user_bf_ps" // AchievementsTable is the table that holds the achievements relation/edge. AchievementsTable = "achievements" // AchievementsInverseTable is the table name for the Achievement entity. // It exists in this package in order to avoid circular dependency with the "achievement" package. AchievementsInverseTable = "achievements" // AchievementsColumn is the table column denoting the achievements relation/edge. AchievementsColumn = "user_achievements" )
Variables ¶
var Columns = []string{ FieldID, FieldUserName, FieldPassword, }
Columns holds all SQL columns for user fields.
Functions ¶
func HasAchievements ¶
HasAchievements applies the HasEdge predicate on the "achievements" edge.
func HasAchievementsWith ¶
func HasAchievementsWith(preds ...predicate.Achievement) predicate.User
HasAchievementsWith applies the HasEdge predicate on the "achievements" edge with a given conditions (other predicates).
func HasBFPsWith ¶
func HasBFPsWith(preds ...predicate.BFPDataPoint) predicate.User
HasBFPsWith applies the HasEdge predicate on the "BFPs" edge with a given conditions (other predicates).
func HasMealsWith ¶
HasMealsWith applies the HasEdge predicate on the "meals" edge with a given conditions (other predicates).
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func UserName ¶
UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.
func UserNameContains ¶
UserNameContains applies the Contains predicate on the "user_name" field.
func UserNameContainsFold ¶
UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.
func UserNameEQ ¶
UserNameEQ applies the EQ predicate on the "user_name" field.
func UserNameEqualFold ¶
UserNameEqualFold applies the EqualFold predicate on the "user_name" field.
func UserNameGT ¶
UserNameGT applies the GT predicate on the "user_name" field.
func UserNameGTE ¶
UserNameGTE applies the GTE predicate on the "user_name" field.
func UserNameHasPrefix ¶
UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.
func UserNameHasSuffix ¶
UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.
func UserNameIn ¶
UserNameIn applies the In predicate on the "user_name" field.
func UserNameLT ¶
UserNameLT applies the LT predicate on the "user_name" field.
func UserNameLTE ¶
UserNameLTE applies the LTE predicate on the "user_name" field.
func UserNameNEQ ¶
UserNameNEQ applies the NEQ predicate on the "user_name" field.
func UserNameNotIn ¶
UserNameNotIn applies the NotIn predicate on the "user_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.