entgroup

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for group fields.

View Source
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.

View Source
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 And

func And(predicates ...predicate.Group) predicate.Group

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Group

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Group

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Group

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Group

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Group

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Group

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Group

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Group

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Group

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Group

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Group

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Group

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Group

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Group

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasDeadlines

func HasDeadlines() predicate.Group

HasDeadlines applies the HasEdge predicate on the "deadlines" edge.

func HasDeadlinesWith

func HasDeadlinesWith(preds ...predicate.Deadline) predicate.Group

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

func HasEvents

func HasEvents() predicate.Group

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Group

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

func HasForums

func HasForums() predicate.Group

HasForums applies the HasEdge predicate on the "forums" edge.

func HasForumsWith

func HasForumsWith(preds ...predicate.Forum) predicate.Group

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

func HasGroupUsers

func HasGroupUsers() predicate.Group

HasGroupUsers applies the HasEdge predicate on the "group_users" edge.

func HasGroupUsersWith

func HasGroupUsersWith(preds ...predicate.GroupUser) predicate.Group

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

func HasInstitution

func HasInstitution() predicate.Group

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

func HasInvites() predicate.Group

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 HasUsers

func HasUsers() predicate.Group

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Group

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

func ID

func ID(id int) predicate.Group

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Group

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Group

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Group

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Group

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Group

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Group

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Group

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Group

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Group

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Group

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Group

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Group

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Group

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Group

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Group

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Group

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Group

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Group

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Group

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Group

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Group) predicate.Group

Or groups predicates with the OR operator between them.

func ShortName

func ShortName(v string) predicate.Group

ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.

func ShortNameContains

func ShortNameContains(v string) predicate.Group

ShortNameContains applies the Contains predicate on the "short_name" field.

func ShortNameContainsFold

func ShortNameContainsFold(v string) predicate.Group

ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.

func ShortNameEQ

func ShortNameEQ(v string) predicate.Group

ShortNameEQ applies the EQ predicate on the "short_name" field.

func ShortNameEqualFold

func ShortNameEqualFold(v string) predicate.Group

ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.

func ShortNameGT

func ShortNameGT(v string) predicate.Group

ShortNameGT applies the GT predicate on the "short_name" field.

func ShortNameGTE

func ShortNameGTE(v string) predicate.Group

ShortNameGTE applies the GTE predicate on the "short_name" field.

func ShortNameHasPrefix

func ShortNameHasPrefix(v string) predicate.Group

ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.

func ShortNameHasSuffix

func ShortNameHasSuffix(v string) predicate.Group

ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.

func ShortNameIn

func ShortNameIn(vs ...string) predicate.Group

ShortNameIn applies the In predicate on the "short_name" field.

func ShortNameLT

func ShortNameLT(v string) predicate.Group

ShortNameLT applies the LT predicate on the "short_name" field.

func ShortNameLTE

func ShortNameLTE(v string) predicate.Group

ShortNameLTE applies the LTE predicate on the "short_name" field.

func ShortNameNEQ

func ShortNameNEQ(v string) predicate.Group

ShortNameNEQ applies the NEQ predicate on the "short_name" field.

func ShortNameNotIn

func ShortNameNotIn(vs ...string) predicate.Group

ShortNameNotIn applies the NotIn predicate on the "short_name" field.

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

Jump to

Keyboard shortcuts

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