Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GuildRole) predicate.GuildRole
- func HasGuild() predicate.GuildRole
- func HasGuildWith(preds ...predicate.Guild) predicate.GuildRole
- func HasTalent() predicate.GuildRole
- func HasTalentWith(preds ...predicate.YouTubeTalent) predicate.GuildRole
- func HasUserMemberships() predicate.GuildRole
- func HasUserMembershipsWith(preds ...predicate.UserMembership) predicate.GuildRole
- func ID(id uint64) predicate.GuildRole
- func IDEQ(id uint64) predicate.GuildRole
- func IDGT(id uint64) predicate.GuildRole
- func IDGTE(id uint64) predicate.GuildRole
- func IDIn(ids ...uint64) predicate.GuildRole
- func IDLT(id uint64) predicate.GuildRole
- func IDLTE(id uint64) predicate.GuildRole
- func IDNEQ(id uint64) predicate.GuildRole
- func IDNotIn(ids ...uint64) predicate.GuildRole
- func LastUpdated(v time.Time) predicate.GuildRole
- func LastUpdatedEQ(v time.Time) predicate.GuildRole
- func LastUpdatedGT(v time.Time) predicate.GuildRole
- func LastUpdatedGTE(v time.Time) predicate.GuildRole
- func LastUpdatedIn(vs ...time.Time) predicate.GuildRole
- func LastUpdatedLT(v time.Time) predicate.GuildRole
- func LastUpdatedLTE(v time.Time) predicate.GuildRole
- func LastUpdatedNEQ(v time.Time) predicate.GuildRole
- func LastUpdatedNotIn(vs ...time.Time) predicate.GuildRole
- func Name(v string) predicate.GuildRole
- func NameContains(v string) predicate.GuildRole
- func NameContainsFold(v string) predicate.GuildRole
- func NameEQ(v string) predicate.GuildRole
- func NameEqualFold(v string) predicate.GuildRole
- func NameGT(v string) predicate.GuildRole
- func NameGTE(v string) predicate.GuildRole
- func NameHasPrefix(v string) predicate.GuildRole
- func NameHasSuffix(v string) predicate.GuildRole
- func NameIn(vs ...string) predicate.GuildRole
- func NameLT(v string) predicate.GuildRole
- func NameLTE(v string) predicate.GuildRole
- func NameNEQ(v string) predicate.GuildRole
- func NameNotIn(vs ...string) predicate.GuildRole
- func Not(p predicate.GuildRole) predicate.GuildRole
- func Or(predicates ...predicate.GuildRole) predicate.GuildRole
- func ValidColumn(column string) bool
- type OrderOption
- func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUpdated(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTalentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserMembershipsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the guildrole type in the database. Label = "guild_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldLastUpdated holds the string denoting the last_updated field in the database. FieldLastUpdated = "last_updated" // EdgeGuild holds the string denoting the guild edge name in mutations. EdgeGuild = "guild" // EdgeUserMemberships holds the string denoting the user_memberships edge name in mutations. EdgeUserMemberships = "user_memberships" // EdgeTalent holds the string denoting the talent edge name in mutations. EdgeTalent = "talent" // Table holds the table name of the guildrole in the database. Table = "guild_roles" // GuildTable is the table that holds the guild relation/edge. GuildTable = "guild_roles" // GuildInverseTable is the table name for the Guild entity. // It exists in this package in order to avoid circular dependency with the "guild" package. GuildInverseTable = "guilds" // GuildColumn is the table column denoting the guild relation/edge. GuildColumn = "guild_roles" // UserMembershipsTable is the table that holds the user_memberships relation/edge. The primary key declared below. UserMembershipsTable = "user_membership_roles" // UserMembershipsInverseTable is the table name for the UserMembership entity. // It exists in this package in order to avoid circular dependency with the "usermembership" package. UserMembershipsInverseTable = "user_memberships" // TalentTable is the table that holds the talent relation/edge. TalentTable = "guild_roles" // TalentInverseTable is the table name for the YouTubeTalent entity. // It exists in this package in order to avoid circular dependency with the "youtubetalent" package. TalentInverseTable = "you_tube_talents" // TalentColumn is the table column denoting the talent relation/edge. TalentColumn = "you_tube_talent_roles" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldLastUpdated, }
Columns holds all SQL columns for guildrole fields.
var ( // DefaultLastUpdated holds the default value on creation for the "last_updated" field. DefaultLastUpdated func() time.Time )
var ForeignKeys = []string{
"guild_roles",
"you_tube_talent_roles",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "guild_roles" table and are not defined as standalone fields in the schema.
var ( // UserMembershipsPrimaryKey and UserMembershipsColumn2 are the table columns denoting the // primary key for the user_memberships relation (M2M). UserMembershipsPrimaryKey = []string{"user_membership_id", "guild_role_id"} )
Functions ¶
func HasGuildWith ¶
HasGuildWith applies the HasEdge predicate on the "guild" edge with a given conditions (other predicates).
func HasTalentWith ¶
func HasTalentWith(preds ...predicate.YouTubeTalent) predicate.GuildRole
HasTalentWith applies the HasEdge predicate on the "talent" edge with a given conditions (other predicates).
func HasUserMemberships ¶
HasUserMemberships applies the HasEdge predicate on the "user_memberships" edge.
func HasUserMembershipsWith ¶
func HasUserMembershipsWith(preds ...predicate.UserMembership) predicate.GuildRole
HasUserMembershipsWith applies the HasEdge predicate on the "user_memberships" edge with a given conditions (other predicates).
func LastUpdated ¶
LastUpdated applies equality check predicate on the "last_updated" field. It's identical to LastUpdatedEQ.
func LastUpdatedEQ ¶
LastUpdatedEQ applies the EQ predicate on the "last_updated" field.
func LastUpdatedGT ¶
LastUpdatedGT applies the GT predicate on the "last_updated" field.
func LastUpdatedGTE ¶
LastUpdatedGTE applies the GTE predicate on the "last_updated" field.
func LastUpdatedIn ¶
LastUpdatedIn applies the In predicate on the "last_updated" field.
func LastUpdatedLT ¶
LastUpdatedLT applies the LT predicate on the "last_updated" field.
func LastUpdatedLTE ¶
LastUpdatedLTE applies the LTE predicate on the "last_updated" field.
func LastUpdatedNEQ ¶
LastUpdatedNEQ applies the NEQ predicate on the "last_updated" field.
func LastUpdatedNotIn ¶
LastUpdatedNotIn applies the NotIn predicate on the "last_updated" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 GuildRole queries.
func ByGuildField ¶
func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
ByGuildField orders the results by guild field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUpdated ¶
func ByLastUpdated(opts ...sql.OrderTermOption) OrderOption
ByLastUpdated orders the results by the last_updated field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByTalentField ¶
func ByTalentField(field string, opts ...sql.OrderTermOption) OrderOption
ByTalentField orders the results by talent field.
func ByUserMemberships ¶
func ByUserMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserMemberships orders the results by user_memberships terms.
func ByUserMembershipsCount ¶
func ByUserMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByUserMembershipsCount orders the results by user_memberships count.