groups

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the groups type in the database.
	Label = "groups"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldGroupType holds the string denoting the group_type field in the database.
	FieldGroupType = "group_type"
	// FieldGroupStatus holds the string denoting the group_status field in the database.
	FieldGroupStatus = "group_status"
	// FieldSortOrder holds the string denoting the sort_order field in the database.
	FieldSortOrder = "sort_order"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldMaxMembers holds the string denoting the max_members field in the database.
	FieldMaxMembers = "max_members"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldRefID holds the string denoting the ref_id field in the database.
	FieldRefID = "ref_id"
	// FieldRefExpr holds the string denoting the ref_expr field in the database.
	FieldRefExpr = "ref_expr"
	// FieldVisibility holds the string denoting the visibility field in the database.
	FieldVisibility = "visibility"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// Table holds the table name of the groups in the database.
	Table = "lion_groups"
)

Variables

View Source
var (
	// 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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save.
	DisplayNameValidator func(string) error
	// DefaultGroupType holds the default value on creation for the "group_type" field.
	DefaultGroupType int
	// DefaultGroupStatus holds the default value on creation for the "group_status" field.
	DefaultGroupStatus int
	// DefaultSortOrder holds the default value on creation for the "sort_order" field.
	DefaultSortOrder int
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID int
	// DefaultMaxMembers holds the default value on creation for the "max_members" field.
	DefaultMaxMembers int
	// DefaultMetadata holds the default value on creation for the "metadata" field.
	DefaultMetadata map[string]string
	// DefaultRefID holds the default value on creation for the "ref_id" field.
	DefaultRefID int
	// DefaultRefExpr holds the default value on creation for the "ref_expr" field.
	DefaultRefExpr string
	// RefExprValidator is a validator for the "ref_expr" field. It is called by the builders before save.
	RefExprValidator func(string) error
	// DefaultVisibility holds the default value on creation for the "visibility" field.
	DefaultVisibility int
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)

Columns holds all SQL columns for groups fields.

View Source
var ForeignKeys = []string{
	"departments_lion_groups",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "lion_groups" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Groups) predicate.Groups

And groups predicates with the AND operator between them.

func Code

func Code(v string) predicate.Groups

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Groups

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Groups

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Groups

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Groups

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Groups

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Groups

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Groups

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Groups

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.Groups

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Groups

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Groups

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Groups

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.Groups

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Groups

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Groups

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Groups

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Groups

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Groups

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Groups

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Groups

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Groups

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Groups

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int64) predicate.Groups

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.Groups

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.Groups

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.Groups

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.Groups

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Groups

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.Groups

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.Groups

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.Groups

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.Groups

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Groups

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Groups

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Groups

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Groups

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Groups

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Groups

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Groups

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Groups

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Groups

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Groups

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Groups

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Groups

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Groups

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

func DescriptionContains

func DescriptionContains(v string) predicate.Groups

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Groups

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Groups

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Groups

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

func DescriptionGT

func DescriptionGT(v string) predicate.Groups

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Groups

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Groups

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Groups

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Groups

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Groups

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Groups

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

func DescriptionNotIn

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

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

func DisplayName

func DisplayName(v string) predicate.Groups

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Groups

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Groups

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Groups

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Groups

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Groups

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Groups

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Groups

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Groups

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Groups

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Groups

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Groups

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Groups

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Groups

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func GroupStatus

func GroupStatus(v int) predicate.Groups

GroupStatus applies equality check predicate on the "group_status" field. It's identical to GroupStatusEQ.

func GroupStatusEQ

func GroupStatusEQ(v int) predicate.Groups

GroupStatusEQ applies the EQ predicate on the "group_status" field.

func GroupStatusGT

func GroupStatusGT(v int) predicate.Groups

GroupStatusGT applies the GT predicate on the "group_status" field.

func GroupStatusGTE

func GroupStatusGTE(v int) predicate.Groups

GroupStatusGTE applies the GTE predicate on the "group_status" field.

func GroupStatusIn

func GroupStatusIn(vs ...int) predicate.Groups

