Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Profile
- func AgeEQ(v int) predicate.Profile
- func AgeGT(v int) predicate.Profile
- func AgeGTE(v int) predicate.Profile
- func AgeIn(vs ...int) predicate.Profile
- func AgeLT(v int) predicate.Profile
- func AgeLTE(v int) predicate.Profile
- func AgeNEQ(v int) predicate.Profile
- func AgeNotIn(vs ...int) predicate.Profile
- func And(predicates ...predicate.Profile) predicate.Profile
- func AvatarIsNil() predicate.Profile
- func AvatarNotNil() predicate.Profile
- func Birthday(v time.Time) predicate.Profile
- func BirthdayEQ(v time.Time) predicate.Profile
- func BirthdayGT(v time.Time) predicate.Profile
- func BirthdayGTE(v time.Time) predicate.Profile
- func BirthdayIn(vs ...time.Time) predicate.Profile
- func BirthdayIsNil() predicate.Profile
- func BirthdayLT(v time.Time) predicate.Profile
- func BirthdayLTE(v time.Time) predicate.Profile
- func BirthdayNEQ(v time.Time) predicate.Profile
- func BirthdayNotIn(vs ...time.Time) predicate.Profile
- func BirthdayNotNil() predicate.Profile
- func CreateTime(v time.Time) predicate.Profile
- func CreateTimeEQ(v time.Time) predicate.Profile
- func CreateTimeGT(v time.Time) predicate.Profile
- func CreateTimeGTE(v time.Time) predicate.Profile
- func CreateTimeIn(vs ...time.Time) predicate.Profile
- func CreateTimeLT(v time.Time) predicate.Profile
- func CreateTimeLTE(v time.Time) predicate.Profile
- func CreateTimeNEQ(v time.Time) predicate.Profile
- func CreateTimeNotIn(vs ...time.Time) predicate.Profile
- func DeleteTime(v time.Time) predicate.Profile
- func DeleteTimeEQ(v time.Time) predicate.Profile
- func DeleteTimeGT(v time.Time) predicate.Profile
- func DeleteTimeGTE(v time.Time) predicate.Profile
- func DeleteTimeIn(vs ...time.Time) predicate.Profile
- func DeleteTimeIsNil() predicate.Profile
- func DeleteTimeLT(v time.Time) predicate.Profile
- func DeleteTimeLTE(v time.Time) predicate.Profile
- func DeleteTimeNEQ(v time.Time) predicate.Profile
- func DeleteTimeNotIn(vs ...time.Time) predicate.Profile
- func DeleteTimeNotNil() predicate.Profile
- func GenderEQ(v Gender) predicate.Profile
- func GenderIn(vs ...Gender) predicate.Profile
- func GenderIsNil() predicate.Profile
- func GenderNEQ(v Gender) predicate.Profile
- func GenderNotIn(vs ...Gender) predicate.Profile
- func GenderNotNil() predicate.Profile
- func GenderValidator(ge Gender) error
- func HasUser() predicate.Profile
- func HasUserWith(preds ...predicate.User) predicate.Profile
- func ID(id uuid.UUID) predicate.Profile
- func IDEQ(id uuid.UUID) predicate.Profile
- func IDGT(id uuid.UUID) predicate.Profile
- func IDGTE(id uuid.UUID) predicate.Profile
- func IDIn(ids ...uuid.UUID) predicate.Profile
- func IDLT(id uuid.UUID) predicate.Profile
- func IDLTE(id uuid.UUID) predicate.Profile
- func IDNEQ(id uuid.UUID) predicate.Profile
- func IDNotIn(ids ...uuid.UUID) predicate.Profile
- func Not(p predicate.Profile) predicate.Profile
- func Or(predicates ...predicate.Profile) predicate.Profile
- func PreferredTheme(v string) predicate.Profile
- func PreferredThemeContains(v string) predicate.Profile
- func PreferredThemeContainsFold(v string) predicate.Profile
- func PreferredThemeEQ(v string) predicate.Profile
- func PreferredThemeEqualFold(v string) predicate.Profile
- func PreferredThemeGT(v string) predicate.Profile
- func PreferredThemeGTE(v string) predicate.Profile
- func PreferredThemeHasPrefix(v string) predicate.Profile
- func PreferredThemeHasSuffix(v string) predicate.Profile
- func PreferredThemeIn(vs ...string) predicate.Profile
- func PreferredThemeIsNil() predicate.Profile
- func PreferredThemeLT(v string) predicate.Profile
- func PreferredThemeLTE(v string) predicate.Profile
- func PreferredThemeNEQ(v string) predicate.Profile
- func PreferredThemeNotIn(vs ...string) predicate.Profile
- func PreferredThemeNotNil() predicate.Profile
- func Tz(v string) predicate.Profile
- func TzContains(v string) predicate.Profile
- func TzContainsFold(v string) predicate.Profile
- func TzEQ(v string) predicate.Profile
- func TzEqualFold(v string) predicate.Profile
- func TzGT(v string) predicate.Profile
- func TzGTE(v string) predicate.Profile
- func TzHasPrefix(v string) predicate.Profile
- func TzHasSuffix(v string) predicate.Profile
- func TzIn(vs ...string) predicate.Profile
- func TzLT(v string) predicate.Profile
- func TzLTE(v string) predicate.Profile
- func TzNEQ(v string) predicate.Profile
- func TzNotIn(vs ...string) predicate.Profile
- func UpdateTime(v time.Time) predicate.Profile
- func UpdateTimeEQ(v time.Time) predicate.Profile
- func UpdateTimeGT(v time.Time) predicate.Profile
- func UpdateTimeGTE(v time.Time) predicate.Profile
- func UpdateTimeIn(vs ...time.Time) predicate.Profile
- func UpdateTimeLT(v time.Time) predicate.Profile
- func UpdateTimeLTE(v time.Time) predicate.Profile
- func UpdateTimeNEQ(v time.Time) predicate.Profile
- func UpdateTimeNotIn(vs ...time.Time) predicate.Profile
- func ValidColumn(column string) bool
- type Gender
Constants ¶
const ( // Label holds the string label denoting the profile type in the database. Label = "profile" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldDeleteTime holds the string denoting the delete_time field in the database. FieldDeleteTime = "delete_time" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldTz holds the string denoting the tz field in the database. FieldTz = "tz" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldPreferredTheme holds the string denoting the preferred_theme field in the database. FieldPreferredTheme = "preferred_theme" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the profile in the database. Table = "profiles" // UserTable is the table the holds the user relation/edge. UserTable = "profiles" // 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_profile" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // AgeValidator is a validator for the "age" field. It is called by the builders before save. AgeValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldDeleteTime, FieldAge, FieldTz, FieldAvatar, FieldBirthday, FieldGender, FieldPreferredTheme, }
Columns holds all SQL columns for profile fields.
var ForeignKeys = []string{
"user_profile",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Profile type.
Functions ¶
func AvatarIsNil ¶
AvatarIsNil applies the IsNil predicate on the "avatar" field.
func AvatarNotNil ¶
AvatarNotNil applies the NotNil predicate on the "avatar" field.
func Birthday ¶
Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.
func BirthdayEQ ¶
BirthdayEQ applies the EQ predicate on the "birthday" field.
func BirthdayGT ¶
BirthdayGT applies the GT predicate on the "birthday" field.
func BirthdayGTE ¶
BirthdayGTE applies the GTE predicate on the "birthday" field.
func BirthdayIn ¶
BirthdayIn applies the In predicate on the "birthday" field.
func BirthdayIsNil ¶
BirthdayIsNil applies the IsNil predicate on the "birthday" field.
func BirthdayLT ¶
BirthdayLT applies the LT predicate on the "birthday" field.
func BirthdayLTE ¶
BirthdayLTE applies the LTE predicate on the "birthday" field.
func BirthdayNEQ ¶
BirthdayNEQ applies the NEQ predicate on the "birthday" field.
func BirthdayNotIn ¶
BirthdayNotIn applies the NotIn predicate on the "birthday" field.
func BirthdayNotNil ¶
BirthdayNotNil applies the NotNil predicate on the "birthday" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeleteTime ¶
DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.
func DeleteTimeEQ ¶
DeleteTimeEQ applies the EQ predicate on the "delete_time" field.
func DeleteTimeGT ¶
DeleteTimeGT applies the GT predicate on the "delete_time" field.
func DeleteTimeGTE ¶
DeleteTimeGTE applies the GTE predicate on the "delete_time" field.
func DeleteTimeIn ¶
DeleteTimeIn applies the In predicate on the "delete_time" field.
func DeleteTimeIsNil ¶
DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.
func DeleteTimeLT ¶
DeleteTimeLT applies the LT predicate on the "delete_time" field.
func DeleteTimeLTE ¶
DeleteTimeLTE applies the LTE predicate on the "delete_time" field.
func DeleteTimeNEQ ¶
DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.
func DeleteTimeNotIn ¶
DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.
func DeleteTimeNotNil ¶
DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.
func GenderIsNil ¶
GenderIsNil applies the IsNil predicate on the "gender" field.
func GenderNotIn ¶
GenderNotIn applies the NotIn predicate on the "gender" field.
func GenderNotNil ¶
GenderNotNil applies the NotNil predicate on the "gender" field.
func GenderValidator ¶
GenderValidator is a validator for the "gender" field enum values. It is called by the builders before save.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func PreferredTheme ¶
PreferredTheme applies equality check predicate on the "preferred_theme" field. It's identical to PreferredThemeEQ.
func PreferredThemeContains ¶
PreferredThemeContains applies the Contains predicate on the "preferred_theme" field.
func PreferredThemeContainsFold ¶
PreferredThemeContainsFold applies the ContainsFold predicate on the "preferred_theme" field.
func PreferredThemeEQ ¶
PreferredThemeEQ applies the EQ predicate on the "preferred_theme" field.
func PreferredThemeEqualFold ¶
PreferredThemeEqualFold applies the EqualFold predicate on the "preferred_theme" field.
func PreferredThemeGT ¶
PreferredThemeGT applies the GT predicate on the "preferred_theme" field.
func PreferredThemeGTE ¶
PreferredThemeGTE applies the GTE predicate on the "preferred_theme" field.
func PreferredThemeHasPrefix ¶
PreferredThemeHasPrefix applies the HasPrefix predicate on the "preferred_theme" field.
func PreferredThemeHasSuffix ¶
PreferredThemeHasSuffix applies the HasSuffix predicate on the "preferred_theme" field.
func PreferredThemeIn ¶
PreferredThemeIn applies the In predicate on the "preferred_theme" field.
func PreferredThemeIsNil ¶
PreferredThemeIsNil applies the IsNil predicate on the "preferred_theme" field.
func PreferredThemeLT ¶
PreferredThemeLT applies the LT predicate on the "preferred_theme" field.
func PreferredThemeLTE ¶
PreferredThemeLTE applies the LTE predicate on the "preferred_theme" field.
func PreferredThemeNEQ ¶
PreferredThemeNEQ applies the NEQ predicate on the "preferred_theme" field.
func PreferredThemeNotIn ¶
PreferredThemeNotIn applies the NotIn predicate on the "preferred_theme" field.
func PreferredThemeNotNil ¶
PreferredThemeNotNil applies the NotNil predicate on the "preferred_theme" field.
func TzContains ¶
TzContains applies the Contains predicate on the "tz" field.
func TzContainsFold ¶
TzContainsFold applies the ContainsFold predicate on the "tz" field.
func TzEqualFold ¶
TzEqualFold applies the EqualFold predicate on the "tz" field.
func TzHasPrefix ¶
TzHasPrefix applies the HasPrefix predicate on the "tz" field.
func TzHasSuffix ¶
TzHasSuffix applies the HasSuffix predicate on the "tz" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).