Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GroupAssignment) predicate.GroupAssignment
- func CreatedAt(v time.Time) predicate.GroupAssignment
- func CreatedAtEQ(v time.Time) predicate.GroupAssignment
- func CreatedAtGT(v time.Time) predicate.GroupAssignment
- func CreatedAtGTE(v time.Time) predicate.GroupAssignment
- func CreatedAtIn(vs ...time.Time) predicate.GroupAssignment
- func CreatedAtLT(v time.Time) predicate.GroupAssignment
- func CreatedAtLTE(v time.Time) predicate.GroupAssignment
- func CreatedAtNEQ(v time.Time) predicate.GroupAssignment
- func CreatedAtNotIn(vs ...time.Time) predicate.GroupAssignment
- func GroupID(v int64) predicate.GroupAssignment
- func GroupIDEQ(v int64) predicate.GroupAssignment
- func GroupIDIn(vs ...int64) predicate.GroupAssignment
- func GroupIDNEQ(v int64) predicate.GroupAssignment
- func GroupIDNotIn(vs ...int64) predicate.GroupAssignment
- func HasGroup() predicate.GroupAssignment
- func HasGroupWith(preds ...predicate.Group) predicate.GroupAssignment
- func HasUser() predicate.GroupAssignment
- func HasUserWith(preds ...predicate.User) predicate.GroupAssignment
- func ID(id int64) predicate.GroupAssignment
- func IDEQ(id int64) predicate.GroupAssignment
- func IDGT(id int64) predicate.GroupAssignment
- func IDGTE(id int64) predicate.GroupAssignment
- func IDIn(ids ...int64) predicate.GroupAssignment
- func IDLT(id int64) predicate.GroupAssignment
- func IDLTE(id int64) predicate.GroupAssignment
- func IDNEQ(id int64) predicate.GroupAssignment
- func IDNotIn(ids ...int64) predicate.GroupAssignment
- func Not(p predicate.GroupAssignment) predicate.GroupAssignment
- func Or(predicates ...predicate.GroupAssignment) predicate.GroupAssignment
- func PriceMultiplier(v int) predicate.GroupAssignment
- func PriceMultiplierEQ(v int) predicate.GroupAssignment
- func PriceMultiplierGT(v int) predicate.GroupAssignment
- func PriceMultiplierGTE(v int) predicate.GroupAssignment
- func PriceMultiplierIn(vs ...int) predicate.GroupAssignment
- func PriceMultiplierIsNil() predicate.GroupAssignment
- func PriceMultiplierLT(v int) predicate.GroupAssignment
- func PriceMultiplierLTE(v int) predicate.GroupAssignment
- func PriceMultiplierNEQ(v int) predicate.GroupAssignment
- func PriceMultiplierNotIn(vs ...int) predicate.GroupAssignment
- func PriceMultiplierNotNil() predicate.GroupAssignment
- func UserID(v int64) predicate.GroupAssignment
- func UserIDEQ(v int64) predicate.GroupAssignment
- func UserIDIn(vs ...int64) predicate.GroupAssignment
- func UserIDNEQ(v int64) predicate.GroupAssignment
- func UserIDNotIn(vs ...int64) predicate.GroupAssignment
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGroupID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPriceMultiplier(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the groupassignment type in the database. Label = "group_assignment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGroupID holds the string denoting the group_id field in the database. FieldGroupID = "group_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldPriceMultiplier holds the string denoting the price_multiplier field in the database. FieldPriceMultiplier = "price_multiplier" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the groupassignment in the database. Table = "group_assignments" // GroupTable is the table that holds the group relation/edge. GroupTable = "group_assignments" // 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" // UserTable is the table that holds the user relation/edge. UserTable = "group_assignments" // 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" )
Variables ¶
var Columns = []string{ FieldID, FieldGroupID, FieldUserID, FieldPriceMultiplier, FieldCreatedAt, }
Columns holds all SQL columns for groupassignment fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func And ¶
func And(predicates ...predicate.GroupAssignment) predicate.GroupAssignment
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.GroupAssignment
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.GroupAssignment
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.GroupAssignment
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.GroupAssignment
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.GroupAssignment
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.GroupAssignment
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.GroupAssignment
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.GroupAssignment
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.GroupAssignment
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func GroupID ¶
func GroupID(v int64) predicate.GroupAssignment
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDEQ ¶
func GroupIDEQ(v int64) predicate.GroupAssignment
GroupIDEQ applies the EQ predicate on the "group_id" field.
func GroupIDIn ¶
func GroupIDIn(vs ...int64) predicate.GroupAssignment
GroupIDIn applies the In predicate on the "group_id" field.
func GroupIDNEQ ¶
func GroupIDNEQ(v int64) predicate.GroupAssignment
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶
func GroupIDNotIn(vs ...int64) predicate.GroupAssignment
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func HasGroup ¶
func HasGroup() predicate.GroupAssignment
HasGroup applies the HasEdge predicate on the "group" edge.
func HasGroupWith ¶
func HasGroupWith(preds ...predicate.Group) predicate.GroupAssignment
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.GroupAssignment
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.GroupAssignment
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.GroupAssignment
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.GroupAssignment
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.GroupAssignment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.GroupAssignment
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.GroupAssignment
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.GroupAssignment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.GroupAssignment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.GroupAssignment
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.GroupAssignment) predicate.GroupAssignment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GroupAssignment) predicate.GroupAssignment
Or groups predicates with the OR operator between them.
func PriceMultiplier ¶
func PriceMultiplier(v int) predicate.GroupAssignment
PriceMultiplier applies equality check predicate on the "price_multiplier" field. It's identical to PriceMultiplierEQ.
func PriceMultiplierEQ ¶
func PriceMultiplierEQ(v int) predicate.GroupAssignment
PriceMultiplierEQ applies the EQ predicate on the "price_multiplier" field.
func PriceMultiplierGT ¶
func PriceMultiplierGT(v int) predicate.GroupAssignment
PriceMultiplierGT applies the GT predicate on the "price_multiplier" field.
func PriceMultiplierGTE ¶
func PriceMultiplierGTE(v int) predicate.GroupAssignment
PriceMultiplierGTE applies the GTE predicate on the "price_multiplier" field.
func PriceMultiplierIn ¶
func PriceMultiplierIn(vs ...int) predicate.GroupAssignment
PriceMultiplierIn applies the In predicate on the "price_multiplier" field.
func PriceMultiplierIsNil ¶
func PriceMultiplierIsNil() predicate.GroupAssignment
PriceMultiplierIsNil applies the IsNil predicate on the "price_multiplier" field.
func PriceMultiplierLT ¶
func PriceMultiplierLT(v int) predicate.GroupAssignment
PriceMultiplierLT applies the LT predicate on the "price_multiplier" field.
func PriceMultiplierLTE ¶
func PriceMultiplierLTE(v int) predicate.GroupAssignment
PriceMultiplierLTE applies the LTE predicate on the "price_multiplier" field.
func PriceMultiplierNEQ ¶
func PriceMultiplierNEQ(v int) predicate.GroupAssignment
PriceMultiplierNEQ applies the NEQ predicate on the "price_multiplier" field.
func PriceMultiplierNotIn ¶
func PriceMultiplierNotIn(vs ...int) predicate.GroupAssignment
PriceMultiplierNotIn applies the NotIn predicate on the "price_multiplier" field.
func PriceMultiplierNotNil ¶
func PriceMultiplierNotNil() predicate.GroupAssignment
PriceMultiplierNotNil applies the NotNil predicate on the "price_multiplier" field.
func UserID ¶
func UserID(v int64) predicate.GroupAssignment
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int64) predicate.GroupAssignment
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int64) predicate.GroupAssignment
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int64) predicate.GroupAssignment
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int64) predicate.GroupAssignment
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the GroupAssignment queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByGroupID ¶
func ByGroupID(opts ...sql.OrderTermOption) OrderOption
ByGroupID orders the results by the group_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPriceMultiplier ¶
func ByPriceMultiplier(opts ...sql.OrderTermOption) OrderOption
ByPriceMultiplier orders the results by the price_multiplier field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.