GroupStatusIn applies the In predicate on the "group_status" field.

func GroupStatusLT

func GroupStatusLT(v int) predicate.Groups

GroupStatusLT applies the LT predicate on the "group_status" field.

func GroupStatusLTE

func GroupStatusLTE(v int) predicate.Groups

GroupStatusLTE applies the LTE predicate on the "group_status" field.

func GroupStatusNEQ

func GroupStatusNEQ(v int) predicate.Groups

GroupStatusNEQ applies the NEQ predicate on the "group_status" field.

func GroupStatusNotIn

func GroupStatusNotIn(vs ...int) predicate.Groups

GroupStatusNotIn applies the NotIn predicate on the "group_status" field.

func GroupType

func GroupType(v int) predicate.Groups

GroupType applies equality check predicate on the "group_type" field. It's identical to GroupTypeEQ.

func GroupTypeEQ

func GroupTypeEQ(v int) predicate.Groups

GroupTypeEQ applies the EQ predicate on the "group_type" field.

func GroupTypeGT

func GroupTypeGT(v int) predicate.Groups

GroupTypeGT applies the GT predicate on the "group_type" field.

func GroupTypeGTE

func GroupTypeGTE(v int) predicate.Groups

GroupTypeGTE applies the GTE predicate on the "group_type" field.

func GroupTypeIn

func GroupTypeIn(vs ...int) predicate.Groups

GroupTypeIn applies the In predicate on the "group_type" field.

func GroupTypeLT

func GroupTypeLT(v int) predicate.Groups

GroupTypeLT applies the LT predicate on the "group_type" field.

func GroupTypeLTE

func GroupTypeLTE(v int) predicate.Groups

GroupTypeLTE applies the LTE predicate on the "group_type" field.

func GroupTypeNEQ

func GroupTypeNEQ(v int) predicate.Groups

GroupTypeNEQ applies the NEQ predicate on the "group_type" field.

func GroupTypeNotIn

func GroupTypeNotIn(vs ...int) predicate.Groups

GroupTypeNotIn applies the NotIn predicate on the "group_type" field.

func ID

func ID(id int) predicate.Groups

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Groups

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Groups

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Groups

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Groups

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Groups

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Groups

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MaxMembers

func MaxMembers(v int) predicate.Groups

MaxMembers applies equality check predicate on the "max_members" field. It's identical to MaxMembersEQ.

func MaxMembersEQ

func MaxMembersEQ(v int) predicate.Groups

MaxMembersEQ applies the EQ predicate on the "max_members" field.

func MaxMembersGT

func MaxMembersGT(v int) predicate.Groups

MaxMembersGT applies the GT predicate on the "max_members" field.

func MaxMembersGTE

func MaxMembersGTE(v int) predicate.Groups

MaxMembersGTE applies the GTE predicate on the "max_members" field.

func MaxMembersIn

func MaxMembersIn(vs ...int) predicate.Groups

MaxMembersIn applies the In predicate on the "max_members" field.

func MaxMembersLT

func MaxMembersLT(v int) predicate.Groups

MaxMembersLT applies the LT predicate on the "max_members" field.

func MaxMembersLTE

func MaxMembersLTE(v int) predicate.Groups

MaxMembersLTE applies the LTE predicate on the "max_members" field.

func MaxMembersNEQ

func MaxMembersNEQ(v int) predicate.Groups

MaxMembersNEQ applies the NEQ predicate on the "max_members" field.

func MaxMembersNotIn

func MaxMembersNotIn(vs ...int) predicate.Groups

MaxMembersNotIn applies the NotIn predicate on the "max_members" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Groups) predicate.Groups

Or groups predicates with the OR operator between them.

func ParentID

func ParentID(v int) predicate.Groups

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v int) predicate.Groups

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDGT

func ParentIDGT(v int) predicate.Groups

ParentIDGT applies the GT predicate on the "parent_id" field.

func ParentIDGTE

func ParentIDGTE(v int) predicate.Groups

