Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserGroup) predicate.UserGroup
- func GroupID(v int) predicate.UserGroup
- func GroupIDEQ(v int) predicate.UserGroup
- func GroupIDIn(vs ...int) predicate.UserGroup
- func GroupIDNEQ(v int) predicate.UserGroup
- func GroupIDNotIn(vs ...int) predicate.UserGroup
- func HasGroup() predicate.UserGroup
- func HasGroupWith(preds ...predicate.Group) predicate.UserGroup
- func HasUser() predicate.UserGroup
- func HasUserWith(preds ...predicate.User) predicate.UserGroup
- func ID(id int) predicate.UserGroup
- func IDEQ(id int) predicate.UserGroup
- func IDGT(id int) predicate.UserGroup
- func IDGTE(id int) predicate.UserGroup
- func IDIn(ids ...int) predicate.UserGroup
- func IDLT(id int) predicate.UserGroup
- func IDLTE(id int) predicate.UserGroup
- func IDNEQ(id int) predicate.UserGroup
- func IDNotIn(ids ...int) predicate.UserGroup
- func JoinedAt(v time.Time) predicate.UserGroup
- func JoinedAtEQ(v time.Time) predicate.UserGroup
- func JoinedAtGT(v time.Time) predicate.UserGroup
- func JoinedAtGTE(v time.Time) predicate.UserGroup
- func JoinedAtIn(vs ...time.Time) predicate.UserGroup
- func JoinedAtLT(v time.Time) predicate.UserGroup
- func JoinedAtLTE(v time.Time) predicate.UserGroup
- func JoinedAtNEQ(v time.Time) predicate.UserGroup
- func JoinedAtNotIn(vs ...time.Time) predicate.UserGroup
- func Not(p predicate.UserGroup) predicate.UserGroup
- func Or(predicates ...predicate.UserGroup) predicate.UserGroup
- func UserID(v int) predicate.UserGroup
- func UserIDEQ(v int) predicate.UserGroup
- func UserIDIn(vs ...int) predicate.UserGroup
- func UserIDNEQ(v int) predicate.UserGroup
- func UserIDNotIn(vs ...int) predicate.UserGroup
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the usergroup type in the database. Label = "user_group" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldJoinedAt holds the string denoting the joined_at field in the database. FieldJoinedAt = "joined_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldGroupID holds the string denoting the group_id field in the database. FieldGroupID = "group_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // Table holds the table name of the usergroup in the database. Table = "user_groups" // UserTable is the table that holds the user relation/edge. UserTable = "user_groups" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // GroupTable is the table that holds the group relation/edge. GroupTable = "user_groups" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_id" )
Variables ¶
var Columns = []string{ FieldID, FieldJoinedAt, FieldUserID, FieldGroupID, }
Columns holds all SQL columns for usergroup fields.
var ( // DefaultJoinedAt holds the default value on creation for the "joined_at" field. DefaultJoinedAt func() time.Time )
Functions ¶
func GroupID ¶
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDNEQ ¶
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func JoinedAt ¶
JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.
func JoinedAtEQ ¶
JoinedAtEQ applies the EQ predicate on the "joined_at" field.
func JoinedAtGT ¶
JoinedAtGT applies the GT predicate on the "joined_at" field.
func JoinedAtGTE ¶
JoinedAtGTE applies the GTE predicate on the "joined_at" field.
func JoinedAtIn ¶
JoinedAtIn applies the In predicate on the "joined_at" field.
func JoinedAtLT ¶
JoinedAtLT applies the LT predicate on the "joined_at" field.
func JoinedAtLTE ¶
JoinedAtLTE applies the LTE predicate on the "joined_at" field.
func JoinedAtNEQ ¶
JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.
func JoinedAtNotIn ¶
JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.