Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserProfiles) predicate.UserProfiles
- func AttrKey(v string) predicate.UserProfiles
- func AttrKeyContains(v string) predicate.UserProfiles
- func AttrKeyContainsFold(v string) predicate.UserProfiles
- func AttrKeyEQ(v string) predicate.UserProfiles
- func AttrKeyEqualFold(v string) predicate.UserProfiles
- func AttrKeyGT(v string) predicate.UserProfiles
- func AttrKeyGTE(v string) predicate.UserProfiles
- func AttrKeyHasPrefix(v string) predicate.UserProfiles
- func AttrKeyHasSuffix(v string) predicate.UserProfiles
- func AttrKeyIn(vs ...string) predicate.UserProfiles
- func AttrKeyLT(v string) predicate.UserProfiles
- func AttrKeyLTE(v string) predicate.UserProfiles
- func AttrKeyNEQ(v string) predicate.UserProfiles
- func AttrKeyNotIn(vs ...string) predicate.UserProfiles
- func AttrValue(v string) predicate.UserProfiles
- func AttrValueContains(v string) predicate.UserProfiles
- func AttrValueContainsFold(v string) predicate.UserProfiles
- func AttrValueEQ(v string) predicate.UserProfiles
- func AttrValueEqualFold(v string) predicate.UserProfiles
- func AttrValueGT(v string) predicate.UserProfiles
- func AttrValueGTE(v string) predicate.UserProfiles
- func AttrValueHasPrefix(v string) predicate.UserProfiles
- func AttrValueHasSuffix(v string) predicate.UserProfiles
- func AttrValueIn(vs ...string) predicate.UserProfiles
- func AttrValueLT(v string) predicate.UserProfiles
- func AttrValueLTE(v string) predicate.UserProfiles
- func AttrValueNEQ(v string) predicate.UserProfiles
- func AttrValueNotIn(vs ...string) predicate.UserProfiles
- func CreatedAt(v time.Time) predicate.UserProfiles
- func CreatedAtEQ(v time.Time) predicate.UserProfiles
- func CreatedAtGT(v time.Time) predicate.UserProfiles
- func CreatedAtGTE(v time.Time) predicate.UserProfiles
- func CreatedAtIn(vs ...time.Time) predicate.UserProfiles
- func CreatedAtLT(v time.Time) predicate.UserProfiles
- func CreatedAtLTE(v time.Time) predicate.UserProfiles
- func CreatedAtNEQ(v time.Time) predicate.UserProfiles
- func CreatedAtNotIn(vs ...time.Time) predicate.UserProfiles
- func DeletedAt(v time.Time) predicate.UserProfiles
- func DeletedAtEQ(v time.Time) predicate.UserProfiles
- func DeletedAtGT(v time.Time) predicate.UserProfiles
- func DeletedAtGTE(v time.Time) predicate.UserProfiles
- func DeletedAtIn(vs ...time.Time) predicate.UserProfiles
- func DeletedAtIsNil() predicate.UserProfiles
- func DeletedAtLT(v time.Time) predicate.UserProfiles
- func DeletedAtLTE(v time.Time) predicate.UserProfiles
- func DeletedAtNEQ(v time.Time) predicate.UserProfiles
- func DeletedAtNotIn(vs ...time.Time) predicate.UserProfiles
- func DeletedAtNotNil() predicate.UserProfiles
- func ID(id int) predicate.UserProfiles
- func IDEQ(id int) predicate.UserProfiles
- func IDGT(id int) predicate.UserProfiles
- func IDGTE(id int) predicate.UserProfiles
- func IDIn(ids ...int) predicate.UserProfiles
- func IDLT(id int) predicate.UserProfiles
- func IDLTE(id int) predicate.UserProfiles
- func IDNEQ(id int) predicate.UserProfiles
- func IDNotIn(ids ...int) predicate.UserProfiles
- func Not(p predicate.UserProfiles) predicate.UserProfiles
- func Or(predicates ...predicate.UserProfiles) predicate.UserProfiles
- func UpdatedAt(v time.Time) predicate.UserProfiles
- func UpdatedAtEQ(v time.Time) predicate.UserProfiles
- func UpdatedAtGT(v time.Time) predicate.UserProfiles
- func UpdatedAtGTE(v time.Time) predicate.UserProfiles
- func UpdatedAtIn(vs ...time.Time) predicate.UserProfiles
- func UpdatedAtLT(v time.Time) predicate.UserProfiles
- func UpdatedAtLTE(v time.Time) predicate.UserProfiles
- func UpdatedAtNEQ(v time.Time) predicate.UserProfiles
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserProfiles
- func UserID(v int) predicate.UserProfiles
- func UserIDEQ(v int) predicate.UserProfiles
- func UserIDGT(v int) predicate.UserProfiles
- func UserIDGTE(v int) predicate.UserProfiles
- func UserIDIn(vs ...int) predicate.UserProfiles
- func UserIDLT(v int) predicate.UserProfiles
- func UserIDLTE(v int) predicate.UserProfiles
- func UserIDNEQ(v int) predicate.UserProfiles
- func UserIDNotIn(vs ...int) predicate.UserProfiles
- func ValidColumn(column string) bool
- type OrderOption
- func ByAttrKey(opts ...sql.OrderTermOption) OrderOption
- func ByAttrValue(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the userprofiles type in the database. Label = "user_profiles" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldAttrKey holds the string denoting the attr_key field in the database. FieldAttrKey = "attr_key" // FieldAttrValue holds the string denoting the attr_value field in the database. FieldAttrValue = "attr_value" // Table holds the table name of the userprofiles in the database. Table = "lion_user_profiles" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // UserIDValidator is a validator for the "user_id" field. It is called by the builders before save. UserIDValidator func(int) error // AttrKeyValidator is a validator for the "attr_key" field. It is called by the builders before save. AttrKeyValidator func(string) error // AttrValueValidator is a validator for the "attr_value" field. It is called by the builders before save. AttrValueValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldUserID, FieldAttrKey, FieldAttrValue, }
Columns holds all SQL columns for userprofiles fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserProfiles) predicate.UserProfiles
And groups predicates with the AND operator between them.
func AttrKey ¶
func AttrKey(v string) predicate.UserProfiles
AttrKey applies equality check predicate on the "attr_key" field. It's identical to AttrKeyEQ.
func AttrKeyContains ¶
func AttrKeyContains(v string) predicate.UserProfiles
AttrKeyContains applies the Contains predicate on the "attr_key" field.
func AttrKeyContainsFold ¶
func AttrKeyContainsFold(v string) predicate.UserProfiles
AttrKeyContainsFold applies the ContainsFold predicate on the "attr_key" field.
func AttrKeyEQ ¶
func AttrKeyEQ(v string) predicate.UserProfiles
AttrKeyEQ applies the EQ predicate on the "attr_key" field.
func AttrKeyEqualFold ¶
func AttrKeyEqualFold(v string) predicate.UserProfiles
AttrKeyEqualFold applies the EqualFold predicate on the "attr_key" field.
func AttrKeyGT ¶
func AttrKeyGT(v string) predicate.UserProfiles
AttrKeyGT applies the GT predicate on the "attr_key" field.
func AttrKeyGTE ¶
func AttrKeyGTE(v string) predicate.UserProfiles
AttrKeyGTE applies the GTE predicate on the "attr_key" field.
func AttrKeyHasPrefix ¶
func AttrKeyHasPrefix(v string) predicate.UserProfiles
AttrKeyHasPrefix applies the HasPrefix predicate on the "attr_key" field.
func AttrKeyHasSuffix ¶
func AttrKeyHasSuffix(v string) predicate.UserProfiles
AttrKeyHasSuffix applies the HasSuffix predicate on the "attr_key" field.
func AttrKeyIn ¶
func AttrKeyIn(vs ...string) predicate.UserProfiles
AttrKeyIn applies the In predicate on the "attr_key" field.
func AttrKeyLT ¶
func AttrKeyLT(v string) predicate.UserProfiles
AttrKeyLT applies the LT predicate on the "attr_key" field.
func AttrKeyLTE ¶
func AttrKeyLTE(v string) predicate.UserProfiles
AttrKeyLTE applies the LTE predicate on the "attr_key" field.
func AttrKeyNEQ ¶
func AttrKeyNEQ(v string) predicate.UserProfiles
AttrKeyNEQ applies the NEQ predicate on the "attr_key" field.
func AttrKeyNotIn ¶
func AttrKeyNotIn(vs ...string) predicate.UserProfiles
AttrKeyNotIn applies the NotIn predicate on the "attr_key" field.
func AttrValue ¶
func AttrValue(v string) predicate.UserProfiles
AttrValue applies equality check predicate on the "attr_value" field. It's identical to AttrValueEQ.
func AttrValueContains ¶
func AttrValueContains(v string) predicate.UserProfiles
AttrValueContains applies the Contains predicate on the "attr_value" field.
func AttrValueContainsFold ¶
func AttrValueContainsFold(v string) predicate.UserProfiles
AttrValueContainsFold applies the ContainsFold predicate on the "attr_value" field.
func AttrValueEQ ¶
func AttrValueEQ(v string) predicate.UserProfiles
AttrValueEQ applies the EQ predicate on the "attr_value" field.
func AttrValueEqualFold ¶
func AttrValueEqualFold(v string) predicate.UserProfiles
AttrValueEqualFold applies the EqualFold predicate on the "attr_value" field.
func AttrValueGT ¶
func AttrValueGT(v string) predicate.UserProfiles
AttrValueGT applies the GT predicate on the "attr_value" field.
func AttrValueGTE ¶
func AttrValueGTE(v string) predicate.UserProfiles
AttrValueGTE applies the GTE predicate on the "attr_value" field.
func AttrValueHasPrefix ¶
func AttrValueHasPrefix(v string) predicate.UserProfiles
AttrValueHasPrefix applies the HasPrefix predicate on the "attr_value" field.
func AttrValueHasSuffix ¶
func AttrValueHasSuffix(v string) predicate.UserProfiles
AttrValueHasSuffix applies the HasSuffix predicate on the "attr_value" field.
func AttrValueIn ¶
func AttrValueIn(vs ...string) predicate.UserProfiles
AttrValueIn applies the In predicate on the "attr_value" field.
func AttrValueLT ¶
func AttrValueLT(v string) predicate.UserProfiles
AttrValueLT applies the LT predicate on the "attr_value" field.
func AttrValueLTE ¶
func AttrValueLTE(v string) predicate.UserProfiles
AttrValueLTE applies the LTE predicate on the "attr_value" field.
func AttrValueNEQ ¶
func AttrValueNEQ(v string) predicate.UserProfiles
AttrValueNEQ applies the NEQ predicate on the "attr_value" field.
func AttrValueNotIn ¶
func AttrValueNotIn(vs ...string) predicate.UserProfiles
AttrValueNotIn applies the NotIn predicate on the "attr_value" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserProfiles
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserProfiles
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserProfiles
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserProfiles
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserProfiles
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserProfiles
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserProfiles
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserProfiles
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserProfiles
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.UserProfiles
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.UserProfiles
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.UserProfiles
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.UserProfiles
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.UserProfiles
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.UserProfiles
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.UserProfiles
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.UserProfiles
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.UserProfiles
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.UserProfiles
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.UserProfiles
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func IDGTE ¶
func IDGTE(id int) predicate.UserProfiles
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserProfiles
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserProfiles
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserProfiles
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserProfiles
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserProfiles) predicate.UserProfiles
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserProfiles) predicate.UserProfiles
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserProfiles
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserProfiles
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserProfiles
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserProfiles
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserProfiles
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserProfiles
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserProfiles
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserProfiles
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserProfiles
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v int) predicate.UserProfiles
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.UserProfiles
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v int) predicate.UserProfiles
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v int) predicate.UserProfiles
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.UserProfiles
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v int) predicate.UserProfiles
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v int) predicate.UserProfiles
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.UserProfiles
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.UserProfiles
UserIDNotIn applies the NotIn predicate on the "user_id" 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 UserProfiles queries.
func ByAttrKey ¶
func ByAttrKey(opts ...sql.OrderTermOption) OrderOption
ByAttrKey orders the results by the attr_key field.
func ByAttrValue ¶
func ByAttrValue(opts ...sql.OrderTermOption) OrderOption
ByAttrValue orders the results by the attr_value field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.