guildrole

package
v0.0.0-...-905e761 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for guildrole fields.

View Source
var (
	// DefaultLastUpdated holds the default value on creation for the "last_updated" field.
	DefaultLastUpdated func() time.Time
)
View Source
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.

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

func And(predicates ...predicate.GuildRole) predicate.GuildRole

And groups predicates with the AND operator between them.

func HasGuild

func HasGuild() predicate.GuildRole

HasGuild applies the HasEdge predicate on the "guild" edge.

func HasGuildWith

func HasGuildWith(preds ...predicate.Guild) predicate.GuildRole

HasGuildWith applies the HasEdge predicate on the "guild" edge with a given conditions (other predicates).

func HasTalent

func HasTalent() predicate.GuildRole

HasTalent applies the HasEdge predicate on the "talent" edge.

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

func HasUserMemberships() predicate.GuildRole

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 ID

func ID(id uint64) predicate.GuildRole

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.GuildRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.GuildRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.GuildRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.GuildRole

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.GuildRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.GuildRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.GuildRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.GuildRole

IDNotIn applies the NotIn predicate on the ID field.

func LastUpdated

func LastUpdated(v time.Time) predicate.GuildRole

LastUpdated applies equality check predicate on the "last_updated" field. It's identical to LastUpdatedEQ.

func LastUpdatedEQ

func LastUpdatedEQ(v time.Time) predicate.GuildRole

LastUpdatedEQ applies the EQ predicate on the "last_updated" field.

func LastUpdatedGT

func LastUpdatedGT(v time.Time) predicate.GuildRole

LastUpdatedGT applies the GT predicate on the "last_updated" field.

func LastUpdatedGTE

func LastUpdatedGTE(v time.Time) predicate.GuildRole

LastUpdatedGTE applies the GTE predicate on the "last_updated" field.

func LastUpdatedIn

func LastUpdatedIn(vs ...time.Time) predicate.GuildRole

LastUpdatedIn applies the In predicate on the "last_updated" field.

func LastUpdatedLT

func LastUpdatedLT(v time.Time) predicate.GuildRole

LastUpdatedLT applies the LT predicate on the "last_updated" field.

func LastUpdatedLTE

func LastUpdatedLTE(v time.Time) predicate.GuildRole

LastUpdatedLTE applies the LTE predicate on the "last_updated" field.

func LastUpdatedNEQ

func LastUpdatedNEQ(v time.Time) predicate.GuildRole

LastUpdatedNEQ applies the NEQ predicate on the "last_updated" field.

func LastUpdatedNotIn

func LastUpdatedNotIn(vs ...time.Time) predicate.GuildRole

LastUpdatedNotIn applies the NotIn predicate on the "last_updated" field.

func Name

func Name(v string) predicate.GuildRole

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.GuildRole

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.GuildRole

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.GuildRole

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.GuildRole

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.GuildRole

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.GuildRole

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.GuildRole

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.GuildRole

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.GuildRole

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.GuildRole

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.GuildRole

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.GuildRole

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.GuildRole

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.GuildRole) predicate.GuildRole

Or groups predicates with the OR operator between them.

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 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.

Jump to

Keyboard shortcuts

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