role

package
v0.0.0-...-b394ddd Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the role type in the database.
	Label = "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"
	// FieldEvent holds the string denoting the event field in the database.
	FieldEvent = "event"
	// FieldEventWrite holds the string denoting the event_write field in the database.
	FieldEventWrite = "event_write"
	// FieldUser holds the string denoting the user field in the database.
	FieldUser = "user"
	// FieldUserSubscription holds the string denoting the user_subscription field in the database.
	FieldUserSubscription = "user_subscription"
	// FieldUserWrite holds the string denoting the user_write field in the database.
	FieldUserWrite = "user_write"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// Table holds the table name of the role in the database.
	Table = "roles"
	// UsersTable is the table that holds the users relation/edge. The primary key declared below.
	UsersTable = "role_users"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
)

Variables

View Source
var (
	// DefaultEvent holds the default value on creation for the "event" field.
	DefaultEvent string
	// DefaultEventWrite holds the default value on creation for the "event_write" field.
	DefaultEventWrite string
	// DefaultUser holds the default value on creation for the "user" field.
	DefaultUser string
	// DefaultUserSubscription holds the default value on creation for the "user_subscription" field.
	DefaultUserSubscription string
	// DefaultUserWrite holds the default value on creation for the "user_write" field.
	DefaultUserWrite string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for role fields.

View Source
var (
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"role_id", "user_id"}
)

Functions

func And

func And(predicates ...predicate.Role) predicate.Role

And groups predicates with the AND operator between them.

func Event

func Event(v string) predicate.Role

Event applies equality check predicate on the "event" field. It's identical to EventEQ.

func EventContains

func EventContains(v string) predicate.Role

EventContains applies the Contains predicate on the "event" field.

func EventContainsFold

func EventContainsFold(v string) predicate.Role

EventContainsFold applies the ContainsFold predicate on the "event" field.

func EventEQ

func EventEQ(v string) predicate.Role

EventEQ applies the EQ predicate on the "event" field.

func EventEqualFold

func EventEqualFold(v string) predicate.Role

EventEqualFold applies the EqualFold predicate on the "event" field.

func EventGT

func EventGT(v string) predicate.Role

EventGT applies the GT predicate on the "event" field.

func EventGTE

func EventGTE(v string) predicate.Role

EventGTE applies the GTE predicate on the "event" field.

func EventHasPrefix

func EventHasPrefix(v string) predicate.Role

EventHasPrefix applies the HasPrefix predicate on the "event" field.

func EventHasSuffix

func EventHasSuffix(v string) predicate.Role

EventHasSuffix applies the HasSuffix predicate on the "event" field.

func EventIn

func EventIn(vs ...string) predicate.Role

EventIn applies the In predicate on the "event" field.

func EventLT

func EventLT(v string) predicate.Role

EventLT applies the LT predicate on the "event" field.

func EventLTE

func EventLTE(v string) predicate.Role

EventLTE applies the LTE predicate on the "event" field.

func EventNEQ

func EventNEQ(v string) predicate.Role

EventNEQ applies the NEQ predicate on the "event" field.

func EventNotIn

func EventNotIn(vs ...string) predicate.Role

EventNotIn applies the NotIn predicate on the "event" field.

func EventWrite

func EventWrite(v string) predicate.Role

EventWrite applies equality check predicate on the "event_write" field. It's identical to EventWriteEQ.

func EventWriteContains

func EventWriteContains(v string) predicate.Role

EventWriteContains applies the Contains predicate on the "event_write" field.

func EventWriteContainsFold

func EventWriteContainsFold(v string) predicate.Role

EventWriteContainsFold applies the ContainsFold predicate on the "event_write" field.

func EventWriteEQ

func EventWriteEQ(v string) predicate.Role

EventWriteEQ applies the EQ predicate on the "event_write" field.

func EventWriteEqualFold

func EventWriteEqualFold(v string) predicate.Role

EventWriteEqualFold applies the EqualFold predicate on the "event_write" field.

func EventWriteGT

func EventWriteGT(v string) predicate.Role

EventWriteGT applies the GT predicate on the "event_write" field.

func EventWriteGTE

func EventWriteGTE(v string) predicate.Role

