group

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 4 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"
	// FieldSn holds the string denoting the sn field in the database.
	FieldSn = "sn"
	// 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"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldDeleteTime holds the string denoting the delete_time field in the database.
	FieldDeleteTime = "delete_time"
	// EdgeGroupMembers holds the string denoting the group_members edge name in mutations.
	EdgeGroupMembers = "group_members"
	// Table holds the table name of the group in the database.
	Table = "member_group"
	// GroupMembersTable is the table that holds the group_members relation/edge.
	GroupMembersTable = "member"
	// GroupMembersInverseTable is the table name for the Member entity.
	// It exists in this package in order to avoid circular dependency with the "member" package.
	GroupMembersInverseTable = "member"
	// GroupMembersColumn is the table column denoting the group_members relation/edge.
	GroupMembersColumn = "group_id"
)

Variables

View Source
var (
	// DefaultSn holds the default value on creation for the "sn" field.
	DefaultSn func() string
	// SnValidator is a validator for the "sn" field. It is called by the builders before save.
	SnValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for group fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Group

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Group

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Group

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Group

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Group

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Group

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Group

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Group

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Group

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DeleteTime

func DeleteTime(v time.Time) predicate.Group

DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.

func DeleteTimeEQ

func DeleteTimeEQ(v time.Time) predicate.Group

DeleteTimeEQ applies the EQ predicate on the "delete_time" field.

func DeleteTimeGT

func DeleteTimeGT(v time.Time) predicate.Group

DeleteTimeGT applies the GT predicate on the "delete_time" field.

func DeleteTimeGTE

func DeleteTimeGTE(v time.Time) predicate.Group

DeleteTimeGTE applies the GTE predicate on the "delete_time" field.

func DeleteTimeIn

func DeleteTimeIn(vs ...time.Time) predicate.Group

DeleteTimeIn applies the In predicate on the "delete_time" field.

func DeleteTimeIsNil

func DeleteTimeIsNil() predicate.Group

DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.

func DeleteTimeLT

func DeleteTimeLT(v time.Time) predicate.Group

DeleteTimeLT applies the LT predicate on the "delete_time" field.

func DeleteTimeLTE

func DeleteTimeLTE(v time.Time) predicate.Group

DeleteTimeLTE applies the LTE predicate on the "delete_time" field.

func DeleteTimeNEQ

func DeleteTimeNEQ(v time.Time) predicate.Group

DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.

func DeleteTimeNotIn

func DeleteTimeNotIn(vs ...time.Time) predicate.Group

DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.

func DeleteTimeNotNil

func DeleteTimeNotNil() predicate.Group

DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.

func Description added in v1.0.10

func Description(v string) predicate.Group

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

func DescriptionContains added in v1.0.10

func DescriptionContains(v string) predicate.Group

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

func DescriptionContainsFold added in v1.0.10

func DescriptionContainsFold(v string) predicate.Group

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

func DescriptionEQ added in v1.0.10

func DescriptionEQ(v string) predicate.Group

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

func DescriptionEqualFold added in v1.0.10

func DescriptionEqualFold(v string) predicate.Group

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

func DescriptionGT added in v1.0.10

func DescriptionGT(v string) predicate.Group

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

func DescriptionGTE added in v1.0.10

func DescriptionGTE(v string) predicate.Group

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

func DescriptionHasPrefix added in v1.0.10

func DescriptionHasPrefix(v string) predicate.Group

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

func DescriptionHasSuffix added in v1.0.10

func DescriptionHasSuffix(v string) predicate.Group

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

func DescriptionIn added in v1.0.10

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

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

func DescriptionLT added in v1.0.10

func DescriptionLT(v string) predicate.Group

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

func DescriptionLTE added in v1.0.10

func DescriptionLTE(v string) predicate.Group

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

func DescriptionNEQ added in v1.0.10

func DescriptionNEQ(v string) predicate.Group

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

func DescriptionNotIn added in v1.0.10

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

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

func HasGroupMembers added in v1.0.10

func HasGroupMembers() predicate.Group

HasGroupMembers applies the HasEdge predicate on the "group_members" edge.

func HasGroupMembersWith added in v1.0.10

func HasGroupMembersWith(preds ...predicate.Member) predicate.Group

HasGroupMembersWith applies the HasEdge predicate on the "group_members" 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 Sn

func Sn(v string) predicate.Group

Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.

func SnContains

func SnContains(v string) predicate.Group

SnContains applies the Contains predicate on the "sn" field.

func SnContainsFold

func SnContainsFold(v string) predicate.Group

SnContainsFold applies the ContainsFold predicate on the "sn" field.

func SnEQ

func SnEQ(v string) predicate.Group

SnEQ applies the EQ predicate on the "sn" field.

func SnEqualFold

func SnEqualFold(v string) predicate.Group

SnEqualFold applies the EqualFold predicate on the "sn" field.

func SnGT

func SnGT(v string) predicate.Group

SnGT applies the GT predicate on the "sn" field.

func SnGTE

func SnGTE(v string) predicate.Group

SnGTE applies the GTE predicate on the "sn" field.

func SnHasPrefix

func SnHasPrefix(v string) predicate.Group

SnHasPrefix applies the HasPrefix predicate on the "sn" field.

func SnHasSuffix

func SnHasSuffix(v string) predicate.Group

SnHasSuffix applies the HasSuffix predicate on the "sn" field.

func SnIn

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

SnIn applies the In predicate on the "sn" field.

func SnLT

func SnLT(v string) predicate.Group

SnLT applies the LT predicate on the "sn" field.

func SnLTE

func SnLTE(v string) predicate.Group

SnLTE applies the LTE predicate on the "sn" field.

func SnNEQ

func SnNEQ(v string) predicate.Group

SnNEQ applies the NEQ predicate on the "sn" field.

func SnNotIn

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

SnNotIn applies the NotIn predicate on the "sn" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Group

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Group

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Group

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Group

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Group

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Group

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Group

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Group

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Group

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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