Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) 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 IsExist(v bool) predicate.User
- func IsExistEQ(v bool) predicate.User
- func IsExistNEQ(v bool) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Role(v int8) predicate.User
- func RoleEQ(v int8) predicate.User
- func RoleGT(v int8) predicate.User
- func RoleGTE(v int8) predicate.User
- func RoleIn(vs ...int8) predicate.User
- func RoleLT(v int8) predicate.User
- func RoleLTE(v int8) predicate.User
- func RoleNEQ(v int8) predicate.User
- func RoleNotIn(vs ...int8) predicate.User
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(vs ...time.Time) 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 UserTitle(v string) predicate.User
- func UserTitleContains(v string) predicate.User
- func UserTitleContainsFold(v string) predicate.User
- func UserTitleEQ(v string) predicate.User
- func UserTitleEqualFold(v string) predicate.User
- func UserTitleGT(v string) predicate.User
- func UserTitleGTE(v string) predicate.User
- func UserTitleHasPrefix(v string) predicate.User
- func UserTitleHasSuffix(v string) predicate.User
- func UserTitleIn(vs ...string) predicate.User
- func UserTitleLT(v string) predicate.User
- func UserTitleLTE(v string) predicate.User
- func UserTitleNEQ(v string) predicate.User
- func UserTitleNotIn(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" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldUserName holds the string denoting the user_name field in the database. FieldUserName = "user_name" // FieldIsExist holds the string denoting the is_exist field in the database. FieldIsExist = "is_exist" // 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" // FieldUserTitle holds the string denoting the user_title field in the database. FieldUserTitle = "user_title" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // DefaultRole holds the default value on creation for the "role" field. DefaultRole int8 // UserNameValidator is a validator for the "user_name" field. It is called by the builders before save. UserNameValidator func(string) error // DefaultIsExist holds the default value on creation for the "is_exist" field. DefaultIsExist bool // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime 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 )
var Columns = []string{ FieldID, FieldRole, FieldUserName, FieldIsExist, FieldCreateTime, FieldUpdateTime, FieldUserTitle, }
Columns holds all SQL columns for user fields.
Functions ¶
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 IsExist ¶
IsExist applies equality check predicate on the "is_exist" field. It's identical to IsExistEQ.
func IsExistNEQ ¶
IsExistNEQ applies the NEQ predicate on the "is_exist" 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 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 UserTitle ¶
UserTitle applies equality check predicate on the "user_title" field. It's identical to UserTitleEQ.
func UserTitleContains ¶
UserTitleContains applies the Contains predicate on the "user_title" field.
func UserTitleContainsFold ¶
UserTitleContainsFold applies the ContainsFold predicate on the "user_title" field.
func UserTitleEQ ¶
UserTitleEQ applies the EQ predicate on the "user_title" field.
func UserTitleEqualFold ¶
UserTitleEqualFold applies the EqualFold predicate on the "user_title" field.
func UserTitleGT ¶
UserTitleGT applies the GT predicate on the "user_title" field.
func UserTitleGTE ¶
UserTitleGTE applies the GTE predicate on the "user_title" field.
func UserTitleHasPrefix ¶
UserTitleHasPrefix applies the HasPrefix predicate on the "user_title" field.
func UserTitleHasSuffix ¶
UserTitleHasSuffix applies the HasSuffix predicate on the "user_title" field.
func UserTitleIn ¶
UserTitleIn applies the In predicate on the "user_title" field.
func UserTitleLT ¶
UserTitleLT applies the LT predicate on the "user_title" field.
func UserTitleLTE ¶
UserTitleLTE applies the LTE predicate on the "user_title" field.
func UserTitleNEQ ¶
UserTitleNEQ applies the NEQ predicate on the "user_title" field.
func UserTitleNotIn ¶
UserTitleNotIn applies the NotIn predicate on the "user_title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.