Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Group
- func ActiveEQ(v bool) predicate.Group
- func ActiveNEQ(v bool) predicate.Group
- func And(predicates ...predicate.Group) predicate.Group
- func Expire(v time.Time) predicate.Group
- func ExpireEQ(v time.Time) predicate.Group
- func ExpireGT(v time.Time) predicate.Group
- func ExpireGTE(v time.Time) predicate.Group
- func ExpireIn(vs ...time.Time) predicate.Group
- func ExpireLT(v time.Time) predicate.Group
- func ExpireLTE(v time.Time) predicate.Group
- func ExpireNEQ(v time.Time) predicate.Group
- func ExpireNotIn(vs ...time.Time) predicate.Group
- func HasBlocked() predicate.Group
- func HasBlockedWith(preds ...predicate.User) predicate.Group
- func HasFiles() predicate.Group
- func HasFilesWith(preds ...predicate.File) predicate.Group
- func HasInfo() predicate.Group
- func HasInfoWith(preds ...predicate.GroupInfo) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) 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 MaxUsers(v int) predicate.Group
- func MaxUsersEQ(v int) predicate.Group
- func MaxUsersGT(v int) predicate.Group
- func MaxUsersGTE(v int) predicate.Group
- func MaxUsersIn(vs ...int) predicate.Group
- func MaxUsersIsNil() predicate.Group
- func MaxUsersLT(v int) predicate.Group
- func MaxUsersLTE(v int) predicate.Group
- func MaxUsersNEQ(v int) predicate.Group
- func MaxUsersNotIn(vs ...int) predicate.Group
- func MaxUsersNotNil() 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 Type(v string) predicate.Group
- func TypeContains(v string) predicate.Group
- func TypeContainsFold(v string) predicate.Group
- func TypeEQ(v string) predicate.Group
- func TypeEqualFold(v string) predicate.Group
- func TypeGT(v string) predicate.Group
- func TypeGTE(v string) predicate.Group
- func TypeHasPrefix(v string) predicate.Group
- func TypeHasSuffix(v string) predicate.Group
- func TypeIn(vs ...string) predicate.Group
- func TypeIsNil() predicate.Group
- func TypeLT(v string) predicate.Group
- func TypeLTE(v string) predicate.Group
- func TypeNEQ(v string) predicate.Group
- func TypeNotIn(vs ...string) predicate.Group
- func TypeNotNil() 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" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldExpire holds the string denoting the expire field in the database. FieldExpire = "expire" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldMaxUsers holds the string denoting the max_users field in the database. FieldMaxUsers = "max_users" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeBlocked holds the string denoting the blocked edge name in mutations. EdgeBlocked = "blocked" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeInfo holds the string denoting the info edge name in mutations. EdgeInfo = "info" // Table holds the table name of the group in the database. Table = "groups" // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "group_files" // BlockedTable is the table that holds the blocked relation/edge. BlockedTable = "users" // BlockedInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. BlockedInverseTable = "users" // BlockedColumn is the table column denoting the blocked relation/edge. BlockedColumn = "group_blocked" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_groups" // 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" // InfoTable is the table that holds the info relation/edge. InfoTable = "groups" // InfoInverseTable is the table name for the GroupInfo entity. // It exists in this package in order to avoid circular dependency with the "groupinfo" package. InfoInverseTable = "group_infos" // InfoColumn is the table column denoting the info relation/edge. InfoColumn = "group_info" )
Variables ¶
var ( // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultMaxUsers holds the default value on creation for the "max_users" field. DefaultMaxUsers int // MaxUsersValidator is a validator for the "max_users" field. It is called by the builders before save. MaxUsersValidator func(int) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldActive, FieldExpire, FieldType, FieldMaxUsers, FieldName, }
Columns holds all SQL columns for group fields.
var ForeignKeys = []string{
"group_info",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "groups" table and are not defined as standalone fields in the schema.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "group_id"} )
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func Expire ¶
Expire applies equality check predicate on the "expire" field. It's identical to ExpireEQ.
func ExpireNotIn ¶
ExpireNotIn applies the NotIn predicate on the "expire" field.
func HasBlocked ¶
HasBlocked applies the HasEdge predicate on the "blocked" edge.
func HasBlockedWith ¶
HasBlockedWith applies the HasEdge predicate on the "blocked" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasInfoWith ¶
HasInfoWith applies the HasEdge predicate on the "info" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func MaxUsers ¶
MaxUsers applies equality check predicate on the "max_users" field. It's identical to MaxUsersEQ.
func MaxUsersEQ ¶
MaxUsersEQ applies the EQ predicate on the "max_users" field.
func MaxUsersGT ¶
MaxUsersGT applies the GT predicate on the "max_users" field.
func MaxUsersGTE ¶
MaxUsersGTE applies the GTE predicate on the "max_users" field.
func MaxUsersIn ¶
MaxUsersIn applies the In predicate on the "max_users" field.
func MaxUsersIsNil ¶
MaxUsersIsNil applies the IsNil predicate on the "max_users" field.
func MaxUsersLT ¶
MaxUsersLT applies the LT predicate on the "max_users" field.
func MaxUsersLTE ¶
MaxUsersLTE applies the LTE predicate on the "max_users" field.
func MaxUsersNEQ ¶
MaxUsersNEQ applies the NEQ predicate on the "max_users" field.
func MaxUsersNotIn ¶
MaxUsersNotIn applies the NotIn predicate on the "max_users" field.
func MaxUsersNotNil ¶
MaxUsersNotNil applies the NotNil predicate on the "max_users" 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 TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeNotNil ¶
TypeNotNil applies the NotNil predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.