Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func CreateTime(v time.Time) predicate.Group
- func CreateTimeEQ(v time.Time) predicate.Group
- func CreateTimeGT(v time.Time) predicate.Group
- func CreateTimeGTE(v time.Time) predicate.Group
- func CreateTimeIn(vs ...time.Time) predicate.Group
- func CreateTimeLT(v time.Time) predicate.Group
- func CreateTimeLTE(v time.Time) predicate.Group
- func CreateTimeNEQ(v time.Time) predicate.Group
- func CreateTimeNotIn(vs ...time.Time) predicate.Group
- func DeleteTime(v time.Time) predicate.Group
- func DeleteTimeEQ(v time.Time) predicate.Group
- func DeleteTimeGT(v time.Time) predicate.Group
- func DeleteTimeGTE(v time.Time) predicate.Group
- func DeleteTimeIn(vs ...time.Time) predicate.Group
- func DeleteTimeIsNil() predicate.Group
- func DeleteTimeLT(v time.Time) predicate.Group
- func DeleteTimeLTE(v time.Time) predicate.Group
- func DeleteTimeNEQ(v time.Time) predicate.Group
- func DeleteTimeNotIn(vs ...time.Time) predicate.Group
- func DeleteTimeNotNil() 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 HasGroupMembers() predicate.Group
- func HasGroupMembersWith(preds ...predicate.Member) 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 Sn(v string) predicate.Group
- func SnContains(v string) predicate.Group
- func SnContainsFold(v string) predicate.Group
- func SnEQ(v string) predicate.Group
- func SnEqualFold(v string) predicate.Group
- func SnGT(v string) predicate.Group
- func SnGTE(v string) predicate.Group
- func SnHasPrefix(v string) predicate.Group
- func SnHasSuffix(v string) predicate.Group
- func SnIn(vs ...string) predicate.Group
- func SnLT(v string) predicate.Group
- func SnLTE(v string) predicate.Group
- func SnNEQ(v string) predicate.Group
- func SnNotIn(vs ...string) predicate.Group
- func UpdateTime(v time.Time) predicate.Group
- func UpdateTimeEQ(v time.Time) predicate.Group
- func UpdateTimeGT(v time.Time) predicate.Group
- func UpdateTimeGTE(v time.Time) predicate.Group
- func UpdateTimeIn(vs ...time.Time) predicate.Group
- func UpdateTimeLT(v time.Time) predicate.Group
- func UpdateTimeLTE(v time.Time) predicate.Group
- func UpdateTimeNEQ(v time.Time) predicate.Group
- func UpdateTimeNotIn(vs ...time.Time) predicate.Group
- func ValidColumn(column string) bool
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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldSn, FieldName, FieldDescription, FieldCreateTime, FieldUpdateTime, FieldDeleteTime, }
Columns holds all SQL columns for group fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeleteTime ¶
DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.
func DeleteTimeEQ ¶
DeleteTimeEQ applies the EQ predicate on the "delete_time" field.
func DeleteTimeGT ¶
DeleteTimeGT applies the GT predicate on the "delete_time" field.
func DeleteTimeGTE ¶
DeleteTimeGTE applies the GTE predicate on the "delete_time" field.
func DeleteTimeIn ¶
DeleteTimeIn applies the In predicate on the "delete_time" field.
func DeleteTimeIsNil ¶
DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.
func DeleteTimeLT ¶
DeleteTimeLT applies the LT predicate on the "delete_time" field.
func DeleteTimeLTE ¶
DeleteTimeLTE applies the LTE predicate on the "delete_time" field.
func DeleteTimeNEQ ¶
DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.
func DeleteTimeNotIn ¶
DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.
func DeleteTimeNotNil ¶
DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.
func Description ¶ added in v1.0.10
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶ added in v1.0.10
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶ added in v1.0.10
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶ added in v1.0.10
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶ added in v1.0.10
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶ added in v1.0.10
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶ added in v1.0.10
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶ added in v1.0.10
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶ added in v1.0.10
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶ added in v1.0.10
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶ added in v1.0.10
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶ added in v1.0.10
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶ added in v1.0.10
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶ added in v1.0.10
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasGroupMembers ¶ added in v1.0.10
HasGroupMembers applies the HasEdge predicate on the "group_members" edge.
func HasGroupMembersWith ¶ added in v1.0.10
HasGroupMembersWith applies the HasEdge predicate on the "group_members" 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 SnContains ¶
SnContains applies the Contains predicate on the "sn" field.
func SnContainsFold ¶
SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnEqualFold ¶
SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnHasPrefix ¶
SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasSuffix ¶
SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.