ParentIDGTE applies the GTE predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...int) predicate.Groups

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDLT

func ParentIDLT(v int) predicate.Groups

ParentIDLT applies the LT predicate on the "parent_id" field.

func ParentIDLTE

func ParentIDLTE(v int) predicate.Groups

ParentIDLTE applies the LTE predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v int) predicate.Groups

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...int) predicate.Groups

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func RefExpr

func RefExpr(v string) predicate.Groups

RefExpr applies equality check predicate on the "ref_expr" field. It's identical to RefExprEQ.

func RefExprContains

func RefExprContains(v string) predicate.Groups

RefExprContains applies the Contains predicate on the "ref_expr" field.

func RefExprContainsFold

func RefExprContainsFold(v string) predicate.Groups

RefExprContainsFold applies the ContainsFold predicate on the "ref_expr" field.

func RefExprEQ

func RefExprEQ(v string) predicate.Groups

RefExprEQ applies the EQ predicate on the "ref_expr" field.

func RefExprEqualFold

func RefExprEqualFold(v string) predicate.Groups

RefExprEqualFold applies the EqualFold predicate on the "ref_expr" field.

func RefExprGT

func RefExprGT(v string) predicate.Groups

RefExprGT applies the GT predicate on the "ref_expr" field.

func RefExprGTE

func RefExprGTE(v string) predicate.Groups

RefExprGTE applies the GTE predicate on the "ref_expr" field.

func RefExprHasPrefix

func RefExprHasPrefix(v string) predicate.Groups

RefExprHasPrefix applies the HasPrefix predicate on the "ref_expr" field.

func RefExprHasSuffix

func RefExprHasSuffix(v string) predicate.Groups

RefExprHasSuffix applies the HasSuffix predicate on the "ref_expr" field.

func RefExprIn

func RefExprIn(vs ...string) predicate.Groups

RefExprIn applies the In predicate on the "ref_expr" field.

func RefExprLT

func RefExprLT(v string) predicate.Groups

RefExprLT applies the LT predicate on the "ref_expr" field.

func RefExprLTE

func RefExprLTE(v string) predicate.Groups

RefExprLTE applies the LTE predicate on the "ref_expr" field.

func RefExprNEQ

func RefExprNEQ(v string) predicate.Groups

RefExprNEQ applies the NEQ predicate on the "ref_expr" field.

func RefExprNotIn

func RefExprNotIn(vs ...string) predicate.Groups

RefExprNotIn applies the NotIn predicate on the "ref_expr" field.

func RefID

func RefID(v int) predicate.Groups

RefID applies equality check predicate on the "ref_id" field. It's identical to RefIDEQ.

func RefIDEQ

func RefIDEQ(v int) predicate.Groups

RefIDEQ applies the EQ predicate on the "ref_id" field.

func RefIDGT

func RefIDGT(v int) predicate.Groups

RefIDGT applies the GT predicate on the "ref_id" field.

func RefIDGTE

func RefIDGTE(v int) predicate.Groups

RefIDGTE applies the GTE predicate on the "ref_id" field.

func RefIDIn

func RefIDIn(vs ...int) predicate.Groups

RefIDIn applies the In predicate on the "ref_id" field.

func RefIDLT

func RefIDLT(v int) predicate.Groups

RefIDLT applies the LT predicate on the "ref_id" field.

func RefIDLTE

func RefIDLTE(v int) predicate.Groups

RefIDLTE applies the LTE predicate on the "ref_id" field.

func RefIDNEQ

func RefIDNEQ(v int) predicate.Groups

RefIDNEQ applies the NEQ predicate on the "ref_id" field.

func RefIDNotIn

func RefIDNotIn(vs ...int) predicate.Groups

RefIDNotIn applies the NotIn predicate on the "ref_id" field.

func SortOrder

func SortOrder(v int) predicate.Groups

SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.

func SortOrderEQ

func SortOrderEQ(v int) predicate.Groups

SortOrderEQ applies the EQ predicate on the "sort_order" field.

func SortOrderGT

func SortOrderGT(v int) predicate.Groups

