Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SubscriptionUserSettings) predicate.SubscriptionUserSettings
- func AutoCommented(v bool) predicate.SubscriptionUserSettings
- func AutoCommentedEQ(v bool) predicate.SubscriptionUserSettings
- func AutoCommentedNEQ(v bool) predicate.SubscriptionUserSettings
- func AutoOwn(v bool) predicate.SubscriptionUserSettings
- func AutoOwnEQ(v bool) predicate.SubscriptionUserSettings
- func AutoOwnNEQ(v bool) predicate.SubscriptionUserSettings
- func HasUser() predicate.SubscriptionUserSettings
- func HasUserWith(preds ...predicate.User) predicate.SubscriptionUserSettings
- func ID(id int) predicate.SubscriptionUserSettings
- func IDEQ(id int) predicate.SubscriptionUserSettings
- func IDGT(id int) predicate.SubscriptionUserSettings
- func IDGTE(id int) predicate.SubscriptionUserSettings
- func IDIn(ids ...int) predicate.SubscriptionUserSettings
- func IDLT(id int) predicate.SubscriptionUserSettings
- func IDLTE(id int) predicate.SubscriptionUserSettings
- func IDNEQ(id int) predicate.SubscriptionUserSettings
- func IDNotIn(ids ...int) predicate.SubscriptionUserSettings
- func Mail(v string) predicate.SubscriptionUserSettings
- func MailContains(v string) predicate.SubscriptionUserSettings
- func MailContainsFold(v string) predicate.SubscriptionUserSettings
- func MailEQ(v string) predicate.SubscriptionUserSettings
- func MailEqualFold(v string) predicate.SubscriptionUserSettings
- func MailGT(v string) predicate.SubscriptionUserSettings
- func MailGTE(v string) predicate.SubscriptionUserSettings
- func MailHasPrefix(v string) predicate.SubscriptionUserSettings
- func MailHasSuffix(v string) predicate.SubscriptionUserSettings
- func MailIn(vs ...string) predicate.SubscriptionUserSettings
- func MailLT(v string) predicate.SubscriptionUserSettings
- func MailLTE(v string) predicate.SubscriptionUserSettings
- func MailNEQ(v string) predicate.SubscriptionUserSettings
- func MailNotIn(vs ...string) predicate.SubscriptionUserSettings
- func Not(p predicate.SubscriptionUserSettings) predicate.SubscriptionUserSettings
- func Or(predicates ...predicate.SubscriptionUserSettings) predicate.SubscriptionUserSettings
- func Replies(v bool) predicate.SubscriptionUserSettings
- func RepliesEQ(v bool) predicate.SubscriptionUserSettings
- func RepliesNEQ(v bool) predicate.SubscriptionUserSettings
- func UserID(v int) predicate.SubscriptionUserSettings
- func UserIDEQ(v int) predicate.SubscriptionUserSettings
- func UserIDIn(vs ...int) predicate.SubscriptionUserSettings
- func UserIDNEQ(v int) predicate.SubscriptionUserSettings
- func UserIDNotIn(vs ...int) predicate.SubscriptionUserSettings
- func ValidColumn(column string) bool
- type OrderOption
- func ByAutoCommented(opts ...sql.OrderTermOption) OrderOption
- func ByAutoOwn(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMail(opts ...sql.OrderTermOption) OrderOption
- func ByReplies(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the subscriptionusersettings type in the database. Label = "subscription_user_settings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldMail holds the string denoting the mail field in the database. FieldMail = "mail" // FieldReplies holds the string denoting the replies field in the database. FieldReplies = "replies" // FieldAutoOwn holds the string denoting the auto_own field in the database. FieldAutoOwn = "auto_own" // FieldAutoCommented holds the string denoting the auto_commented field in the database. FieldAutoCommented = "auto_commented" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the subscriptionusersettings in the database. Table = "subscription_user_settings" // UserTable is the table that holds the user relation/edge. UserTable = "subscription_user_settings" // 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 ( // DefaultMail holds the default value on creation for the "mail" field. DefaultMail string // MailValidator is a validator for the "mail" field. It is called by the builders before save. MailValidator func(string) error // DefaultReplies holds the default value on creation for the "replies" field. DefaultReplies bool // DefaultAutoOwn holds the default value on creation for the "auto_own" field. DefaultAutoOwn bool // DefaultAutoCommented holds the default value on creation for the "auto_commented" field. DefaultAutoCommented bool )
var Columns = []string{ FieldID, FieldUserID, FieldMail, FieldReplies, FieldAutoOwn, FieldAutoCommented, }
Columns holds all SQL columns for subscriptionusersettings fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SubscriptionUserSettings) predicate.SubscriptionUserSettings
And groups predicates with the AND operator between them.
func AutoCommented ¶
func AutoCommented(v bool) predicate.SubscriptionUserSettings
AutoCommented applies equality check predicate on the "auto_commented" field. It's identical to AutoCommentedEQ.
func AutoCommentedEQ ¶
func AutoCommentedEQ(v bool) predicate.SubscriptionUserSettings
AutoCommentedEQ applies the EQ predicate on the "auto_commented" field.
func AutoCommentedNEQ ¶
func AutoCommentedNEQ(v bool) predicate.SubscriptionUserSettings
AutoCommentedNEQ applies the NEQ predicate on the "auto_commented" field.
func AutoOwn ¶
func AutoOwn(v bool) predicate.SubscriptionUserSettings
AutoOwn applies equality check predicate on the "auto_own" field. It's identical to AutoOwnEQ.
func AutoOwnEQ ¶
func AutoOwnEQ(v bool) predicate.SubscriptionUserSettings
AutoOwnEQ applies the EQ predicate on the "auto_own" field.
func AutoOwnNEQ ¶
func AutoOwnNEQ(v bool) predicate.SubscriptionUserSettings
AutoOwnNEQ applies the NEQ predicate on the "auto_own" field.
func HasUser ¶
func HasUser() predicate.SubscriptionUserSettings
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.SubscriptionUserSettings
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.SubscriptionUserSettings
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.SubscriptionUserSettings
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.SubscriptionUserSettings
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.SubscriptionUserSettings
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SubscriptionUserSettings
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.SubscriptionUserSettings
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SubscriptionUserSettings
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SubscriptionUserSettings
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SubscriptionUserSettings
IDNotIn applies the NotIn predicate on the ID field.
func Mail ¶
func Mail(v string) predicate.SubscriptionUserSettings
Mail applies equality check predicate on the "mail" field. It's identical to MailEQ.
func MailContains ¶
func MailContains(v string) predicate.SubscriptionUserSettings
MailContains applies the Contains predicate on the "mail" field.
func MailContainsFold ¶
func MailContainsFold(v string) predicate.SubscriptionUserSettings
MailContainsFold applies the ContainsFold predicate on the "mail" field.
func MailEQ ¶
func MailEQ(v string) predicate.SubscriptionUserSettings
MailEQ applies the EQ predicate on the "mail" field.
func MailEqualFold ¶
func MailEqualFold(v string) predicate.SubscriptionUserSettings
MailEqualFold applies the EqualFold predicate on the "mail" field.
func MailGT ¶
func MailGT(v string) predicate.SubscriptionUserSettings
MailGT applies the GT predicate on the "mail" field.
func MailGTE ¶
func MailGTE(v string) predicate.SubscriptionUserSettings
MailGTE applies the GTE predicate on the "mail" field.
func MailHasPrefix ¶
func MailHasPrefix(v string) predicate.SubscriptionUserSettings
MailHasPrefix applies the HasPrefix predicate on the "mail" field.
func MailHasSuffix ¶
func MailHasSuffix(v string) predicate.SubscriptionUserSettings
MailHasSuffix applies the HasSuffix predicate on the "mail" field.
func MailIn ¶
func MailIn(vs ...string) predicate.SubscriptionUserSettings
MailIn applies the In predicate on the "mail" field.
func MailLT ¶
func MailLT(v string) predicate.SubscriptionUserSettings
MailLT applies the LT predicate on the "mail" field.
func MailLTE ¶
func MailLTE(v string) predicate.SubscriptionUserSettings
MailLTE applies the LTE predicate on the "mail" field.
func MailNEQ ¶
func MailNEQ(v string) predicate.SubscriptionUserSettings
MailNEQ applies the NEQ predicate on the "mail" field.
func MailNotIn ¶
func MailNotIn(vs ...string) predicate.SubscriptionUserSettings
MailNotIn applies the NotIn predicate on the "mail" field.
func Or ¶
func Or(predicates ...predicate.SubscriptionUserSettings) predicate.SubscriptionUserSettings
Or groups predicates with the OR operator between them.
func Replies ¶
func Replies(v bool) predicate.SubscriptionUserSettings
Replies applies equality check predicate on the "replies" field. It's identical to RepliesEQ.
func RepliesEQ ¶
func RepliesEQ(v bool) predicate.SubscriptionUserSettings
RepliesEQ applies the EQ predicate on the "replies" field.
func RepliesNEQ ¶
func RepliesNEQ(v bool) predicate.SubscriptionUserSettings
RepliesNEQ applies the NEQ predicate on the "replies" field.
func UserID ¶
func UserID(v int) predicate.SubscriptionUserSettings
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.SubscriptionUserSettings
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.SubscriptionUserSettings
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.SubscriptionUserSettings
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.SubscriptionUserSettings
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 SubscriptionUserSettings queries.
func ByAutoCommented ¶
func ByAutoCommented(opts ...sql.OrderTermOption) OrderOption
ByAutoCommented orders the results by the auto_commented field.
func ByAutoOwn ¶
func ByAutoOwn(opts ...sql.OrderTermOption) OrderOption
ByAutoOwn orders the results by the auto_own field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMail ¶
func ByMail(opts ...sql.OrderTermOption) OrderOption
ByMail orders the results by the mail field.
func ByReplies ¶
func ByReplies(opts ...sql.OrderTermOption) OrderOption
ByReplies orders the results by the replies field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.