groupuser

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the groupuser type in the database.
	Label = "group_user"
	// FieldGroupID holds the string denoting the group_id field in the database.
	FieldGroupID = "group_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// GroupFieldID holds the string denoting the ID field of the Group.
	GroupFieldID = "id"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "id"
	// Table holds the table name of the groupuser in the database.
	Table = "group_users"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "group_users"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "entgroup" package.
	GroupInverseTable = "groups"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "group_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "group_users"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

Columns holds all SQL columns for groupuser fields.

Functions

func And

func And(predicates ...predicate.GroupUser) predicate.GroupUser

And groups predicates with the AND operator between them.

func GroupID

func GroupID(v int) predicate.GroupUser

GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.

func GroupIDEQ

func GroupIDEQ(v int) predicate.GroupUser

GroupIDEQ applies the EQ predicate on the "group_id" field.

func GroupIDIn

func GroupIDIn(vs ...int) predicate.GroupUser

GroupIDIn applies the In predicate on the "group_id" field.

func GroupIDNEQ

func GroupIDNEQ(v int) predicate.GroupUser

GroupIDNEQ applies the NEQ predicate on the "group_id" field.

func GroupIDNotIn

func GroupIDNotIn(vs ...int) predicate.GroupUser

GroupIDNotIn applies the NotIn predicate on the "group_id" field.

func HasGroup

func HasGroup() predicate.GroupUser

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.GroupUser

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

func HasUser

func HasUser() predicate.GroupUser

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.GroupUser

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.GroupUser) predicate.GroupUser

Or groups predicates with the OR operator between them.

func RoleEQ

func RoleEQ(v group.Role) predicate.GroupUser

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...group.Role) predicate.GroupUser

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v group.Role) predicate.GroupUser

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...group.Role) predicate.GroupUser

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r group.Role) error

RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.

func UserID

func UserID(v int) predicate.GroupUser

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.GroupUser

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.GroupUser

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.GroupUser

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.GroupUser

UserIDNotIn applies the NotIn predicate on the "user_id" 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 GroupUser queries.

func ByGroupField

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

ByGroupField orders the results by group field.

func ByGroupID

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

ByGroupID orders the results by the group_id field.

func ByRole

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

ByRole orders the results by the role field.

func ByUserField

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

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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