Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GroupInviteLink) predicate.GroupInviteLink
- func Code(v string) predicate.GroupInviteLink
- func CodeContains(v string) predicate.GroupInviteLink
- func CodeContainsFold(v string) predicate.GroupInviteLink
- func CodeEQ(v string) predicate.GroupInviteLink
- func CodeEqualFold(v string) predicate.GroupInviteLink
- func CodeGT(v string) predicate.GroupInviteLink
- func CodeGTE(v string) predicate.GroupInviteLink
- func CodeHasPrefix(v string) predicate.GroupInviteLink
- func CodeHasSuffix(v string) predicate.GroupInviteLink
- func CodeIn(vs ...string) predicate.GroupInviteLink
- func CodeLT(v string) predicate.GroupInviteLink
- func CodeLTE(v string) predicate.GroupInviteLink
- func CodeNEQ(v string) predicate.GroupInviteLink
- func CodeNotIn(vs ...string) predicate.GroupInviteLink
- func HasGroup() predicate.GroupInviteLink
- func HasGroupWith(preds ...predicate.Group) predicate.GroupInviteLink
- func ID(id int) predicate.GroupInviteLink
- func IDEQ(id int) predicate.GroupInviteLink
- func IDGT(id int) predicate.GroupInviteLink
- func IDGTE(id int) predicate.GroupInviteLink
- func IDIn(ids ...int) predicate.GroupInviteLink
- func IDLT(id int) predicate.GroupInviteLink
- func IDLTE(id int) predicate.GroupInviteLink
- func IDNEQ(id int) predicate.GroupInviteLink
- func IDNotIn(ids ...int) predicate.GroupInviteLink
- func Not(p predicate.GroupInviteLink) predicate.GroupInviteLink
- func Or(predicates ...predicate.GroupInviteLink) predicate.GroupInviteLink
- func RoleEQ(v group.Role) predicate.GroupInviteLink
- func RoleIn(vs ...group.Role) predicate.GroupInviteLink
- func RoleNEQ(v group.Role) predicate.GroupInviteLink
- func RoleNotIn(vs ...group.Role) predicate.GroupInviteLink
- func RoleValidator(r group.Role) error
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 groupinvitelink fields.
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 ¶
func And(predicates ...predicate.GroupInviteLink) predicate.GroupInviteLink
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.GroupInviteLink
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 ¶
func CodeEQ(v string) predicate.GroupInviteLink
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 ¶
func CodeGT(v string) predicate.GroupInviteLink
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 ¶
func CodeLT(v string) predicate.GroupInviteLink
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 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 ¶
func Not(p predicate.GroupInviteLink) predicate.GroupInviteLink
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GroupInviteLink) predicate.GroupInviteLink
Or groups predicates with the OR operator between them.
func RoleEQ ¶
func RoleEQ(v group.Role) predicate.GroupInviteLink
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 ¶
func RoleNEQ(v group.Role) predicate.GroupInviteLink
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 ¶
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 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.