Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserActivity) predicate.UserActivity
- func CreateTime(v time.Time) predicate.UserActivity
- func CreateTimeEQ(v time.Time) predicate.UserActivity
- func CreateTimeGT(v time.Time) predicate.UserActivity
- func CreateTimeGTE(v time.Time) predicate.UserActivity
- func CreateTimeIn(vs ...time.Time) predicate.UserActivity
- func CreateTimeLT(v time.Time) predicate.UserActivity
- func CreateTimeLTE(v time.Time) predicate.UserActivity
- func CreateTimeNEQ(v time.Time) predicate.UserActivity
- func CreateTimeNotIn(vs ...time.Time) predicate.UserActivity
- func HasUser() predicate.UserActivity
- func HasUserWith(preds ...predicate.User) predicate.UserActivity
- func ID(id int) predicate.UserActivity
- func IDEQ(id int) predicate.UserActivity
- func IDGT(id int) predicate.UserActivity
- func IDGTE(id int) predicate.UserActivity
- func IDIn(ids ...int) predicate.UserActivity
- func IDLT(id int) predicate.UserActivity
- func IDLTE(id int) predicate.UserActivity
- func IDNEQ(id int) predicate.UserActivity
- func IDNotIn(ids ...int) predicate.UserActivity
- func Icon(v string) predicate.UserActivity
- func IconContains(v string) predicate.UserActivity
- func IconContainsFold(v string) predicate.UserActivity
- func IconEQ(v string) predicate.UserActivity
- func IconEqualFold(v string) predicate.UserActivity
- func IconGT(v string) predicate.UserActivity
- func IconGTE(v string) predicate.UserActivity
- func IconHasPrefix(v string) predicate.UserActivity
- func IconHasSuffix(v string) predicate.UserActivity
- func IconIn(vs ...string) predicate.UserActivity
- func IconIsNil() predicate.UserActivity
- func IconLT(v string) predicate.UserActivity
- func IconLTE(v string) predicate.UserActivity
- func IconNEQ(v string) predicate.UserActivity
- func IconNotIn(vs ...string) predicate.UserActivity
- func IconNotNil() predicate.UserActivity
- func Name(v string) predicate.UserActivity
- func NameContains(v string) predicate.UserActivity
- func NameContainsFold(v string) predicate.UserActivity
- func NameEQ(v string) predicate.UserActivity
- func NameEqualFold(v string) predicate.UserActivity
- func NameGT(v string) predicate.UserActivity
- func NameGTE(v string) predicate.UserActivity
- func NameHasPrefix(v string) predicate.UserActivity
- func NameHasSuffix(v string) predicate.UserActivity
- func NameIn(vs ...string) predicate.UserActivity
- func NameLT(v string) predicate.UserActivity
- func NameLTE(v string) predicate.UserActivity
- func NameNEQ(v string) predicate.UserActivity
- func NameNotIn(vs ...string) predicate.UserActivity
- func Not(p predicate.UserActivity) predicate.UserActivity
- func Or(predicates ...predicate.UserActivity) predicate.UserActivity
- func URL(v string) predicate.UserActivity
- func URLContains(v string) predicate.UserActivity
- func URLContainsFold(v string) predicate.UserActivity
- func URLEQ(v string) predicate.UserActivity
- func URLEqualFold(v string) predicate.UserActivity
- func URLGT(v string) predicate.UserActivity
- func URLGTE(v string) predicate.UserActivity
- func URLHasPrefix(v string) predicate.UserActivity
- func URLHasSuffix(v string) predicate.UserActivity
- func URLIn(vs ...string) predicate.UserActivity
- func URLIsNil() predicate.UserActivity
- func URLLT(v string) predicate.UserActivity
- func URLLTE(v string) predicate.UserActivity
- func URLNEQ(v string) predicate.UserActivity
- func URLNotIn(vs ...string) predicate.UserActivity
- func URLNotNil() predicate.UserActivity
- func UpdateTime(v time.Time) predicate.UserActivity
- func UpdateTimeEQ(v time.Time) predicate.UserActivity
- func UpdateTimeGT(v time.Time) predicate.UserActivity
- func UpdateTimeGTE(v time.Time) predicate.UserActivity
- func UpdateTimeIn(vs ...time.Time) predicate.UserActivity
- func UpdateTimeLT(v time.Time) predicate.UserActivity
- func UpdateTimeLTE(v time.Time) predicate.UserActivity
- func UpdateTimeNEQ(v time.Time) predicate.UserActivity
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserActivity
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIcon(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByURL(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 useractivity type in the database. Label = "user_activity" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the useractivity in the database. Table = "user_activities" // UserTable is the table that holds the user relation/edge. UserTable = "user_activities" // 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 ( // 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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // IconValidator is a validator for the "icon" field. It is called by the builders before save. IconValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldURL, FieldIcon, }
Columns holds all SQL columns for useractivity fields.
var ForeignKeys = []string{
"user_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_activities" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.UserActivity) predicate.UserActivity
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.UserActivity
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.UserActivity
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.UserActivity
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.UserActivity
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.UserActivity
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.UserActivity
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.UserActivity
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.UserActivity
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.UserActivity
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasUser ¶
func HasUser() predicate.UserActivity
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserActivity
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserActivity
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserActivity
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserActivity
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserActivity
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserActivity
IDNotIn applies the NotIn predicate on the ID field.
func Icon ¶
func Icon(v string) predicate.UserActivity
Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.
func IconContains ¶
func IconContains(v string) predicate.UserActivity
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
func IconContainsFold(v string) predicate.UserActivity
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEQ ¶
func IconEQ(v string) predicate.UserActivity
IconEQ applies the EQ predicate on the "icon" field.
func IconEqualFold ¶
func IconEqualFold(v string) predicate.UserActivity
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconGT ¶
func IconGT(v string) predicate.UserActivity
IconGT applies the GT predicate on the "icon" field.
func IconGTE ¶
func IconGTE(v string) predicate.UserActivity
IconGTE applies the GTE predicate on the "icon" field.
func IconHasPrefix ¶
func IconHasPrefix(v string) predicate.UserActivity
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
func IconHasSuffix(v string) predicate.UserActivity
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func IconIn ¶
func IconIn(vs ...string) predicate.UserActivity
IconIn applies the In predicate on the "icon" field.
func IconIsNil ¶
func IconIsNil() predicate.UserActivity
IconIsNil applies the IsNil predicate on the "icon" field.
func IconLT ¶
func IconLT(v string) predicate.UserActivity
IconLT applies the LT predicate on the "icon" field.
func IconLTE ¶
func IconLTE(v string) predicate.UserActivity
IconLTE applies the LTE predicate on the "icon" field.
func IconNEQ ¶
func IconNEQ(v string) predicate.UserActivity
IconNEQ applies the NEQ predicate on the "icon" field.
func IconNotIn ¶
func IconNotIn(vs ...string) predicate.UserActivity
IconNotIn applies the NotIn predicate on the "icon" field.
func IconNotNil ¶
func IconNotNil() predicate.UserActivity
IconNotNil applies the NotNil predicate on the "icon" field.
func Name ¶
func Name(v string) predicate.UserActivity
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.UserActivity
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.UserActivity
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.UserActivity
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.UserActivity
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.UserActivity
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.UserActivity
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.UserActivity
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.UserActivity
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.UserActivity
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.UserActivity
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.UserActivity
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.UserActivity
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.UserActivity
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.UserActivity) predicate.UserActivity
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserActivity) predicate.UserActivity
Or groups predicates with the OR operator between them.
func URL ¶
func URL(v string) predicate.UserActivity
URL applies equality check predicate on the "url" field. It's identical to URLEQ.
func URLContains ¶
func URLContains(v string) predicate.UserActivity
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
func URLContainsFold(v string) predicate.UserActivity
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEQ ¶
func URLEQ(v string) predicate.UserActivity
URLEQ applies the EQ predicate on the "url" field.
func URLEqualFold ¶
func URLEqualFold(v string) predicate.UserActivity
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLGT ¶
func URLGT(v string) predicate.UserActivity
URLGT applies the GT predicate on the "url" field.
func URLGTE ¶
func URLGTE(v string) predicate.UserActivity
URLGTE applies the GTE predicate on the "url" field.
func URLHasPrefix ¶
func URLHasPrefix(v string) predicate.UserActivity
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
func URLHasSuffix(v string) predicate.UserActivity
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func URLIn ¶
func URLIn(vs ...string) predicate.UserActivity
URLIn applies the In predicate on the "url" field.
func URLIsNil ¶
func URLIsNil() predicate.UserActivity
URLIsNil applies the IsNil predicate on the "url" field.
func URLLT ¶
func URLLT(v string) predicate.UserActivity
URLLT applies the LT predicate on the "url" field.
func URLLTE ¶
func URLLTE(v string) predicate.UserActivity
URLLTE applies the LTE predicate on the "url" field.
func URLNEQ ¶
func URLNEQ(v string) predicate.UserActivity
URLNEQ applies the NEQ predicate on the "url" field.
func URLNotIn ¶
func URLNotIn(vs ...string) predicate.UserActivity
URLNotIn applies the NotIn predicate on the "url" field.
func URLNotNil ¶
func URLNotNil() predicate.UserActivity
URLNotNil applies the NotNil predicate on the "url" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.UserActivity
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.UserActivity
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.UserActivity
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.UserActivity
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.UserActivity
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.UserActivity
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.UserActivity
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.UserActivity
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.UserActivity
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 UserActivity queries.
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 ByIcon ¶
func ByIcon(opts ...sql.OrderTermOption) OrderOption
ByIcon orders the results by the icon field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url 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.