groupinvitelink

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 groupinvitelink type in the database.
	Label = "group_invite_link"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// 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"
	// Table holds the table name of the groupinvitelink in the database.
	Table = "group_invite_links"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "group_invite_links"
	// 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_invites"
)

Variables

View Source
var (
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
)
View Source
var Columns = []string{
	FieldID,
	FieldCode,
	FieldRole,
}

Columns holds all SQL columns for groupinvitelink fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func Code

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.GroupInviteLink

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.GroupInviteLink

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.GroupInviteLink

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.GroupInviteLink

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.GroupInviteLink

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.GroupInviteLink

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.GroupInviteLink

CodeIn applies the In predicate on the "code" field.

func CodeLT

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.GroupInviteLink

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.GroupInviteLink

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.GroupInviteLink

CodeNotIn applies the NotIn predicate on the "code" field.

func HasGroup

func HasGroup() predicate.GroupInviteLink

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

func HasGroupWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.GroupInviteLink

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.GroupInviteLink

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.GroupInviteLink

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.GroupInviteLink

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.GroupInviteLink

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.GroupInviteLink

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.GroupInviteLink

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.GroupInviteLink

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RoleEQ

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

func RoleIn

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

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

func RoleNEQ

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

func RoleNotIn

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

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

func ByCode

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

ByCode orders the results by the code field.

func ByGroupField

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

ByGroupField orders the results by group field.

func ByID

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

ByID orders the results by the id field.

func ByRole

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

ByRole orders the results by the role field.

Jump to

Keyboard shortcuts

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