subscriptionusersettings

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for subscriptionusersettings fields.

Functions

func And

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

AutoOwn applies equality check predicate on the "auto_own" field. It's identical to AutoOwnEQ.

func AutoOwnEQ

AutoOwnEQ applies the EQ predicate on the "auto_own" field.

func AutoOwnNEQ

AutoOwnNEQ applies the NEQ predicate on the "auto_own" field.

func HasUser

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

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Mail applies equality check predicate on the "mail" field. It's identical to MailEQ.

func MailContains

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

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

MailGT applies the GT predicate on the "mail" field.

func MailGTE

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

MailIn applies the In predicate on the "mail" field.

func MailLT

MailLT applies the LT predicate on the "mail" field.

func MailLTE

MailLTE applies the LTE predicate on the "mail" field.

func MailNEQ

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 Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Replies

Replies applies equality check predicate on the "replies" field. It's identical to RepliesEQ.

func RepliesEQ

RepliesEQ applies the EQ predicate on the "replies" field.

func RepliesNEQ

RepliesNEQ applies the NEQ predicate on the "replies" field.

func UserID

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL