rolepaneledit

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the rolepaneledit type in the database.
	Label = "role_panel_edit"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChannelID holds the string denoting the channel_id field in the database.
	FieldChannelID = "channel_id"
	// FieldEmojiAuthor holds the string denoting the emoji_author field in the database.
	FieldEmojiAuthor = "emoji_author"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldSelectedRole holds the string denoting the selected_role field in the database.
	FieldSelectedRole = "selected_role"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldRoles holds the string denoting the roles field in the database.
	FieldRoles = "roles"
	// EdgeGuild holds the string denoting the guild edge name in mutations.
	EdgeGuild = "guild"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// Table holds the table name of the rolepaneledit in the database.
	Table = "role_panel_edits"
	// GuildTable is the table that holds the guild relation/edge.
	GuildTable = "role_panel_edits"
	// 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_role_panel_edits"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "role_panel_edits"
	// ParentInverseTable is the table name for the RolePanel entity.
	// It exists in this package in order to avoid circular dependency with the "rolepanel" package.
	ParentInverseTable = "role_panels"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "role_panel_edit"
)

Variables

View Source
var (
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified bool
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for rolepaneledit fields.

View Source
var ForeignKeys = []string{
	"guild_role_panel_edits",
	"role_panel_edit",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "role_panel_edits" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func ChannelID

func ChannelID(v snowflake.ID) predicate.RolePanelEdit

ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.

func ChannelIDEQ

func ChannelIDEQ(v snowflake.ID) predicate.RolePanelEdit

ChannelIDEQ applies the EQ predicate on the "channel_id" field.

func ChannelIDGT

func ChannelIDGT(v snowflake.ID) predicate.RolePanelEdit

ChannelIDGT applies the GT predicate on the "channel_id" field.

func ChannelIDGTE

func ChannelIDGTE(v snowflake.ID) predicate.RolePanelEdit

ChannelIDGTE applies the GTE predicate on the "channel_id" field.

func ChannelIDIn

func ChannelIDIn(vs ...snowflake.ID) predicate.RolePanelEdit

ChannelIDIn applies the In predicate on the "channel_id" field.

func ChannelIDLT

func ChannelIDLT(v snowflake.ID) predicate.RolePanelEdit

ChannelIDLT applies the LT predicate on the "channel_id" field.

func ChannelIDLTE

func ChannelIDLTE(v snowflake.ID) predicate.RolePanelEdit

ChannelIDLTE applies the LTE predicate on the "channel_id" field.

func ChannelIDNEQ

func ChannelIDNEQ(v snowflake.ID) predicate.RolePanelEdit

ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.

func ChannelIDNotIn

func ChannelIDNotIn(vs ...snowflake.ID) predicate.RolePanelEdit

ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.

func Description

func Description(v string) predicate.RolePanelEdit

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.RolePanelEdit

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.RolePanelEdit

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.RolePanelEdit

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.RolePanelEdit

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.RolePanelEdit

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.RolePanelEdit

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.RolePanelEdit

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.RolePanelEdit

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.RolePanelEdit

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.RolePanelEdit

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.RolePanelEdit

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.RolePanelEdit

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.RolePanelEdit

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.RolePanelEdit

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.RolePanelEdit

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EmojiAuthor

func EmojiAuthor(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthor applies equality check predicate on the "emoji_author" field. It's identical to EmojiAuthorEQ.

func EmojiAuthorEQ

func EmojiAuthorEQ(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthorEQ applies the EQ predicate on the "emoji_author" field.

func EmojiAuthorGT

func EmojiAuthorGT(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthorGT applies the GT predicate on the "emoji_author" field.

func EmojiAuthorGTE

func EmojiAuthorGTE(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthorGTE applies the GTE predicate on the "emoji_author" field.

func EmojiAuthorIn

func EmojiAuthorIn(vs ...snowflake.ID) predicate.RolePanelEdit

EmojiAuthorIn applies the In predicate on the "emoji_author" field.

func EmojiAuthorIsNil

func EmojiAuthorIsNil() predicate.RolePanelEdit

EmojiAuthorIsNil applies the IsNil predicate on the "emoji_author" field.

func EmojiAuthorLT

func EmojiAuthorLT(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthorLT applies the LT predicate on the "emoji_author" field.

func EmojiAuthorLTE

func EmojiAuthorLTE(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthorLTE applies the LTE predicate on the "emoji_author" field.

func EmojiAuthorNEQ

func EmojiAuthorNEQ(v snowflake.ID) predicate.RolePanelEdit

EmojiAuthorNEQ applies the NEQ predicate on the "emoji_author" field.

func EmojiAuthorNotIn

func EmojiAuthorNotIn(vs ...snowflake.ID) predicate.RolePanelEdit

EmojiAuthorNotIn applies the NotIn predicate on the "emoji_author" field.

func EmojiAuthorNotNil

func EmojiAuthorNotNil() predicate.RolePanelEdit

EmojiAuthorNotNil applies the NotNil predicate on the "emoji_author" field.

func HasGuild

func HasGuild() predicate.RolePanelEdit

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

func HasGuildWith

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

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

func HasParent

func HasParent() predicate.RolePanelEdit

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.RolePanel) predicate.RolePanelEdit

HasParentWith applies the HasEdge predicate on the "parent" 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

func IDGTE(id uuid.UUID) predicate.RolePanelEdit

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.RolePanelEdit

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.RolePanelEdit

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.RolePanelEdit

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.RolePanelEdit

IDNotIn applies the NotIn predicate on the ID field.

func Modified

func Modified(v bool) predicate.RolePanelEdit

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v bool) predicate.RolePanelEdit

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v bool) predicate.RolePanelEdit

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func Name

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

func NameContains

func NameContains(v string) predicate.RolePanelEdit

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

func NameContainsFold

func NameContainsFold(v string) predicate.RolePanelEdit

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

func NameEQ

func NameEQ(v string) predicate.RolePanelEdit

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

func NameEqualFold

func NameEqualFold(v string) predicate.RolePanelEdit

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

func NameGT

func NameGT(v string) predicate.RolePanelEdit

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

func NameGTE

func NameGTE(v string) predicate.RolePanelEdit

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.RolePanelEdit

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.RolePanelEdit

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.RolePanelEdit

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.RolePanelEdit

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

func NameLTE

func NameLTE(v string) predicate.RolePanelEdit

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

func NameNEQ

func NameNEQ(v string) predicate.RolePanelEdit

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.RolePanelEdit

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RolesIsNil

func RolesIsNil() predicate.RolePanelEdit

RolesIsNil applies the IsNil predicate on the "roles" field.

func RolesNotNil

func RolesNotNil() predicate.RolePanelEdit

RolesNotNil applies the NotNil predicate on the "roles" field.

func SelectedRole

func SelectedRole(v snowflake.ID) predicate.RolePanelEdit

SelectedRole applies equality check predicate on the "selected_role" field. It's identical to SelectedRoleEQ.

func SelectedRoleEQ

func SelectedRoleEQ(v snowflake.ID) predicate.RolePanelEdit

SelectedRoleEQ applies the EQ predicate on the "selected_role" field.

func SelectedRoleGT

func SelectedRoleGT(v snowflake.ID) predicate.RolePanelEdit

SelectedRoleGT applies the GT predicate on the "selected_role" field.

func SelectedRoleGTE

func SelectedRoleGTE(v snowflake.ID) predicate.RolePanelEdit

SelectedRoleGTE applies the GTE predicate on the "selected_role" field.

func SelectedRoleIn

func SelectedRoleIn(vs ...snowflake.ID) predicate.RolePanelEdit

SelectedRoleIn applies the In predicate on the "selected_role" field.

func SelectedRoleIsNil

func SelectedRoleIsNil() predicate.RolePanelEdit

SelectedRoleIsNil applies the IsNil predicate on the "selected_role" field.

func SelectedRoleLT

func SelectedRoleLT(v snowflake.ID) predicate.RolePanelEdit

SelectedRoleLT applies the LT predicate on the "selected_role" field.

func SelectedRoleLTE

func SelectedRoleLTE(v snowflake.ID) predicate.RolePanelEdit

SelectedRoleLTE applies the LTE predicate on the "selected_role" field.

func SelectedRoleNEQ

func SelectedRoleNEQ(v snowflake.ID) predicate.RolePanelEdit

SelectedRoleNEQ applies the NEQ predicate on the "selected_role" field.

func SelectedRoleNotIn

func SelectedRoleNotIn(vs ...snowflake.ID) predicate.RolePanelEdit

SelectedRoleNotIn applies the NotIn predicate on the "selected_role" field.

func SelectedRoleNotNil

func SelectedRoleNotNil() predicate.RolePanelEdit

SelectedRoleNotNil applies the NotNil predicate on the "selected_role" field.

func Token

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.RolePanelEdit

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.RolePanelEdit

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.RolePanelEdit

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.RolePanelEdit

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.RolePanelEdit

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.RolePanelEdit

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.RolePanelEdit

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.RolePanelEdit

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.RolePanelEdit

TokenIn applies the In predicate on the "token" field.

func TokenIsNil

func TokenIsNil() predicate.RolePanelEdit

TokenIsNil applies the IsNil predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.RolePanelEdit

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.RolePanelEdit

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.RolePanelEdit

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.RolePanelEdit

TokenNotIn applies the NotIn predicate on the "token" field.

func TokenNotNil

func TokenNotNil() predicate.RolePanelEdit

TokenNotNil applies the NotNil predicate on the "token" 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 RolePanelEdit queries.

func ByChannelID

func ByChannelID(opts ...sql.OrderTermOption) OrderOption

ByChannelID orders the results by the channel_id field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByEmojiAuthor

func ByEmojiAuthor(opts ...sql.OrderTermOption) OrderOption

ByEmojiAuthor orders the results by the emoji_author field.

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 ByModified

func ByModified(opts ...sql.OrderTermOption) OrderOption

ByModified orders the results by the modified field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByParentField

func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption

ByParentField orders the results by parent field.

func BySelectedRole

func BySelectedRole(opts ...sql.OrderTermOption) OrderOption

BySelectedRole orders the results by the selected_role field.

func ByToken

func ByToken(opts ...sql.OrderTermOption) OrderOption

ByToken orders the results by the token field.

Jump to

Keyboard shortcuts

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