Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserCareerGroup) predicate.UserCareerGroup
- func CreateTime(v time.Time) predicate.UserCareerGroup
- func CreateTimeEQ(v time.Time) predicate.UserCareerGroup
- func CreateTimeGT(v time.Time) predicate.UserCareerGroup
- func CreateTimeGTE(v time.Time) predicate.UserCareerGroup
- func CreateTimeIn(vs ...time.Time) predicate.UserCareerGroup
- func CreateTimeLT(v time.Time) predicate.UserCareerGroup
- func CreateTimeLTE(v time.Time) predicate.UserCareerGroup
- func CreateTimeNEQ(v time.Time) predicate.UserCareerGroup
- func CreateTimeNotIn(vs ...time.Time) predicate.UserCareerGroup
- func HasCareers() predicate.UserCareerGroup
- func HasCareersWith(preds ...predicate.UserCareer) predicate.UserCareerGroup
- func HasUser() predicate.UserCareerGroup
- func HasUserWith(preds ...predicate.User) predicate.UserCareerGroup
- func ID(id int) predicate.UserCareerGroup
- func IDEQ(id int) predicate.UserCareerGroup
- func IDGT(id int) predicate.UserCareerGroup
- func IDGTE(id int) predicate.UserCareerGroup
- func IDIn(ids ...int) predicate.UserCareerGroup
- func IDLT(id int) predicate.UserCareerGroup
- func IDLTE(id int) predicate.UserCareerGroup
- func IDNEQ(id int) predicate.UserCareerGroup
- func IDNotIn(ids ...int) predicate.UserCareerGroup
- func LabelContains(v string) predicate.UserCareerGroup
- func LabelContainsFold(v string) predicate.UserCareerGroup
- func LabelEQ(v string) predicate.UserCareerGroup
- func LabelEqualFold(v string) predicate.UserCareerGroup
- func LabelGT(v string) predicate.UserCareerGroup
- func LabelGTE(v string) predicate.UserCareerGroup
- func LabelHasPrefix(v string) predicate.UserCareerGroup
- func LabelHasSuffix(v string) predicate.UserCareerGroup
- func LabelIn(vs ...string) predicate.UserCareerGroup
- func LabelLT(v string) predicate.UserCareerGroup
- func LabelLTE(v string) predicate.UserCareerGroup
- func LabelNEQ(v string) predicate.UserCareerGroup
- func LabelNotIn(vs ...string) predicate.UserCareerGroup
- func Not(p predicate.UserCareerGroup) predicate.UserCareerGroup
- func Or(predicates ...predicate.UserCareerGroup) predicate.UserCareerGroup
- func UpdateTime(v time.Time) predicate.UserCareerGroup
- func UpdateTimeEQ(v time.Time) predicate.UserCareerGroup
- func UpdateTimeGT(v time.Time) predicate.UserCareerGroup
- func UpdateTimeGTE(v time.Time) predicate.UserCareerGroup
- func UpdateTimeIn(vs ...time.Time) predicate.UserCareerGroup
- func UpdateTimeLT(v time.Time) predicate.UserCareerGroup
- func UpdateTimeLTE(v time.Time) predicate.UserCareerGroup
- func UpdateTimeNEQ(v time.Time) predicate.UserCareerGroup
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserCareerGroup
- func ValidColumn(column string) bool
- type OrderOption
- func ByCareers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCareersCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLabel(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the usercareergroup type in the database. Label = "user_career_group" // 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" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeCareers holds the string denoting the careers edge name in mutations. EdgeCareers = "careers" // Table holds the table name of the usercareergroup in the database. Table = "user_career_groups" // UserTable is the table that holds the user relation/edge. UserTable = "user_career_groups" // 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" // CareersTable is the table that holds the careers relation/edge. CareersTable = "user_careers" // CareersInverseTable is the table name for the UserCareer entity. // It exists in this package in order to avoid circular dependency with the "usercareer" package. CareersInverseTable = "user_careers" // CareersColumn is the table column denoting the careers relation/edge. CareersColumn = "career_group_id" )
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 // LabelValidator is a validator for the "label" field. It is called by the builders before save. LabelValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldLabel, }
Columns holds all SQL columns for usercareergroup fields.
var ForeignKeys = []string{
"user_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_career_groups" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.UserCareerGroup) predicate.UserCareerGroup
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.UserCareerGroup
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.UserCareerGroup
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.UserCareerGroup
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.UserCareerGroup
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.UserCareerGroup
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.UserCareerGroup
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.UserCareerGroup
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.UserCareerGroup
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.UserCareerGroup
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCareers ¶
func HasCareers() predicate.UserCareerGroup
HasCareers applies the HasEdge predicate on the "careers" edge.
func HasCareersWith ¶
func HasCareersWith(preds ...predicate.UserCareer) predicate.UserCareerGroup
HasCareersWith applies the HasEdge predicate on the "careers" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.UserCareerGroup
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserCareerGroup
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.UserCareerGroup
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.UserCareerGroup
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.UserCareerGroup
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserCareerGroup
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.UserCareerGroup
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserCareerGroup
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserCareerGroup
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserCareerGroup
IDNotIn applies the NotIn predicate on the ID field.
func LabelContains ¶
func LabelContains(v string) predicate.UserCareerGroup
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
func LabelContainsFold(v string) predicate.UserCareerGroup
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEQ ¶
func LabelEQ(v string) predicate.UserCareerGroup
LabelEQ applies the EQ predicate on the "label" field.
func LabelEqualFold ¶
func LabelEqualFold(v string) predicate.UserCareerGroup
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelGT ¶
func LabelGT(v string) predicate.UserCareerGroup
LabelGT applies the GT predicate on the "label" field.
func LabelGTE ¶
func LabelGTE(v string) predicate.UserCareerGroup
LabelGTE applies the GTE predicate on the "label" field.
func LabelHasPrefix ¶
func LabelHasPrefix(v string) predicate.UserCareerGroup
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
func LabelHasSuffix(v string) predicate.UserCareerGroup
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelIn ¶
func LabelIn(vs ...string) predicate.UserCareerGroup
LabelIn applies the In predicate on the "label" field.
func LabelLT ¶
func LabelLT(v string) predicate.UserCareerGroup
LabelLT applies the LT predicate on the "label" field.
func LabelLTE ¶
func LabelLTE(v string) predicate.UserCareerGroup
LabelLTE applies the LTE predicate on the "label" field.
func LabelNEQ ¶
func LabelNEQ(v string) predicate.UserCareerGroup
LabelNEQ applies the NEQ predicate on the "label" field.
func LabelNotIn ¶
func LabelNotIn(vs ...string) predicate.UserCareerGroup
LabelNotIn applies the NotIn predicate on the "label" field.
func Not ¶
func Not(p predicate.UserCareerGroup) predicate.UserCareerGroup
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserCareerGroup) predicate.UserCareerGroup
Or groups predicates with the OR operator between them.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.UserCareerGroup
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.UserCareerGroup
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.UserCareerGroup
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.UserCareerGroup
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.UserCareerGroup
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.UserCareerGroup
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.UserCareerGroup
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.UserCareerGroup
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.UserCareerGroup
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the UserCareerGroup queries.
func ByCareers ¶
func ByCareers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCareers orders the results by careers terms.
func ByCareersCount ¶
func ByCareersCount(opts ...sql.OrderTermOption) OrderOption
ByCareersCount orders the results by careers count.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLabel ¶
func ByLabel(opts ...sql.OrderTermOption) OrderOption
ByLabel orders the results by the label field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.