Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.InstitutionInviteLink) predicate.InstitutionInviteLink
- func Code(v string) predicate.InstitutionInviteLink
- func CodeContains(v string) predicate.InstitutionInviteLink
- func CodeContainsFold(v string) predicate.InstitutionInviteLink
- func CodeEQ(v string) predicate.InstitutionInviteLink
- func CodeEqualFold(v string) predicate.InstitutionInviteLink
- func CodeGT(v string) predicate.InstitutionInviteLink
- func CodeGTE(v string) predicate.InstitutionInviteLink
- func CodeHasPrefix(v string) predicate.InstitutionInviteLink
- func CodeHasSuffix(v string) predicate.InstitutionInviteLink
- func CodeIn(vs ...string) predicate.InstitutionInviteLink
- func CodeLT(v string) predicate.InstitutionInviteLink
- func CodeLTE(v string) predicate.InstitutionInviteLink
- func CodeNEQ(v string) predicate.InstitutionInviteLink
- func CodeNotIn(vs ...string) predicate.InstitutionInviteLink
- func HasInstitution() predicate.InstitutionInviteLink
- func HasInstitutionWith(preds ...predicate.Institution) predicate.InstitutionInviteLink
- func ID(id int) predicate.InstitutionInviteLink
- func IDEQ(id int) predicate.InstitutionInviteLink
- func IDGT(id int) predicate.InstitutionInviteLink
- func IDGTE(id int) predicate.InstitutionInviteLink
- func IDIn(ids ...int) predicate.InstitutionInviteLink
- func IDLT(id int) predicate.InstitutionInviteLink
- func IDLTE(id int) predicate.InstitutionInviteLink
- func IDNEQ(id int) predicate.InstitutionInviteLink
- func IDNotIn(ids ...int) predicate.InstitutionInviteLink
- func Not(p predicate.InstitutionInviteLink) predicate.InstitutionInviteLink
- func Or(predicates ...predicate.InstitutionInviteLink) predicate.InstitutionInviteLink
- func RoleEQ(v institution.Role) predicate.InstitutionInviteLink
- func RoleIn(vs ...institution.Role) predicate.InstitutionInviteLink
- func RoleNEQ(v institution.Role) predicate.InstitutionInviteLink
- func RoleNotIn(vs ...institution.Role) predicate.InstitutionInviteLink
- func RoleValidator(r institution.Role) error
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var ( // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error )
var Columns = []string{ FieldID, FieldCode, FieldRole, }
Columns holds all SQL columns for institutioninvitelink fields.
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 ¶
func And(predicates ...predicate.InstitutionInviteLink) predicate.InstitutionInviteLink
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.InstitutionInviteLink
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 ¶
func CodeEQ(v string) predicate.InstitutionInviteLink
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 ¶
func CodeGT(v string) predicate.InstitutionInviteLink
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.InstitutionInviteLink
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 ¶
func CodeIn(vs ...string) predicate.InstitutionInviteLink
CodeIn applies the In predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.InstitutionInviteLink
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.InstitutionInviteLink
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.InstitutionInviteLink
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 ¶
func ID(id int) predicate.InstitutionInviteLink
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.InstitutionInviteLink
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.InstitutionInviteLink
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.InstitutionInviteLink
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 ¶
func IDLT(id int) predicate.InstitutionInviteLink
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.InstitutionInviteLink
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.InstitutionInviteLink
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 ¶
func Not(p predicate.InstitutionInviteLink) predicate.InstitutionInviteLink
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.InstitutionInviteLink) predicate.InstitutionInviteLink
Or groups predicates with the OR operator between them.
func RoleEQ ¶
func RoleEQ(v institution.Role) predicate.InstitutionInviteLink
RoleEQ applies the EQ predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...institution.Role) predicate.InstitutionInviteLink
RoleIn applies the In predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v institution.Role) predicate.InstitutionInviteLink
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...institution.Role) predicate.InstitutionInviteLink
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.