Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Membership) predicate.Membership
- func CreatedAt(v time.Time) predicate.Membership
- func CreatedAtEQ(v time.Time) predicate.Membership
- func CreatedAtGT(v time.Time) predicate.Membership
- func CreatedAtGTE(v time.Time) predicate.Membership
- func CreatedAtIn(vs ...time.Time) predicate.Membership
- func CreatedAtLT(v time.Time) predicate.Membership
- func CreatedAtLTE(v time.Time) predicate.Membership
- func CreatedAtNEQ(v time.Time) predicate.Membership
- func CreatedAtNotIn(vs ...time.Time) predicate.Membership
- func Current(v bool) predicate.Membership
- func CurrentEQ(v bool) predicate.Membership
- func CurrentNEQ(v bool) predicate.Membership
- func HasOrganization() predicate.Membership
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Membership
- func HasUser() predicate.Membership
- func HasUserWith(preds ...predicate.User) predicate.Membership
- func ID(id uuid.UUID) predicate.Membership
- func IDEQ(id uuid.UUID) predicate.Membership
- func IDGT(id uuid.UUID) predicate.Membership
- func IDGTE(id uuid.UUID) predicate.Membership
- func IDIn(ids ...uuid.UUID) predicate.Membership
- func IDLT(id uuid.UUID) predicate.Membership
- func IDLTE(id uuid.UUID) predicate.Membership
- func IDNEQ(id uuid.UUID) predicate.Membership
- func IDNotIn(ids ...uuid.UUID) predicate.Membership
- func Not(p predicate.Membership) predicate.Membership
- func Or(predicates ...predicate.Membership) predicate.Membership
- func UpdatedAt(v time.Time) predicate.Membership
- func UpdatedAtEQ(v time.Time) predicate.Membership
- func UpdatedAtGT(v time.Time) predicate.Membership
- func UpdatedAtGTE(v time.Time) predicate.Membership
- func UpdatedAtIn(vs ...time.Time) predicate.Membership
- func UpdatedAtLT(v time.Time) predicate.Membership
- func UpdatedAtLTE(v time.Time) predicate.Membership
- func UpdatedAtNEQ(v time.Time) predicate.Membership
- func UpdatedAtNotIn(vs ...time.Time) predicate.Membership
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the membership type in the database. Label = "membership" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCurrent holds the string denoting the current field in the database. FieldCurrent = "current" // 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" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the membership in the database. Table = "memberships" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "memberships" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_memberships" // UserTable is the table that holds the user relation/edge. UserTable = "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_memberships" )
Variables ¶
var ( // DefaultCurrent holds the default value on creation for the "current" field. DefaultCurrent 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, FieldCurrent, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for membership fields.
var ForeignKeys = []string{
"organization_memberships",
"user_memberships",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "memberships" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Membership) predicate.Membership
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Membership
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Membership
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Membership
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Membership
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Membership
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Membership
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Membership
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Membership
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Membership
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Current ¶
func Current(v bool) predicate.Membership
Current applies equality check predicate on the "current" field. It's identical to CurrentEQ.
func CurrentEQ ¶
func CurrentEQ(v bool) predicate.Membership
CurrentEQ applies the EQ predicate on the "current" field.
func CurrentNEQ ¶
func CurrentNEQ(v bool) predicate.Membership
CurrentNEQ applies the NEQ predicate on the "current" field.
func HasOrganization ¶
func HasOrganization() predicate.Membership
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Membership
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.Membership
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Membership
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Membership
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Membership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Membership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Membership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Membership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Membership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Membership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Membership
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Membership) predicate.Membership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Membership) predicate.Membership
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Membership
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Membership
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Membership
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Membership
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Membership
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Membership
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Membership
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Membership
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Membership
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.