Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func And(predicates ...predicate.Group) predicate.Group
 - func CreatedAt(v time.Time) predicate.Group
 - func CreatedAtEQ(v time.Time) predicate.Group
 - func CreatedAtGT(v time.Time) predicate.Group
 - func CreatedAtGTE(v time.Time) predicate.Group
 - func CreatedAtIn(vs ...time.Time) predicate.Group
 - func CreatedAtLT(v time.Time) predicate.Group
 - func CreatedAtLTE(v time.Time) predicate.Group
 - func CreatedAtNEQ(v time.Time) predicate.Group
 - func CreatedAtNotIn(vs ...time.Time) predicate.Group
 - func DeletedAt(v time.Time) predicate.Group
 - func DeletedAtEQ(v time.Time) predicate.Group
 - func DeletedAtGT(v time.Time) predicate.Group
 - func DeletedAtGTE(v time.Time) predicate.Group
 - func DeletedAtIn(vs ...time.Time) predicate.Group
 - func DeletedAtIsNil() predicate.Group
 - func DeletedAtLT(v time.Time) predicate.Group
 - func DeletedAtLTE(v time.Time) predicate.Group
 - func DeletedAtNEQ(v time.Time) predicate.Group
 - func DeletedAtNotIn(vs ...time.Time) predicate.Group
 - func DeletedAtNotNil() 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 DescriptionIsNil() 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 DescriptionNotNil() predicate.Group
 - func HasGroupMemberships() predicate.Group
 - func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.Group
 - func HasOrganization() predicate.Group
 - func HasOrganizationWith(preds ...predicate.Organization) predicate.Group
 - func ID(id uuid.UUID) predicate.Group
 - func IDEQ(id uuid.UUID) predicate.Group
 - func IDGT(id uuid.UUID) predicate.Group
 - func IDGTE(id uuid.UUID) predicate.Group
 - func IDIn(ids ...uuid.UUID) predicate.Group
 - func IDLT(id uuid.UUID) predicate.Group
 - func IDLTE(id uuid.UUID) predicate.Group
 - func IDNEQ(id uuid.UUID) predicate.Group
 - func IDNotIn(ids ...uuid.UUID) predicate.Group
 - func MemberCount(v int) predicate.Group
 - func MemberCountEQ(v int) predicate.Group
 - func MemberCountGT(v int) predicate.Group
 - func MemberCountGTE(v int) predicate.Group
 - func MemberCountIn(vs ...int) predicate.Group
 - func MemberCountLT(v int) predicate.Group
 - func MemberCountLTE(v int) predicate.Group
 - func MemberCountNEQ(v int) predicate.Group
 - func MemberCountNotIn(vs ...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 OrganizationID(v uuid.UUID) predicate.Group
 - func OrganizationIDEQ(v uuid.UUID) predicate.Group
 - func OrganizationIDIn(vs ...uuid.UUID) predicate.Group
 - func OrganizationIDNEQ(v uuid.UUID) predicate.Group
 - func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Group
 - func UpdatedAt(v time.Time) predicate.Group
 - func UpdatedAtEQ(v time.Time) predicate.Group
 - func UpdatedAtGT(v time.Time) predicate.Group
 - func UpdatedAtGTE(v time.Time) predicate.Group
 - func UpdatedAtIn(vs ...time.Time) predicate.Group
 - func UpdatedAtLT(v time.Time) predicate.Group
 - func UpdatedAtLTE(v time.Time) predicate.Group
 - func UpdatedAtNEQ(v time.Time) predicate.Group
 - func UpdatedAtNotIn(vs ...time.Time) predicate.Group
 - func ValidColumn(column string) bool
 - type OrderOption
 - func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
 - func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
 - func ByDescription(opts ...sql.OrderTermOption) OrderOption
 - func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
 - func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption
 - func ByID(opts ...sql.OrderTermOption) OrderOption
 - func ByMemberCount(opts ...sql.OrderTermOption) OrderOption
 - func ByName(opts ...sql.OrderTermOption) OrderOption
 - func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
 - func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
 - func ByUpdatedAt(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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldMemberCount holds the string denoting the member_count field in the database. FieldMemberCount = "member_count" // EdgeGroupMemberships holds the string denoting the group_memberships edge name in mutations. EdgeGroupMemberships = "group_memberships" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // Table holds the table name of the group in the database. Table = "groups" // GroupMembershipsTable is the table that holds the group_memberships relation/edge. GroupMembershipsTable = "group_memberships" // GroupMembershipsInverseTable is the table name for the GroupMembership entity. // It exists in this package in order to avoid circular dependency with the "groupmembership" package. GroupMembershipsInverseTable = "group_memberships" // GroupMembershipsColumn is the table column denoting the group_memberships relation/edge. GroupMembershipsColumn = "group_id" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "groups" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // DefaultMemberCount holds the default value on creation for the "member_count" field. DefaultMemberCount int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldMemberCount, }
Columns holds all SQL columns for group fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasGroupMemberships ¶ added in v1.38.2
HasGroupMemberships applies the HasEdge predicate on the "group_memberships" edge.
func HasGroupMembershipsWith ¶ added in v1.38.2
func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.Group
HasGroupMembershipsWith applies the HasEdge predicate on the "group_memberships" edge with a given conditions (other predicates).
func HasOrganization ¶
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Group
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func MemberCount ¶ added in v1.15.0
MemberCount applies equality check predicate on the "member_count" field. It's identical to MemberCountEQ.
func MemberCountEQ ¶ added in v1.15.0
MemberCountEQ applies the EQ predicate on the "member_count" field.
func MemberCountGT ¶ added in v1.15.0
MemberCountGT applies the GT predicate on the "member_count" field.
func MemberCountGTE ¶ added in v1.15.0
MemberCountGTE applies the GTE predicate on the "member_count" field.
func MemberCountIn ¶ added in v1.15.0
MemberCountIn applies the In predicate on the "member_count" field.
func MemberCountLT ¶ added in v1.15.0
MemberCountLT applies the LT predicate on the "member_count" field.
func MemberCountLTE ¶ added in v1.15.0
MemberCountLTE applies the LTE predicate on the "member_count" field.
func MemberCountNEQ ¶ added in v1.15.0
MemberCountNEQ applies the NEQ predicate on the "member_count" field.
func MemberCountNotIn ¶ added in v1.15.0
MemberCountNotIn applies the NotIn predicate on the "member_count" field.
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 OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByGroupMemberships ¶ added in v1.38.2
func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroupMemberships orders the results by group_memberships terms.
func ByGroupMembershipsCount ¶ added in v1.38.2
func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupMembershipsCount orders the results by group_memberships count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMemberCount ¶ added in v1.15.0
func ByMemberCount(opts ...sql.OrderTermOption) OrderOption
ByMemberCount orders the results by the member_count field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.