Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func Description(v string) predicate.Group
- func DescriptionContains(v string) predicate.Group
- func DescriptionContainsFold(v string) predicate.Group
- func DescriptionEQ(v string) predicate.Group
- func DescriptionEqualFold(v string) predicate.Group
- func DescriptionGT(v string) predicate.Group
- func DescriptionGTE(v string) predicate.Group
- func DescriptionHasPrefix(v string) predicate.Group
- func DescriptionHasSuffix(v string) predicate.Group
- func DescriptionIn(vs ...string) predicate.Group
- func DescriptionLT(v string) predicate.Group
- func DescriptionLTE(v string) predicate.Group
- func DescriptionNEQ(v string) predicate.Group
- func DescriptionNotIn(vs ...string) predicate.Group
- func HasDeadlines() predicate.Group
- func HasDeadlinesWith(preds ...predicate.Deadline) predicate.Group
- func HasEvents() predicate.Group
- func HasEventsWith(preds ...predicate.Event) predicate.Group
- func HasForums() predicate.Group
- func HasForumsWith(preds ...predicate.Forum) predicate.Group
- func HasGroupUsers() predicate.Group
- func HasGroupUsersWith(preds ...predicate.GroupUser) predicate.Group
- func HasInstitution() predicate.Group
- func HasInstitutionWith(preds ...predicate.Institution) predicate.Group
- func HasInvites() predicate.Group
- func HasInvitesWith(preds ...predicate.GroupInviteLink) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) predicate.Group
- func ID(id int) predicate.Group
- func IDEQ(id int) predicate.Group
- func IDGT(id int) predicate.Group
- func IDGTE(id int) predicate.Group
- func IDIn(ids ...int) predicate.Group
- func IDLT(id int) predicate.Group
- func IDLTE(id int) predicate.Group
- func IDNEQ(id int) predicate.Group
- func IDNotIn(ids ...int) predicate.Group
- func Name(v string) predicate.Group
- func NameContains(v string) predicate.Group
- func NameContainsFold(v string) predicate.Group
- func NameEQ(v string) predicate.Group
- func NameEqualFold(v string) predicate.Group
- func NameGT(v string) predicate.Group
- func NameGTE(v string) predicate.Group
- func NameHasPrefix(v string) predicate.Group
- func NameHasSuffix(v string) predicate.Group
- func NameIn(vs ...string) predicate.Group
- func NameLT(v string) predicate.Group
- func NameLTE(v string) predicate.Group
- func NameNEQ(v string) predicate.Group
- func NameNotIn(vs ...string) predicate.Group
- func Not(p predicate.Group) predicate.Group
- func Or(predicates ...predicate.Group) predicate.Group
- func ShortName(v string) predicate.Group
- func ShortNameContains(v string) predicate.Group
- func ShortNameContainsFold(v string) predicate.Group
- func ShortNameEQ(v string) predicate.Group
- func ShortNameEqualFold(v string) predicate.Group
- func ShortNameGT(v string) predicate.Group
- func ShortNameGTE(v string) predicate.Group
- func ShortNameHasPrefix(v string) predicate.Group
- func ShortNameHasSuffix(v string) predicate.Group
- func ShortNameIn(vs ...string) predicate.Group
- func ShortNameLT(v string) predicate.Group
- func ShortNameLTE(v string) predicate.Group
- func ShortNameNEQ(v string) predicate.Group
- func ShortNameNotIn(vs ...string) predicate.Group
- func ValidColumn(column string) bool
- type OrderOption
- func ByDeadlines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeadlinesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByForums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByForumsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroupUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstitutionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByShortName(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the group type in the database. Label = "group" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldShortName holds the string denoting the short_name field in the database. FieldShortName = "short_name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // EdgeForums holds the string denoting the forums edge name in mutations. EdgeForums = "forums" // EdgeDeadlines holds the string denoting the deadlines edge name in mutations. EdgeDeadlines = "deadlines" // EdgeInvites holds the string denoting the invites edge name in mutations. EdgeInvites = "invites" // EdgeInstitution holds the string denoting the institution edge name in mutations. EdgeInstitution = "institution" // EdgeGroupUsers holds the string denoting the group_users edge name in mutations. EdgeGroupUsers = "group_users" // Table holds the table name of the group in the database. Table = "groups" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // EventsTable is the table that holds the events relation/edge. EventsTable = "events" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" // EventsColumn is the table column denoting the events relation/edge. EventsColumn = "group_events" // ForumsTable is the table that holds the forums relation/edge. ForumsTable = "forums" // ForumsInverseTable is the table name for the Forum entity. // It exists in this package in order to avoid circular dependency with the "forum" package. ForumsInverseTable = "forums" // ForumsColumn is the table column denoting the forums relation/edge. ForumsColumn = "group_forums" // DeadlinesTable is the table that holds the deadlines relation/edge. DeadlinesTable = "deadlines" // DeadlinesInverseTable is the table name for the Deadline entity. // It exists in this package in order to avoid circular dependency with the "deadline" package. DeadlinesInverseTable = "deadlines" // DeadlinesColumn is the table column denoting the deadlines relation/edge. DeadlinesColumn = "group_deadlines" // InvitesTable is the table that holds the invites relation/edge. InvitesTable = "group_invite_links" // InvitesInverseTable is the table name for the GroupInviteLink entity. // It exists in this package in order to avoid circular dependency with the "groupinvitelink" package. InvitesInverseTable = "group_invite_links" // InvitesColumn is the table column denoting the invites relation/edge. InvitesColumn = "group_invites" // InstitutionTable is the table that holds the institution relation/edge. InstitutionTable = "groups" // 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_groups" // GroupUsersTable is the table that holds the group_users relation/edge. GroupUsersTable = "group_users" // GroupUsersInverseTable is the table name for the GroupUser entity. // It exists in this package in order to avoid circular dependency with the "groupuser" package. GroupUsersInverseTable = "group_users" // GroupUsersColumn is the table column denoting the group_users relation/edge. GroupUsersColumn = "group_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // ShortNameValidator is a validator for the "short_name" field. It is called by the builders before save. ShortNameValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldShortName, FieldDescription, }
Columns holds all SQL columns for group fields.
var ForeignKeys = []string{
"institution_groups",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "groups" table and are not defined as standalone fields in the schema.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"group_id", "user_id"} )
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasDeadlines ¶
HasDeadlines applies the HasEdge predicate on the "deadlines" edge.
func HasDeadlinesWith ¶
HasDeadlinesWith applies the HasEdge predicate on the "deadlines" edge with a given conditions (other predicates).
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasForumsWith ¶
HasForumsWith applies the HasEdge predicate on the "forums" edge with a given conditions (other predicates).
func HasGroupUsers ¶
HasGroupUsers applies the HasEdge predicate on the "group_users" edge.
func HasGroupUsersWith ¶
HasGroupUsersWith applies the HasEdge predicate on the "group_users" edge with a given conditions (other predicates).
func HasInstitution ¶
HasInstitution applies the HasEdge predicate on the "institution" edge.
func HasInstitutionWith ¶
func HasInstitutionWith(preds ...predicate.Institution) predicate.Group
HasInstitutionWith applies the HasEdge predicate on the "institution" edge with a given conditions (other predicates).
func HasInvites ¶
HasInvites applies the HasEdge predicate on the "invites" edge.
func HasInvitesWith ¶
func HasInvitesWith(preds ...predicate.GroupInviteLink) predicate.Group
HasInvitesWith applies the HasEdge predicate on the "invites" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ShortName ¶
ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.
func ShortNameContains ¶
ShortNameContains applies the Contains predicate on the "short_name" field.
func ShortNameContainsFold ¶
ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.
func ShortNameEQ ¶
ShortNameEQ applies the EQ predicate on the "short_name" field.
func ShortNameEqualFold ¶
ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.
func ShortNameGT ¶
ShortNameGT applies the GT predicate on the "short_name" field.
func ShortNameGTE ¶
ShortNameGTE applies the GTE predicate on the "short_name" field.
func ShortNameHasPrefix ¶
ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.
func ShortNameHasSuffix ¶
ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.
func ShortNameIn ¶
ShortNameIn applies the In predicate on the "short_name" field.
func ShortNameLT ¶
ShortNameLT applies the LT predicate on the "short_name" field.
func ShortNameLTE ¶
ShortNameLTE applies the LTE predicate on the "short_name" field.
func ShortNameNEQ ¶
ShortNameNEQ applies the NEQ predicate on the "short_name" field.
func ShortNameNotIn ¶
ShortNameNotIn applies the NotIn predicate on the "short_name" field.
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 Group queries.
func ByDeadlines ¶
func ByDeadlines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeadlines orders the results by deadlines terms.
func ByDeadlinesCount ¶
func ByDeadlinesCount(opts ...sql.OrderTermOption) OrderOption
ByDeadlinesCount orders the results by deadlines count.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEvents ¶
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events count.
func ByForums ¶
func ByForums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByForums orders the results by forums terms.
func ByForumsCount ¶
func ByForumsCount(opts ...sql.OrderTermOption) OrderOption
ByForumsCount orders the results by forums count.
func ByGroupUsers ¶
func ByGroupUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroupUsers orders the results by group_users terms.
func ByGroupUsersCount ¶
func ByGroupUsersCount(opts ...sql.OrderTermOption) OrderOption
ByGroupUsersCount orders the results by group_users count.
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 ByInvites ¶
func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInvites orders the results by invites terms.
func ByInvitesCount ¶
func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption
ByInvitesCount orders the results by invites count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByShortName ¶
func ByShortName(opts ...sql.OrderTermOption) OrderOption
ByShortName orders the results by the short_name field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.