institutioninvitelink

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 institutioninvitelink type in the database.
	Label = "institution_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"
	// EdgeInstitution holds the string denoting the institution edge name in mutations.
	EdgeInstitution = "institution"
	// Table holds the table name of the institutioninvitelink in the database.
	Table = "institution_invite_links"
	// InstitutionTable is the table that holds the institution relation/edge.
	InstitutionTable = "institution_invite_links"
	// InstitutionInverseTable is the table name for the Institution entity.
	// It exists in this package in order to avoid circular dependency with the "entinstitution" package.
	InstitutionInverseTable = "institutions"
	// InstitutionColumn is the table column denoting the institution relation/edge.
	InstitutionColumn = "institution_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 institutioninvitelink fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "institution_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.InstitutionInviteLink

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

func CodeContainsFold

func CodeContainsFold(v string) predicate.InstitutionInviteLink

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.InstitutionInviteLink

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

func CodeGT

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

func CodeGTE

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

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.InstitutionInviteLink

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

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.InstitutionInviteLink

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

func CodeIn

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

func CodeLT

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

func CodeLTE

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

func CodeNEQ

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

func CodeNotIn

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

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

func HasInstitution

func HasInstitution() predicate.InstitutionInviteLink

HasInstitution applies the HasEdge predicate on the "institution" edge.

func HasInstitutionWith

func HasInstitutionWith(preds ...predicate.Institution) predicate.InstitutionInviteLink

HasInstitutionWith applies the HasEdge predicate on the "institution" 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

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

func RoleNEQ

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

func RoleNotIn

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

func RoleValidator

func RoleValidator(r institution.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 InstitutionInviteLink queries.

func ByCode

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

ByCode orders the results by the code field.

func ByID

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

ByID orders the results by the id field.

func ByInstitutionField

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

ByInstitutionField orders the results by institution 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