Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func Event(v string) predicate.Role
- func EventContains(v string) predicate.Role
- func EventContainsFold(v string) predicate.Role
- func EventEQ(v string) predicate.Role
- func EventEqualFold(v string) predicate.Role
- func EventGT(v string) predicate.Role
- func EventGTE(v string) predicate.Role
- func EventHasPrefix(v string) predicate.Role
- func EventHasSuffix(v string) predicate.Role
- func EventIn(vs ...string) predicate.Role
- func EventLT(v string) predicate.Role
- func EventLTE(v string) predicate.Role
- func EventNEQ(v string) predicate.Role
- func EventNotIn(vs ...string) predicate.Role
- func EventWrite(v string) predicate.Role
- func EventWriteContains(v string) predicate.Role
- func EventWriteContainsFold(v string) predicate.Role
- func EventWriteEQ(v string) predicate.Role
- func EventWriteEqualFold(v string) predicate.Role
- func EventWriteGT(v string) predicate.Role
- func EventWriteGTE(v string) predicate.Role
- func EventWriteHasPrefix(v string) predicate.Role
- func EventWriteHasSuffix(v string) predicate.Role
- func EventWriteIn(vs ...string) predicate.Role
- func EventWriteLT(v string) predicate.Role
- func EventWriteLTE(v string) predicate.Role
- func EventWriteNEQ(v string) predicate.Role
- func EventWriteNotIn(vs ...string) predicate.Role
- func HasUsers() predicate.Role
- func HasUsersWith(preds ...predicate.User) predicate.Role
- func ID(id uuid.UUID) predicate.Role
- func IDEQ(id uuid.UUID) predicate.Role
- func IDGT(id uuid.UUID) predicate.Role
- func IDGTE(id uuid.UUID) predicate.Role
- func IDIn(ids ...uuid.UUID) predicate.Role
- func IDLT(id uuid.UUID) predicate.Role
- func IDLTE(id uuid.UUID) predicate.Role
- func IDNEQ(id uuid.UUID) predicate.Role
- func IDNotIn(ids ...uuid.UUID) predicate.Role
- func Name(v string) predicate.Role
- func NameContains(v string) predicate.Role
- func NameContainsFold(v string) predicate.Role
- func NameEQ(v string) predicate.Role
- func NameEqualFold(v string) predicate.Role
- func NameGT(v string) predicate.Role
- func NameGTE(v string) predicate.Role
- func NameHasPrefix(v string) predicate.Role
- func NameHasSuffix(v string) predicate.Role
- func NameIn(vs ...string) predicate.Role
- func NameLT(v string) predicate.Role
- func NameLTE(v string) predicate.Role
- func NameNEQ(v string) predicate.Role
- func NameNotIn(vs ...string) predicate.Role
- func Not(p predicate.Role) predicate.Role
- func Or(predicates ...predicate.Role) predicate.Role
- func User(v string) predicate.Role
- func UserContains(v string) predicate.Role
- func UserContainsFold(v string) predicate.Role
- func UserEQ(v string) predicate.Role
- func UserEqualFold(v string) predicate.Role
- func UserGT(v string) predicate.Role
- func UserGTE(v string) predicate.Role
- func UserHasPrefix(v string) predicate.Role
- func UserHasSuffix(v string) predicate.Role
- func UserIn(vs ...string) predicate.Role
- func UserLT(v string) predicate.Role
- func UserLTE(v string) predicate.Role
- func UserNEQ(v string) predicate.Role
- func UserNotIn(vs ...string) predicate.Role
- func UserSubscription(v string) predicate.Role
- func UserSubscriptionContains(v string) predicate.Role
- func UserSubscriptionContainsFold(v string) predicate.Role
- func UserSubscriptionEQ(v string) predicate.Role
- func UserSubscriptionEqualFold(v string) predicate.Role
- func UserSubscriptionGT(v string) predicate.Role
- func UserSubscriptionGTE(v string) predicate.Role
- func UserSubscriptionHasPrefix(v string) predicate.Role
- func UserSubscriptionHasSuffix(v string) predicate.Role
- func UserSubscriptionIn(vs ...string) predicate.Role
- func UserSubscriptionLT(v string) predicate.Role
- func UserSubscriptionLTE(v string) predicate.Role
- func UserSubscriptionNEQ(v string) predicate.Role
- func UserSubscriptionNotIn(vs ...string) predicate.Role
- func UserWrite(v string) predicate.Role
- func UserWriteContains(v string) predicate.Role
- func UserWriteContainsFold(v string) predicate.Role
- func UserWriteEQ(v string) predicate.Role
- func UserWriteEqualFold(v string) predicate.Role
- func UserWriteGT(v string) predicate.Role
- func UserWriteGTE(v string) predicate.Role
- func UserWriteHasPrefix(v string) predicate.Role
- func UserWriteHasSuffix(v string) predicate.Role
- func UserWriteIn(vs ...string) predicate.Role
- func UserWriteLT(v string) predicate.Role
- func UserWriteLTE(v string) predicate.Role
- func UserWriteNEQ(v string) predicate.Role
- func UserWriteNotIn(vs ...string) predicate.Role
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldEvent, FieldEventWrite, FieldUser, FieldUserSubscription, FieldUserWrite, }
Columns holds all SQL columns for role fields.
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 Event ¶
Event applies equality check predicate on the "event" field. It's identical to EventEQ.
func EventContains ¶
EventContains applies the Contains predicate on the "event" field.
func EventContainsFold ¶
EventContainsFold applies the ContainsFold predicate on the "event" field.
func EventEqualFold ¶
EventEqualFold applies the EqualFold predicate on the "event" field.
func EventHasPrefix ¶
EventHasPrefix applies the HasPrefix predicate on the "event" field.
func EventHasSuffix ¶
EventHasSuffix applies the HasSuffix predicate on the "event" field.
func EventNotIn ¶
EventNotIn applies the NotIn predicate on the "event" field.
func EventWrite ¶
EventWrite applies equality check predicate on the "event_write" field. It's identical to EventWriteEQ.
func EventWriteContains ¶
EventWriteContains applies the Contains predicate on the "event_write" field.
func EventWriteContainsFold ¶
EventWriteContainsFold applies the ContainsFold predicate on the "event_write" field.
func EventWriteEQ ¶
EventWriteEQ applies the EQ predicate on the "event_write" field.
func EventWriteEqualFold ¶
EventWriteEqualFold applies the EqualFold predicate on the "event_write" field.
func EventWriteGT ¶
EventWriteGT applies the GT predicate on the "event_write" field.
func EventWriteGTE ¶
EventWriteGTE applies the GTE predicate on the "event_write" field.
func EventWriteHasPrefix ¶
EventWriteHasPrefix applies the HasPrefix predicate on the "event_write" field.
func EventWriteHasSuffix ¶
EventWriteHasSuffix applies the HasSuffix predicate on the "event_write" field.
func EventWriteIn ¶
EventWriteIn applies the In predicate on the "event_write" field.
func EventWriteLT ¶
EventWriteLT applies the LT predicate on the "event_write" field.
func EventWriteLTE ¶
EventWriteLTE applies the LTE predicate on the "event_write" field.
func EventWriteNEQ ¶
EventWriteNEQ applies the NEQ predicate on the "event_write" field.
func EventWriteNotIn ¶
EventWriteNotIn applies the NotIn predicate on the "event_write" field.
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
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 UserContains ¶
UserContains applies the Contains predicate on the "user" field.
func UserContainsFold ¶
UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserEqualFold ¶
UserEqualFold applies the EqualFold predicate on the "user" field.
func UserHasPrefix ¶
UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasSuffix ¶
UserHasSuffix applies the HasSuffix predicate on the "user" field.
func UserSubscription ¶
UserSubscription applies equality check predicate on the "user_subscription" field. It's identical to UserSubscriptionEQ.
func UserSubscriptionContains ¶
UserSubscriptionContains applies the Contains predicate on the "user_subscription" field.
func UserSubscriptionContainsFold ¶
UserSubscriptionContainsFold applies the ContainsFold predicate on the "user_subscription" field.
func UserSubscriptionEQ ¶
UserSubscriptionEQ applies the EQ predicate on the "user_subscription" field.
func UserSubscriptionEqualFold ¶
UserSubscriptionEqualFold applies the EqualFold predicate on the "user_subscription" field.
func UserSubscriptionGT ¶
UserSubscriptionGT applies the GT predicate on the "user_subscription" field.
func UserSubscriptionGTE ¶
UserSubscriptionGTE applies the GTE predicate on the "user_subscription" field.
func UserSubscriptionHasPrefix ¶
UserSubscriptionHasPrefix applies the HasPrefix predicate on the "user_subscription" field.
func UserSubscriptionHasSuffix ¶
UserSubscriptionHasSuffix applies the HasSuffix predicate on the "user_subscription" field.
func UserSubscriptionIn ¶
UserSubscriptionIn applies the In predicate on the "user_subscription" field.
func UserSubscriptionLT ¶
UserSubscriptionLT applies the LT predicate on the "user_subscription" field.
func UserSubscriptionLTE ¶
UserSubscriptionLTE applies the LTE predicate on the "user_subscription" field.
func UserSubscriptionNEQ ¶
UserSubscriptionNEQ applies the NEQ predicate on the "user_subscription" field.
func UserSubscriptionNotIn ¶
UserSubscriptionNotIn applies the NotIn predicate on the "user_subscription" field.
func UserWrite ¶
UserWrite applies equality check predicate on the "user_write" field. It's identical to UserWriteEQ.
func UserWriteContains ¶
UserWriteContains applies the Contains predicate on the "user_write" field.
func UserWriteContainsFold ¶
UserWriteContainsFold applies the ContainsFold predicate on the "user_write" field.
func UserWriteEQ ¶
UserWriteEQ applies the EQ predicate on the "user_write" field.
func UserWriteEqualFold ¶
UserWriteEqualFold applies the EqualFold predicate on the "user_write" field.
func UserWriteGT ¶
UserWriteGT applies the GT predicate on the "user_write" field.
func UserWriteGTE ¶
UserWriteGTE applies the GTE predicate on the "user_write" field.
func UserWriteHasPrefix ¶
UserWriteHasPrefix applies the HasPrefix predicate on the "user_write" field.
func UserWriteHasSuffix ¶
UserWriteHasSuffix applies the HasSuffix predicate on the "user_write" field.
func UserWriteIn ¶
UserWriteIn applies the In predicate on the "user_write" field.
func UserWriteLT ¶
UserWriteLT applies the LT predicate on the "user_write" field.
func UserWriteLTE ¶
UserWriteLTE applies the LTE predicate on the "user_write" field.
func UserWriteNEQ ¶
UserWriteNEQ applies the NEQ predicate on the "user_write" field.
func UserWriteNotIn ¶
UserWriteNotIn applies the NotIn predicate on the "user_write" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.