EventWriteGTE applies the GTE predicate on the "event_write" field.

func EventWriteHasPrefix

func EventWriteHasPrefix(v string) predicate.Role

EventWriteHasPrefix applies the HasPrefix predicate on the "event_write" field.

func EventWriteHasSuffix

func EventWriteHasSuffix(v string) predicate.Role

EventWriteHasSuffix applies the HasSuffix predicate on the "event_write" field.

func EventWriteIn

func EventWriteIn(vs ...string) predicate.Role

EventWriteIn applies the In predicate on the "event_write" field.

func EventWriteLT

func EventWriteLT(v string) predicate.Role

EventWriteLT applies the LT predicate on the "event_write" field.

func EventWriteLTE

func EventWriteLTE(v string) predicate.Role

EventWriteLTE applies the LTE predicate on the "event_write" field.

func EventWriteNEQ

func EventWriteNEQ(v string) predicate.Role

EventWriteNEQ applies the NEQ predicate on the "event_write" field.

func EventWriteNotIn

func EventWriteNotIn(vs ...string) predicate.Role

EventWriteNotIn applies the NotIn predicate on the "event_write" field.

func HasUsers

func HasUsers() predicate.Role

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Role

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

func ID

func ID(id uuid.UUID) predicate.Role

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Role

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Role

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Role

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Role

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Role

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Role

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Role

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

func NameContains

func NameContains(v string) predicate.Role

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

func NameContainsFold

func NameContainsFold(v string) predicate.Role

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

func NameEQ

func NameEQ(v string) predicate.Role

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

func NameEqualFold

func NameEqualFold(v string) predicate.Role

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

func NameGT

func NameGT(v string) predicate.Role

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

func NameGTE

func NameGTE(v string) predicate.Role

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Role

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Role

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Role

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

func NameLTE

func NameLTE(v string) predicate.Role

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

func NameNEQ

func NameNEQ(v string) predicate.Role

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

func NameNotIn

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

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.Role) predicate.Role

Or groups predicates with the OR operator between them.

func User

func User(v string) predicate.Role

User applies equality check predicate on the "user" field. It's identical to UserEQ.

func UserContains

func UserContains(v string) predicate.Role

UserContains applies the Contains predicate on the "user" field.

func UserContainsFold

func UserContainsFold(v string) predicate.Role

UserContainsFold applies the ContainsFold predicate on the "user" field.

func UserEQ

func UserEQ(v string) predicate.Role

UserEQ applies the EQ predicate on the "user" field.

func UserEqualFold

func UserEqualFold(v string) predicate.Role

UserEqualFold applies the EqualFold predicate on the "user" field.

func UserGT

func UserGT(v string) predicate.Role

UserGT applies the GT predicate on the "user" field.

func UserGTE

func UserGTE(v string) predicate.Role

UserGTE applies the GTE predicate on the "user" field.

func UserHasPrefix

func UserHasPrefix(v string) predicate.Role

UserHasPrefix applies the HasPrefix predicate on the "user" field.

func UserHasSuffix

func UserHasSuffix(v string) predicate.Role

UserHasSuffix applies the HasSuffix predicate on the "user" field.

func UserIn

func UserIn(vs ...string) predicate.Role

UserIn applies the In predicate on the "user" field.

func UserLT

func UserLT(v string) predicate.Role

UserLT applies the LT predicate on the "user" field.

func UserLTE

func UserLTE(v string) predicate.Role

UserLTE applies the LTE predicate on the "user" field.

func UserNEQ

func UserNEQ(v string) predicate.Role

UserNEQ applies the NEQ predicate on the "user" field.

func UserNotIn

func UserNotIn(vs ...string) predicate.Role

UserNotIn applies the NotIn predicate on the "user" field.

func UserSubscription

func UserSubscription(v string) predicate.Role

UserSubscription applies equality check predicate on the "user_subscription" field. It's identical to UserSubscriptionEQ.

func UserSubscriptionContains

func UserSubscriptionContains(v string) predicate.Role

UserSubscriptionContains applies the Contains predicate on the "user_subscription" field.

func UserSubscriptionContainsFold

func UserSubscriptionContainsFold(v string) predicate.Role

