Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserSetting) predicate.UserSetting
- func Expires(v time.Time) predicate.UserSetting
- func ExpiresEQ(v time.Time) predicate.UserSetting
- func ExpiresGT(v time.Time) predicate.UserSetting
- func ExpiresGTE(v time.Time) predicate.UserSetting
- func ExpiresIn(vs ...time.Time) predicate.UserSetting
- func ExpiresIsNil() predicate.UserSetting
- func ExpiresLT(v time.Time) predicate.UserSetting
- func ExpiresLTE(v time.Time) predicate.UserSetting
- func ExpiresNEQ(v time.Time) predicate.UserSetting
- func ExpiresNotIn(vs ...time.Time) predicate.UserSetting
- func ExpiresNotNil() predicate.UserSetting
- func HasSettingsOwner() predicate.UserSetting
- func HasSettingsOwnerWith(preds ...predicate.User) predicate.UserSetting
- func ID(id int) predicate.UserSetting
- func IDEQ(id int) predicate.UserSetting
- func IDGT(id int) predicate.UserSetting
- func IDGTE(id int) predicate.UserSetting
- func IDIn(ids ...int) predicate.UserSetting
- func IDLT(id int) predicate.UserSetting
- func IDLTE(id int) predicate.UserSetting
- func IDNEQ(id int) predicate.UserSetting
- func IDNotIn(ids ...int) predicate.UserSetting
- func Key(v string) predicate.UserSetting
- func KeyContains(v string) predicate.UserSetting
- func KeyContainsFold(v string) predicate.UserSetting
- func KeyEQ(v string) predicate.UserSetting
- func KeyEqualFold(v string) predicate.UserSetting
- func KeyGT(v string) predicate.UserSetting
- func KeyGTE(v string) predicate.UserSetting
- func KeyHasPrefix(v string) predicate.UserSetting
- func KeyHasSuffix(v string) predicate.UserSetting
- func KeyIn(vs ...string) predicate.UserSetting
- func KeyLT(v string) predicate.UserSetting
- func KeyLTE(v string) predicate.UserSetting
- func KeyNEQ(v string) predicate.UserSetting
- func KeyNotIn(vs ...string) predicate.UserSetting
- func Not(p predicate.UserSetting) predicate.UserSetting
- func Or(predicates ...predicate.UserSetting) predicate.UserSetting
- func OwnerID(v int) predicate.UserSetting
- func OwnerIDEQ(v int) predicate.UserSetting
- func OwnerIDIn(vs ...int) predicate.UserSetting
- func OwnerIDNEQ(v int) predicate.UserSetting
- func OwnerIDNotIn(vs ...int) predicate.UserSetting
- func TypeofEQ(v Typeof) predicate.UserSetting
- func TypeofIn(vs ...Typeof) predicate.UserSetting
- func TypeofNEQ(v Typeof) predicate.UserSetting
- func TypeofNotIn(vs ...Typeof) predicate.UserSetting
- func TypeofValidator(t Typeof) error
- func UpdateTime(v time.Time) predicate.UserSetting
- func UpdateTimeEQ(v time.Time) predicate.UserSetting
- func UpdateTimeGT(v time.Time) predicate.UserSetting
- func UpdateTimeGTE(v time.Time) predicate.UserSetting
- func UpdateTimeIn(vs ...time.Time) predicate.UserSetting
- func UpdateTimeLT(v time.Time) predicate.UserSetting
- func UpdateTimeLTE(v time.Time) predicate.UserSetting
- func UpdateTimeNEQ(v time.Time) predicate.UserSetting
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserSetting
- func ValidColumn(column string) bool
- func Value(v string) predicate.UserSetting
- func ValueContains(v string) predicate.UserSetting
- func ValueContainsFold(v string) predicate.UserSetting
- func ValueEQ(v string) predicate.UserSetting
- func ValueEqualFold(v string) predicate.UserSetting
- func ValueGT(v string) predicate.UserSetting
- func ValueGTE(v string) predicate.UserSetting
- func ValueHasPrefix(v string) predicate.UserSetting
- func ValueHasSuffix(v string) predicate.UserSetting
- func ValueIn(vs ...string) predicate.UserSetting
- func ValueIsNil() predicate.UserSetting
- func ValueLT(v string) predicate.UserSetting
- func ValueLTE(v string) predicate.UserSetting
- func ValueNEQ(v string) predicate.UserSetting
- func ValueNotIn(vs ...string) predicate.UserSetting
- func ValueNotNil() predicate.UserSetting
- type Typeof
Constants ¶
const ( // Label holds the string label denoting the usersetting type in the database. Label = "user_setting" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldTypeof holds the string denoting the typeof field in the database. FieldTypeof = "typeof" // FieldExpires holds the string denoting the expires field in the database. FieldExpires = "expires" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // EdgeSettingsOwner holds the string denoting the settings_owner edge name in mutations. EdgeSettingsOwner = "settings_owner" // Table holds the table name of the usersetting in the database. Table = "user_setting" // SettingsOwnerTable is the table the holds the settings_owner relation/edge. SettingsOwnerTable = "user_setting" // SettingsOwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. SettingsOwnerInverseTable = "user_profile" // SettingsOwnerColumn is the table column denoting the settings_owner relation/edge. SettingsOwnerColumn = "owner_id" )
const DefaultTypeof = TypeofSTRING
TypeofSTRING is the default value of the Typeof enum.
Variables ¶
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // DefaultValue holds the default value on creation for the "value" field. DefaultValue string // 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, FieldOwnerID, FieldKey, FieldValue, FieldTypeof, FieldExpires, FieldUpdateTime, }
Columns holds all SQL columns for usersetting fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserSetting) predicate.UserSetting
And groups predicates with the AND operator between them.
func Expires ¶
func Expires(v time.Time) predicate.UserSetting
Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ.
func ExpiresEQ ¶
func ExpiresEQ(v time.Time) predicate.UserSetting
ExpiresEQ applies the EQ predicate on the "expires" field.
func ExpiresGT ¶
func ExpiresGT(v time.Time) predicate.UserSetting
ExpiresGT applies the GT predicate on the "expires" field.
func ExpiresGTE ¶
func ExpiresGTE(v time.Time) predicate.UserSetting
ExpiresGTE applies the GTE predicate on the "expires" field.
func ExpiresIn ¶
func ExpiresIn(vs ...time.Time) predicate.UserSetting
ExpiresIn applies the In predicate on the "expires" field.
func ExpiresIsNil ¶
func ExpiresIsNil() predicate.UserSetting
ExpiresIsNil applies the IsNil predicate on the "expires" field.
func ExpiresLT ¶
func ExpiresLT(v time.Time) predicate.UserSetting
ExpiresLT applies the LT predicate on the "expires" field.
func ExpiresLTE ¶
func ExpiresLTE(v time.Time) predicate.UserSetting
ExpiresLTE applies the LTE predicate on the "expires" field.
func ExpiresNEQ ¶
func ExpiresNEQ(v time.Time) predicate.UserSetting
ExpiresNEQ applies the NEQ predicate on the "expires" field.
func ExpiresNotIn ¶
func ExpiresNotIn(vs ...time.Time) predicate.UserSetting
ExpiresNotIn applies the NotIn predicate on the "expires" field.
func ExpiresNotNil ¶
func ExpiresNotNil() predicate.UserSetting
ExpiresNotNil applies the NotNil predicate on the "expires" field.
func HasSettingsOwner ¶
func HasSettingsOwner() predicate.UserSetting
HasSettingsOwner applies the HasEdge predicate on the "settings_owner" edge.
func HasSettingsOwnerWith ¶
func HasSettingsOwnerWith(preds ...predicate.User) predicate.UserSetting
HasSettingsOwnerWith applies the HasEdge predicate on the "settings_owner" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserSetting
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserSetting
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserSetting
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserSetting
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserSetting
IDNotIn applies the NotIn predicate on the ID field.
func Key ¶
func Key(v string) predicate.UserSetting
Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
func KeyContains ¶
func KeyContains(v string) predicate.UserSetting
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
func KeyContainsFold(v string) predicate.UserSetting
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEQ ¶
func KeyEQ(v string) predicate.UserSetting
KeyEQ applies the EQ predicate on the "key" field.
func KeyEqualFold ¶
func KeyEqualFold(v string) predicate.UserSetting
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyGT ¶
func KeyGT(v string) predicate.UserSetting
KeyGT applies the GT predicate on the "key" field.
func KeyGTE ¶
func KeyGTE(v string) predicate.UserSetting
KeyGTE applies the GTE predicate on the "key" field.
func KeyHasPrefix ¶
func KeyHasPrefix(v string) predicate.UserSetting
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
func KeyHasSuffix(v string) predicate.UserSetting
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func KeyIn ¶
func KeyIn(vs ...string) predicate.UserSetting
KeyIn applies the In predicate on the "key" field.
func KeyLT ¶
func KeyLT(v string) predicate.UserSetting
KeyLT applies the LT predicate on the "key" field.
func KeyLTE ¶
func KeyLTE(v string) predicate.UserSetting
KeyLTE applies the LTE predicate on the "key" field.
func KeyNEQ ¶
func KeyNEQ(v string) predicate.UserSetting
KeyNEQ applies the NEQ predicate on the "key" field.
func KeyNotIn ¶
func KeyNotIn(vs ...string) predicate.UserSetting
KeyNotIn applies the NotIn predicate on the "key" field.
func Not ¶
func Not(p predicate.UserSetting) predicate.UserSetting
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserSetting) predicate.UserSetting
Or groups predicates with the OR operator between them.
func OwnerID ¶
func OwnerID(v int) predicate.UserSetting
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDEQ ¶
func OwnerIDEQ(v int) predicate.UserSetting
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDIn ¶
func OwnerIDIn(vs ...int) predicate.UserSetting
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDNEQ ¶
func OwnerIDNEQ(v int) predicate.UserSetting
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
func OwnerIDNotIn(vs ...int) predicate.UserSetting
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func TypeofEQ ¶
func TypeofEQ(v Typeof) predicate.UserSetting
TypeofEQ applies the EQ predicate on the "typeof" field.
func TypeofIn ¶
func TypeofIn(vs ...Typeof) predicate.UserSetting
TypeofIn applies the In predicate on the "typeof" field.
func TypeofNEQ ¶
func TypeofNEQ(v Typeof) predicate.UserSetting
TypeofNEQ applies the NEQ predicate on the "typeof" field.
func TypeofNotIn ¶
func TypeofNotIn(vs ...Typeof) predicate.UserSetting
TypeofNotIn applies the NotIn predicate on the "typeof" field.
func TypeofValidator ¶
TypeofValidator is a validator for the "typeof" field enum values. It is called by the builders before save.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.UserSetting
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.UserSetting
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.UserSetting
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.UserSetting
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.UserSetting
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.UserSetting
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.UserSetting
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.UserSetting
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.UserSetting
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).
func Value ¶
func Value(v string) predicate.UserSetting
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
func ValueContains(v string) predicate.UserSetting
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
func ValueContainsFold(v string) predicate.UserSetting
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEQ ¶
func ValueEQ(v string) predicate.UserSetting
ValueEQ applies the EQ predicate on the "value" field.
func ValueEqualFold ¶
func ValueEqualFold(v string) predicate.UserSetting
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueGT ¶
func ValueGT(v string) predicate.UserSetting
ValueGT applies the GT predicate on the "value" field.
func ValueGTE ¶
func ValueGTE(v string) predicate.UserSetting
ValueGTE applies the GTE predicate on the "value" field.
func ValueHasPrefix ¶
func ValueHasPrefix(v string) predicate.UserSetting
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
func ValueHasSuffix(v string) predicate.UserSetting
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...string) predicate.UserSetting
ValueIn applies the In predicate on the "value" field.
func ValueIsNil ¶
func ValueIsNil() predicate.UserSetting
ValueIsNil applies the IsNil predicate on the "value" field.
func ValueLT ¶
func ValueLT(v string) predicate.UserSetting
ValueLT applies the LT predicate on the "value" field.
func ValueLTE ¶
func ValueLTE(v string) predicate.UserSetting
ValueLTE applies the LTE predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v string) predicate.UserSetting
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...string) predicate.UserSetting
ValueNotIn applies the NotIn predicate on the "value" field.
func ValueNotNil ¶
func ValueNotNil() predicate.UserSetting
ValueNotNil applies the NotNil predicate on the "value" field.