SortOrderGT applies the GT predicate on the "sort_order" field.

func SortOrderGTE

func SortOrderGTE(v int) predicate.Groups

SortOrderGTE applies the GTE predicate on the "sort_order" field.

func SortOrderIn

func SortOrderIn(vs ...int) predicate.Groups

SortOrderIn applies the In predicate on the "sort_order" field.

func SortOrderLT

func SortOrderLT(v int) predicate.Groups

SortOrderLT applies the LT predicate on the "sort_order" field.

func SortOrderLTE

func SortOrderLTE(v int) predicate.Groups

SortOrderLTE applies the LTE predicate on the "sort_order" field.

func SortOrderNEQ

func SortOrderNEQ(v int) predicate.Groups

SortOrderNEQ applies the NEQ predicate on the "sort_order" field.

func SortOrderNotIn

func SortOrderNotIn(vs ...int) predicate.Groups

SortOrderNotIn applies the NotIn predicate on the "sort_order" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Groups

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Groups

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Groups

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Groups

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Groups

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Groups

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Groups

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Groups

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Groups

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.Groups

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.Groups

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.Groups

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.Groups

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.Groups

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Groups

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.Groups

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.Groups

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.Groups

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.Groups

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Groups

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Visibility

func Visibility(v int) predicate.Groups

Visibility applies equality check predicate on the "visibility" field. It's identical to VisibilityEQ.

func VisibilityEQ

func VisibilityEQ(v int) predicate.Groups

VisibilityEQ applies the EQ predicate on the "visibility" field.

func VisibilityGT

func VisibilityGT(v int) predicate.Groups

VisibilityGT applies the GT predicate on the "visibility" field.

func VisibilityGTE

func VisibilityGTE(v int) predicate.Groups

VisibilityGTE applies the GTE predicate on the "visibility" field.

func VisibilityIn

func VisibilityIn(vs ...int) predicate.Groups

VisibilityIn applies the In predicate on the "visibility" field.

func VisibilityLT

func VisibilityLT(v int) predicate.Groups

VisibilityLT applies the LT predicate on the "visibility" field.

func VisibilityLTE

func VisibilityLTE(v int) predicate.Groups

VisibilityLTE applies the LTE predicate on the "visibility" field.

func VisibilityNEQ

func VisibilityNEQ(v int) predicate.Groups

VisibilityNEQ applies the NEQ predicate on the "visibility" field.

func VisibilityNotIn

func VisibilityNotIn(vs ...int) predicate.Groups

VisibilityNotIn applies the NotIn predicate on the "visibility" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Groups queries.

func ByCode

func ByCode(opts ...sql.OrderTermOption) OrderOption

ByCode orders the results by the code field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by 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 ByDisplayName

func ByDisplayName(opts ...sql.OrderTermOption) OrderOption

ByDisplayName orders the results by the display_name field.

func ByGroupStatus

func ByGroupStatus(opts ...sql.OrderTermOption) OrderOption

ByGroupStatus orders the results by the group_status field.

func ByGroupType

func ByGroupType(opts ...sql.OrderTermOption) OrderOption

ByGroupType orders the results by the group_type field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMaxMembers

func ByMaxMembers(opts ...sql.OrderTermOption) OrderOption

ByMaxMembers orders the results by the max_members field.

func ByParentID

func ByParentID(opts ...sql.OrderTermOption) OrderOption

ByParentID orders the results by the parent_id field.

func ByRefExpr

func ByRefExpr(opts ...sql.OrderTermOption) OrderOption

ByRefExpr orders the results by the ref_expr field.

func ByRefID

func ByRefID(opts ...sql.OrderTermOption) OrderOption

ByRefID orders the results by the ref_id field.

func BySortOrder

func BySortOrder(opts ...sql.OrderTermOption) OrderOption

BySortOrder orders the results by the sort_order field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

func ByVisibility

func ByVisibility(opts ...sql.OrderTermOption) OrderOption

ByVisibility orders the results by the visibility field.

Jump to

Keyboard shortcuts

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