UserSubscriptionContainsFold applies the ContainsFold predicate on the "user_subscription" field.

func UserSubscriptionEQ

func UserSubscriptionEQ(v string) predicate.Role

UserSubscriptionEQ applies the EQ predicate on the "user_subscription" field.

func UserSubscriptionEqualFold

func UserSubscriptionEqualFold(v string) predicate.Role

UserSubscriptionEqualFold applies the EqualFold predicate on the "user_subscription" field.

func UserSubscriptionGT

func UserSubscriptionGT(v string) predicate.Role

UserSubscriptionGT applies the GT predicate on the "user_subscription" field.

func UserSubscriptionGTE

func UserSubscriptionGTE(v string) predicate.Role

UserSubscriptionGTE applies the GTE predicate on the "user_subscription" field.

func UserSubscriptionHasPrefix

func UserSubscriptionHasPrefix(v string) predicate.Role

UserSubscriptionHasPrefix applies the HasPrefix predicate on the "user_subscription" field.

func UserSubscriptionHasSuffix

func UserSubscriptionHasSuffix(v string) predicate.Role

UserSubscriptionHasSuffix applies the HasSuffix predicate on the "user_subscription" field.

func UserSubscriptionIn

func UserSubscriptionIn(vs ...string) predicate.Role

UserSubscriptionIn applies the In predicate on the "user_subscription" field.

func UserSubscriptionLT

func UserSubscriptionLT(v string) predicate.Role

UserSubscriptionLT applies the LT predicate on the "user_subscription" field.

func UserSubscriptionLTE

func UserSubscriptionLTE(v string) predicate.Role

UserSubscriptionLTE applies the LTE predicate on the "user_subscription" field.

func UserSubscriptionNEQ

func UserSubscriptionNEQ(v string) predicate.Role

UserSubscriptionNEQ applies the NEQ predicate on the "user_subscription" field.

func UserSubscriptionNotIn

func UserSubscriptionNotIn(vs ...string) predicate.Role

UserSubscriptionNotIn applies the NotIn predicate on the "user_subscription" field.

func UserWrite

func UserWrite(v string) predicate.Role

UserWrite applies equality check predicate on the "user_write" field. It's identical to UserWriteEQ.

func UserWriteContains

func UserWriteContains(v string) predicate.Role

UserWriteContains applies the Contains predicate on the "user_write" field.

func UserWriteContainsFold

func UserWriteContainsFold(v string) predicate.Role

UserWriteContainsFold applies the ContainsFold predicate on the "user_write" field.

func UserWriteEQ

func UserWriteEQ(v string) predicate.Role

UserWriteEQ applies the EQ predicate on the "user_write" field.

func UserWriteEqualFold

func UserWriteEqualFold(v string) predicate.Role

UserWriteEqualFold applies the EqualFold predicate on the "user_write" field.

func UserWriteGT

func UserWriteGT(v string) predicate.Role

UserWriteGT applies the GT predicate on the "user_write" field.

func UserWriteGTE

func UserWriteGTE(v string) predicate.Role

UserWriteGTE applies the GTE predicate on the "user_write" field.

func UserWriteHasPrefix

func UserWriteHasPrefix(v string) predicate.Role

UserWriteHasPrefix applies the HasPrefix predicate on the "user_write" field.

func UserWriteHasSuffix

func UserWriteHasSuffix(v string) predicate.Role

UserWriteHasSuffix applies the HasSuffix predicate on the "user_write" field.

func UserWriteIn

func UserWriteIn(vs ...string) predicate.Role

UserWriteIn applies the In predicate on the "user_write" field.

func UserWriteLT

func UserWriteLT(v string) predicate.Role

UserWriteLT applies the LT predicate on the "user_write" field.

func UserWriteLTE

func UserWriteLTE(v string) predicate.Role

UserWriteLTE applies the LTE predicate on the "user_write" field.

func UserWriteNEQ

func UserWriteNEQ(v string) predicate.Role

UserWriteNEQ applies the NEQ predicate on the "user_write" field.

func UserWriteNotIn

func UserWriteNotIn(vs ...string) predicate.Role

UserWriteNotIn applies the NotIn predicate on the "user_write" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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