Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasBirthday() predicate.User
- func HasBirthdayWith(preds ...predicate.Birthday) predicate.User
- func HasShitposts() predicate.User
- func HasShitpostsWith(preds ...predicate.Shitpost) predicate.User
- func HasSignins() predicate.User
- func HasSigninsWith(preds ...predicate.Signin) predicate.User
- func HasVotes() predicate.User
- func HasVotesWith(preds ...predicate.Vote) predicate.User
- func ID(id string) predicate.User
- func IDContainsFold(id string) predicate.User
- func IDEQ(id string) predicate.User
- func IDEqualFold(id string) predicate.User
- func IDGT(id string) predicate.User
- func IDGTE(id string) predicate.User
- func IDIn(ids ...string) predicate.User
- func IDLT(id string) predicate.User
- func IDLTE(id string) predicate.User
- func IDNEQ(id string) predicate.User
- func IDNotIn(ids ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- func VerificationAttempts(v int8) predicate.User
- func VerificationAttemptsEQ(v int8) predicate.User
- func VerificationAttemptsGT(v int8) predicate.User
- func VerificationAttemptsGTE(v int8) predicate.User
- func VerificationAttemptsIn(vs ...int8) predicate.User
- func VerificationAttemptsLT(v int8) predicate.User
- func VerificationAttemptsLTE(v int8) predicate.User
- func VerificationAttemptsNEQ(v int8) predicate.User
- func VerificationAttemptsNotIn(vs ...int8) predicate.User
- func Verified(v bool) predicate.User
- func VerifiedEQ(v bool) predicate.User
- func VerifiedNEQ(v bool) predicate.User
- type OrderOption
- func ByBirthdayField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByShitposts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByShitpostsCount(opts ...sql.OrderTermOption) OrderOption
- func BySignins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySigninsCount(opts ...sql.OrderTermOption) OrderOption
- func ByVerificationAttempts(opts ...sql.OrderTermOption) OrderOption
- func ByVerified(opts ...sql.OrderTermOption) OrderOption
- func ByVotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVotesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldVerificationAttempts holds the string denoting the verification_attempts field in the database. FieldVerificationAttempts = "verification_attempts" // FieldVerified holds the string denoting the verified field in the database. FieldVerified = "verified" // EdgeSignins holds the string denoting the signins edge name in mutations. EdgeSignins = "signins" // EdgeVotes holds the string denoting the votes edge name in mutations. EdgeVotes = "votes" // EdgeShitposts holds the string denoting the shitposts edge name in mutations. EdgeShitposts = "shitposts" // EdgeBirthday holds the string denoting the birthday edge name in mutations. EdgeBirthday = "birthday" // Table holds the table name of the user in the database. Table = "users" // SigninsTable is the table that holds the signins relation/edge. SigninsTable = "signins" // SigninsInverseTable is the table name for the Signin entity. // It exists in this package in order to avoid circular dependency with the "signin" package. SigninsInverseTable = "signins" // SigninsColumn is the table column denoting the signins relation/edge. SigninsColumn = "user_signins" // VotesTable is the table that holds the votes relation/edge. VotesTable = "votes" // VotesInverseTable is the table name for the Vote entity. // It exists in this package in order to avoid circular dependency with the "vote" package. VotesInverseTable = "votes" // VotesColumn is the table column denoting the votes relation/edge. VotesColumn = "user_votes" // ShitpostsTable is the table that holds the shitposts relation/edge. ShitpostsTable = "shitposts" // ShitpostsInverseTable is the table name for the Shitpost entity. // It exists in this package in order to avoid circular dependency with the "shitpost" package. ShitpostsInverseTable = "shitposts" // ShitpostsColumn is the table column denoting the shitposts relation/edge. ShitpostsColumn = "user_shitposts" // BirthdayTable is the table that holds the birthday relation/edge. BirthdayTable = "birthdays" // BirthdayInverseTable is the table name for the Birthday entity. // It exists in this package in order to avoid circular dependency with the "birthday" package. BirthdayInverseTable = "birthdays" // BirthdayColumn is the table column denoting the birthday relation/edge. BirthdayColumn = "user_birthday" )
Variables ¶
var ( // DefaultEmail holds the default value on creation for the "email" field. DefaultEmail string // DefaultVerificationAttempts holds the default value on creation for the "verification_attempts" field. DefaultVerificationAttempts int8 // VerificationAttemptsValidator is a validator for the "verification_attempts" field. It is called by the builders before save. VerificationAttemptsValidator func(int8) error // DefaultVerified holds the default value on creation for the "verified" field. DefaultVerified bool // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldEmail, FieldVerificationAttempts, FieldVerified, }
Columns holds all SQL columns for user fields.
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasBirthday ¶
HasBirthday applies the HasEdge predicate on the "birthday" edge.
func HasBirthdayWith ¶
HasBirthdayWith applies the HasEdge predicate on the "birthday" edge with a given conditions (other predicates).
func HasShitposts ¶
HasShitposts applies the HasEdge predicate on the "shitposts" edge.
func HasShitpostsWith ¶
HasShitpostsWith applies the HasEdge predicate on the "shitposts" edge with a given conditions (other predicates).
func HasSignins ¶
HasSignins applies the HasEdge predicate on the "signins" edge.
func HasSigninsWith ¶
HasSigninsWith applies the HasEdge predicate on the "signins" edge with a given conditions (other predicates).
func HasVotesWith ¶
HasVotesWith applies the HasEdge predicate on the "votes" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerificationAttempts ¶
VerificationAttempts applies equality check predicate on the "verification_attempts" field. It's identical to VerificationAttemptsEQ.
func VerificationAttemptsEQ ¶
VerificationAttemptsEQ applies the EQ predicate on the "verification_attempts" field.
func VerificationAttemptsGT ¶
VerificationAttemptsGT applies the GT predicate on the "verification_attempts" field.
func VerificationAttemptsGTE ¶
VerificationAttemptsGTE applies the GTE predicate on the "verification_attempts" field.
func VerificationAttemptsIn ¶
VerificationAttemptsIn applies the In predicate on the "verification_attempts" field.
func VerificationAttemptsLT ¶
VerificationAttemptsLT applies the LT predicate on the "verification_attempts" field.
func VerificationAttemptsLTE ¶
VerificationAttemptsLTE applies the LTE predicate on the "verification_attempts" field.
func VerificationAttemptsNEQ ¶
VerificationAttemptsNEQ applies the NEQ predicate on the "verification_attempts" field.
func VerificationAttemptsNotIn ¶
VerificationAttemptsNotIn applies the NotIn predicate on the "verification_attempts" field.
func Verified ¶
Verified applies equality check predicate on the "verified" field. It's identical to VerifiedEQ.
func VerifiedEQ ¶
VerifiedEQ applies the EQ predicate on the "verified" field.
func VerifiedNEQ ¶
VerifiedNEQ applies the NEQ predicate on the "verified" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByBirthdayField ¶
func ByBirthdayField(field string, opts ...sql.OrderTermOption) OrderOption
ByBirthdayField orders the results by birthday field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByShitposts ¶
func ByShitposts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByShitposts orders the results by shitposts terms.
func ByShitpostsCount ¶
func ByShitpostsCount(opts ...sql.OrderTermOption) OrderOption
ByShitpostsCount orders the results by shitposts count.
func BySignins ¶
func BySignins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySignins orders the results by signins terms.
func BySigninsCount ¶
func BySigninsCount(opts ...sql.OrderTermOption) OrderOption
BySigninsCount orders the results by signins count.
func ByVerificationAttempts ¶
func ByVerificationAttempts(opts ...sql.OrderTermOption) OrderOption
ByVerificationAttempts orders the results by the verification_attempts field.
func ByVerified ¶
func ByVerified(opts ...sql.OrderTermOption) OrderOption
ByVerified orders the results by the verified field.
func ByVotes ¶
func ByVotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVotes orders the results by votes terms.
func ByVotesCount ¶
func ByVotesCount(opts ...sql.OrderTermOption) OrderOption
ByVotesCount orders the results by votes count.