Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GroupMembership) predicate.GroupMembership
- func CreatedAt(v time.Time) predicate.GroupMembership
- func CreatedAtEQ(v time.Time) predicate.GroupMembership
- func CreatedAtGT(v time.Time) predicate.GroupMembership
- func CreatedAtGTE(v time.Time) predicate.GroupMembership
- func CreatedAtIn(vs ...time.Time) predicate.GroupMembership
- func CreatedAtLT(v time.Time) predicate.GroupMembership
- func CreatedAtLTE(v time.Time) predicate.GroupMembership
- func CreatedAtNEQ(v time.Time) predicate.GroupMembership
- func CreatedAtNotIn(vs ...time.Time) predicate.GroupMembership
- func DeletedAt(v time.Time) predicate.GroupMembership
- func DeletedAtEQ(v time.Time) predicate.GroupMembership
- func DeletedAtGT(v time.Time) predicate.GroupMembership
- func DeletedAtGTE(v time.Time) predicate.GroupMembership
- func DeletedAtIn(vs ...time.Time) predicate.GroupMembership
- func DeletedAtIsNil() predicate.GroupMembership
- func DeletedAtLT(v time.Time) predicate.GroupMembership
- func DeletedAtLTE(v time.Time) predicate.GroupMembership
- func DeletedAtNEQ(v time.Time) predicate.GroupMembership
- func DeletedAtNotIn(vs ...time.Time) predicate.GroupMembership
- func DeletedAtNotNil() predicate.GroupMembership
- func GroupID(v uuid.UUID) predicate.GroupMembership
- func GroupIDEQ(v uuid.UUID) predicate.GroupMembership
- func GroupIDIn(vs ...uuid.UUID) predicate.GroupMembership
- func GroupIDNEQ(v uuid.UUID) predicate.GroupMembership
- func GroupIDNotIn(vs ...uuid.UUID) predicate.GroupMembership
- func HasGroup() predicate.GroupMembership
- func HasGroupWith(preds ...predicate.Group) predicate.GroupMembership
- func HasUser() predicate.GroupMembership
- func HasUserWith(preds ...predicate.User) predicate.GroupMembership
- func ID(id uuid.UUID) predicate.GroupMembership
- func IDEQ(id uuid.UUID) predicate.GroupMembership
- func IDGT(id uuid.UUID) predicate.GroupMembership
- func IDGTE(id uuid.UUID) predicate.GroupMembership
- func IDIn(ids ...uuid.UUID) predicate.GroupMembership
- func IDLT(id uuid.UUID) predicate.GroupMembership
- func IDLTE(id uuid.UUID) predicate.GroupMembership
- func IDNEQ(id uuid.UUID) predicate.GroupMembership
- func IDNotIn(ids ...uuid.UUID) predicate.GroupMembership
- func Maintainer(v bool) predicate.GroupMembership
- func MaintainerEQ(v bool) predicate.GroupMembership
- func MaintainerNEQ(v bool) predicate.GroupMembership
- func Not(p predicate.GroupMembership) predicate.GroupMembership
- func Or(predicates ...predicate.GroupMembership) predicate.GroupMembership
- func UpdatedAt(v time.Time) predicate.GroupMembership
- func UpdatedAtEQ(v time.Time) predicate.GroupMembership
- func UpdatedAtGT(v time.Time) predicate.GroupMembership
- func UpdatedAtGTE(v time.Time) predicate.GroupMembership
- func UpdatedAtIn(vs ...time.Time) predicate.GroupMembership
- func UpdatedAtLT(v time.Time) predicate.GroupMembership
- func UpdatedAtLTE(v time.Time) predicate.GroupMembership
- func UpdatedAtNEQ(v time.Time) predicate.GroupMembership
- func UpdatedAtNotIn(vs ...time.Time) predicate.GroupMembership
- func UserID(v uuid.UUID) predicate.GroupMembership
- func UserIDEQ(v uuid.UUID) predicate.GroupMembership
- func UserIDIn(vs ...uuid.UUID) predicate.GroupMembership
- func UserIDNEQ(v uuid.UUID) predicate.GroupMembership
- func UserIDNotIn(vs ...uuid.UUID) predicate.GroupMembership
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(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 ByMaintainer(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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 groupmembership type in the database. Label = "group_membership" // 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" // FieldMaintainer holds the string denoting the maintainer field in the database. FieldMaintainer = "maintainer" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_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 groupmembership in the database. Table = "group_memberships" // GroupTable is the table that holds the group relation/edge. GroupTable = "group_memberships" // 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_memberships" // 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 ( // DefaultGroupID holds the default value on creation for the "group_id" field. DefaultGroupID func() uuid.UUID // DefaultUserID holds the default value on creation for the "user_id" field. DefaultUserID func() uuid.UUID // DefaultMaintainer holds the default value on creation for the "maintainer" field. DefaultMaintainer bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldGroupID, FieldUserID, FieldMaintainer, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for groupmembership fields.
Functions ¶
func And ¶
func And(predicates ...predicate.GroupMembership) predicate.GroupMembership
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.GroupMembership
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.GroupMembership
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.GroupMembership
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.GroupMembership
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.GroupMembership
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.GroupMembership
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.GroupMembership
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.GroupMembership
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.GroupMembership
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.GroupMembership
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.GroupMembership
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.GroupMembership
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.GroupMembership
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.GroupMembership
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.GroupMembership
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.GroupMembership
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.GroupMembership
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.GroupMembership
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.GroupMembership
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.GroupMembership
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func GroupID ¶
func GroupID(v uuid.UUID) predicate.GroupMembership
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDEQ ¶
func GroupIDEQ(v uuid.UUID) predicate.GroupMembership
GroupIDEQ applies the EQ predicate on the "group_id" field.
func GroupIDIn ¶
func GroupIDIn(vs ...uuid.UUID) predicate.GroupMembership
GroupIDIn applies the In predicate on the "group_id" field.
func GroupIDNEQ ¶
func GroupIDNEQ(v uuid.UUID) predicate.GroupMembership
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶
func GroupIDNotIn(vs ...uuid.UUID) predicate.GroupMembership
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func HasGroup ¶
func HasGroup() predicate.GroupMembership
HasGroup applies the HasEdge predicate on the "group" edge.
func HasGroupWith ¶
func HasGroupWith(preds ...predicate.Group) predicate.GroupMembership
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.GroupMembership
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.GroupMembership
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.GroupMembership
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.GroupMembership
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.GroupMembership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.GroupMembership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.GroupMembership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.GroupMembership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.GroupMembership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.GroupMembership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.GroupMembership
IDNotIn applies the NotIn predicate on the ID field.
func Maintainer ¶
func Maintainer(v bool) predicate.GroupMembership
Maintainer applies equality check predicate on the "maintainer" field. It's identical to MaintainerEQ.
func MaintainerEQ ¶
func MaintainerEQ(v bool) predicate.GroupMembership
MaintainerEQ applies the EQ predicate on the "maintainer" field.
func MaintainerNEQ ¶
func MaintainerNEQ(v bool) predicate.GroupMembership
MaintainerNEQ applies the NEQ predicate on the "maintainer" field.
func Not ¶
func Not(p predicate.GroupMembership) predicate.GroupMembership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GroupMembership) predicate.GroupMembership
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.GroupMembership
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.GroupMembership
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.GroupMembership
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.GroupMembership
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.GroupMembership
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.GroupMembership
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.GroupMembership
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.GroupMembership
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.GroupMembership
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.GroupMembership
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.GroupMembership
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.GroupMembership
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.GroupMembership
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.GroupMembership
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 GroupMembership queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_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 ByMaintainer ¶
func ByMaintainer(opts ...sql.OrderTermOption) OrderOption
ByMaintainer orders the results by the maintainer field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at 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.