Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserMembership) predicate.UserMembership
- func FailCount(v int) predicate.UserMembership
- func FailCountEQ(v int) predicate.UserMembership
- func FailCountGT(v int) predicate.UserMembership
- func FailCountGTE(v int) predicate.UserMembership
- func FailCountIn(vs ...int) predicate.UserMembership
- func FailCountLT(v int) predicate.UserMembership
- func FailCountLTE(v int) predicate.UserMembership
- func FailCountNEQ(v int) predicate.UserMembership
- func FailCountNotIn(vs ...int) predicate.UserMembership
- func FirstFailed(v time.Time) predicate.UserMembership
- func FirstFailedEQ(v time.Time) predicate.UserMembership
- func FirstFailedGT(v time.Time) predicate.UserMembership
- func FirstFailedGTE(v time.Time) predicate.UserMembership
- func FirstFailedIn(vs ...time.Time) predicate.UserMembership
- func FirstFailedIsNil() predicate.UserMembership
- func FirstFailedLT(v time.Time) predicate.UserMembership
- func FirstFailedLTE(v time.Time) predicate.UserMembership
- func FirstFailedNEQ(v time.Time) predicate.UserMembership
- func FirstFailedNotIn(vs ...time.Time) predicate.UserMembership
- func FirstFailedNotNil() predicate.UserMembership
- func HasRoles() predicate.UserMembership
- func HasRolesWith(preds ...predicate.GuildRole) predicate.UserMembership
- func HasUser() predicate.UserMembership
- func HasUserWith(preds ...predicate.User) predicate.UserMembership
- func HasYoutubeTalent() predicate.UserMembership
- func HasYoutubeTalentWith(preds ...predicate.YouTubeTalent) predicate.UserMembership
- func ID(id int) predicate.UserMembership
- func IDEQ(id int) predicate.UserMembership
- func IDGT(id int) predicate.UserMembership
- func IDGTE(id int) predicate.UserMembership
- func IDIn(ids ...int) predicate.UserMembership
- func IDLT(id int) predicate.UserMembership
- func IDLTE(id int) predicate.UserMembership
- func IDNEQ(id int) predicate.UserMembership
- func IDNotIn(ids ...int) predicate.UserMembership
- func LastVerified(v time.Time) predicate.UserMembership
- func LastVerifiedEQ(v time.Time) predicate.UserMembership
- func LastVerifiedGT(v time.Time) predicate.UserMembership
- func LastVerifiedGTE(v time.Time) predicate.UserMembership
- func LastVerifiedIn(vs ...time.Time) predicate.UserMembership
- func LastVerifiedLT(v time.Time) predicate.UserMembership
- func LastVerifiedLTE(v time.Time) predicate.UserMembership
- func LastVerifiedNEQ(v time.Time) predicate.UserMembership
- func LastVerifiedNotIn(vs ...time.Time) predicate.UserMembership
- func Not(p predicate.UserMembership) predicate.UserMembership
- func Or(predicates ...predicate.UserMembership) predicate.UserMembership
- func ValidColumn(column string) bool
- type OrderOption
- func ByFailCount(opts ...sql.OrderTermOption) OrderOption
- func ByFirstFailed(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastVerified(opts ...sql.OrderTermOption) OrderOption
- func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByYoutubeTalentField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the usermembership type in the database. Label = "user_membership" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFirstFailed holds the string denoting the first_failed field in the database. FieldFirstFailed = "first_failed" // FieldLastVerified holds the string denoting the last_verified field in the database. FieldLastVerified = "last_verified" // FieldFailCount holds the string denoting the fail_count field in the database. FieldFailCount = "fail_count" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeYoutubeTalent holds the string denoting the youtube_talent edge name in mutations. EdgeYoutubeTalent = "youtube_talent" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // Table holds the table name of the usermembership in the database. Table = "user_memberships" // UserTable is the table that holds the user relation/edge. UserTable = "user_memberships" // 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_memberships" // YoutubeTalentTable is the table that holds the youtube_talent relation/edge. YoutubeTalentTable = "user_memberships" // YoutubeTalentInverseTable is the table name for the YouTubeTalent entity. // It exists in this package in order to avoid circular dependency with the "youtubetalent" package. YoutubeTalentInverseTable = "you_tube_talents" // YoutubeTalentColumn is the table column denoting the youtube_talent relation/edge. YoutubeTalentColumn = "user_membership_youtube_talent" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "user_membership_roles" // RolesInverseTable is the table name for the GuildRole entity. // It exists in this package in order to avoid circular dependency with the "guildrole" package. RolesInverseTable = "guild_roles" )
Variables ¶
var Columns = []string{ FieldID, FieldFirstFailed, FieldLastVerified, FieldFailCount, }
Columns holds all SQL columns for usermembership fields.
var ( // DefaultFailCount holds the default value on creation for the "fail_count" field. DefaultFailCount int )
var ForeignKeys = []string{
"user_memberships",
"user_membership_youtube_talent",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_memberships" table and are not defined as standalone fields in the schema.
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"user_membership_id", "guild_role_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.UserMembership) predicate.UserMembership
And groups predicates with the AND operator between them.
func FailCount ¶
func FailCount(v int) predicate.UserMembership
FailCount applies equality check predicate on the "fail_count" field. It's identical to FailCountEQ.
func FailCountEQ ¶
func FailCountEQ(v int) predicate.UserMembership
FailCountEQ applies the EQ predicate on the "fail_count" field.
func FailCountGT ¶
func FailCountGT(v int) predicate.UserMembership
FailCountGT applies the GT predicate on the "fail_count" field.
func FailCountGTE ¶
func FailCountGTE(v int) predicate.UserMembership
FailCountGTE applies the GTE predicate on the "fail_count" field.
func FailCountIn ¶
func FailCountIn(vs ...int) predicate.UserMembership
FailCountIn applies the In predicate on the "fail_count" field.
func FailCountLT ¶
func FailCountLT(v int) predicate.UserMembership
FailCountLT applies the LT predicate on the "fail_count" field.
func FailCountLTE ¶
func FailCountLTE(v int) predicate.UserMembership
FailCountLTE applies the LTE predicate on the "fail_count" field.
func FailCountNEQ ¶
func FailCountNEQ(v int) predicate.UserMembership
FailCountNEQ applies the NEQ predicate on the "fail_count" field.
func FailCountNotIn ¶
func FailCountNotIn(vs ...int) predicate.UserMembership
FailCountNotIn applies the NotIn predicate on the "fail_count" field.
func FirstFailed ¶
func FirstFailed(v time.Time) predicate.UserMembership
FirstFailed applies equality check predicate on the "first_failed" field. It's identical to FirstFailedEQ.
func FirstFailedEQ ¶
func FirstFailedEQ(v time.Time) predicate.UserMembership
FirstFailedEQ applies the EQ predicate on the "first_failed" field.
func FirstFailedGT ¶
func FirstFailedGT(v time.Time) predicate.UserMembership
FirstFailedGT applies the GT predicate on the "first_failed" field.
func FirstFailedGTE ¶
func FirstFailedGTE(v time.Time) predicate.UserMembership
FirstFailedGTE applies the GTE predicate on the "first_failed" field.
func FirstFailedIn ¶
func FirstFailedIn(vs ...time.Time) predicate.UserMembership
FirstFailedIn applies the In predicate on the "first_failed" field.
func FirstFailedIsNil ¶
func FirstFailedIsNil() predicate.UserMembership
FirstFailedIsNil applies the IsNil predicate on the "first_failed" field.
func FirstFailedLT ¶
func FirstFailedLT(v time.Time) predicate.UserMembership
FirstFailedLT applies the LT predicate on the "first_failed" field.
func FirstFailedLTE ¶
func FirstFailedLTE(v time.Time) predicate.UserMembership
FirstFailedLTE applies the LTE predicate on the "first_failed" field.
func FirstFailedNEQ ¶
func FirstFailedNEQ(v time.Time) predicate.UserMembership
FirstFailedNEQ applies the NEQ predicate on the "first_failed" field.
func FirstFailedNotIn ¶
func FirstFailedNotIn(vs ...time.Time) predicate.UserMembership
FirstFailedNotIn applies the NotIn predicate on the "first_failed" field.
func FirstFailedNotNil ¶
func FirstFailedNotNil() predicate.UserMembership
FirstFailedNotNil applies the NotNil predicate on the "first_failed" field.
func HasRoles ¶
func HasRoles() predicate.UserMembership
HasRoles applies the HasEdge predicate on the "roles" edge.
func HasRolesWith ¶
func HasRolesWith(preds ...predicate.GuildRole) predicate.UserMembership
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.UserMembership
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserMembership
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasYoutubeTalent ¶
func HasYoutubeTalent() predicate.UserMembership
HasYoutubeTalent applies the HasEdge predicate on the "youtube_talent" edge.
func HasYoutubeTalentWith ¶
func HasYoutubeTalentWith(preds ...predicate.YouTubeTalent) predicate.UserMembership
HasYoutubeTalentWith applies the HasEdge predicate on the "youtube_talent" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.UserMembership
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.UserMembership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.UserMembership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserMembership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.UserMembership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserMembership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserMembership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserMembership
IDNotIn applies the NotIn predicate on the ID field.
func LastVerified ¶
func LastVerified(v time.Time) predicate.UserMembership
LastVerified applies equality check predicate on the "last_verified" field. It's identical to LastVerifiedEQ.
func LastVerifiedEQ ¶
func LastVerifiedEQ(v time.Time) predicate.UserMembership
LastVerifiedEQ applies the EQ predicate on the "last_verified" field.
func LastVerifiedGT ¶
func LastVerifiedGT(v time.Time) predicate.UserMembership
LastVerifiedGT applies the GT predicate on the "last_verified" field.
func LastVerifiedGTE ¶
func LastVerifiedGTE(v time.Time) predicate.UserMembership
LastVerifiedGTE applies the GTE predicate on the "last_verified" field.
func LastVerifiedIn ¶
func LastVerifiedIn(vs ...time.Time) predicate.UserMembership
LastVerifiedIn applies the In predicate on the "last_verified" field.
func LastVerifiedLT ¶
func LastVerifiedLT(v time.Time) predicate.UserMembership
LastVerifiedLT applies the LT predicate on the "last_verified" field.
func LastVerifiedLTE ¶
func LastVerifiedLTE(v time.Time) predicate.UserMembership
LastVerifiedLTE applies the LTE predicate on the "last_verified" field.
func LastVerifiedNEQ ¶
func LastVerifiedNEQ(v time.Time) predicate.UserMembership
LastVerifiedNEQ applies the NEQ predicate on the "last_verified" field.
func LastVerifiedNotIn ¶
func LastVerifiedNotIn(vs ...time.Time) predicate.UserMembership
LastVerifiedNotIn applies the NotIn predicate on the "last_verified" field.
func Not ¶
func Not(p predicate.UserMembership) predicate.UserMembership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserMembership) predicate.UserMembership
Or groups predicates with the OR operator between them.
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 UserMembership queries.
func ByFailCount ¶
func ByFailCount(opts ...sql.OrderTermOption) OrderOption
ByFailCount orders the results by the fail_count field.
func ByFirstFailed ¶
func ByFirstFailed(opts ...sql.OrderTermOption) OrderOption
ByFirstFailed orders the results by the first_failed field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastVerified ¶
func ByLastVerified(opts ...sql.OrderTermOption) OrderOption
ByLastVerified orders the results by the last_verified field.
func ByRoles ¶
func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRoles orders the results by roles terms.
func ByRolesCount ¶
func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
ByRolesCount orders the results by roles count.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByYoutubeTalentField ¶
func ByYoutubeTalentField(field string, opts ...sql.OrderTermOption) OrderOption
ByYoutubeTalentField orders the results by youtube_talent field.