Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subscription) predicate.Subscription
- func CreatedAt(v time.Time) predicate.Subscription
- func CreatedAtEQ(v time.Time) predicate.Subscription
- func CreatedAtGT(v time.Time) predicate.Subscription
- func CreatedAtGTE(v time.Time) predicate.Subscription
- func CreatedAtIn(vs ...time.Time) predicate.Subscription
- func CreatedAtLT(v time.Time) predicate.Subscription
- func CreatedAtLTE(v time.Time) predicate.Subscription
- func CreatedAtNEQ(v time.Time) predicate.Subscription
- func CreatedAtNotIn(vs ...time.Time) predicate.Subscription
- func HasAccount() predicate.Subscription
- func HasAccountWith(preds ...predicate.Account) predicate.Subscription
- func HasNotifications() predicate.Subscription
- func HasNotificationsWith(preds ...predicate.Notification) predicate.Subscription
- func ID(id xid.ID) predicate.Subscription
- func IDEQ(id xid.ID) predicate.Subscription
- func IDGT(id xid.ID) predicate.Subscription
- func IDGTE(id xid.ID) predicate.Subscription
- func IDIn(ids ...xid.ID) predicate.Subscription
- func IDLT(id xid.ID) predicate.Subscription
- func IDLTE(id xid.ID) predicate.Subscription
- func IDNEQ(id xid.ID) predicate.Subscription
- func IDNotIn(ids ...xid.ID) predicate.Subscription
- func Not(p predicate.Subscription) predicate.Subscription
- func Or(predicates ...predicate.Subscription) predicate.Subscription
- func RefersTo(v string) predicate.Subscription
- func RefersToContains(v string) predicate.Subscription
- func RefersToContainsFold(v string) predicate.Subscription
- func RefersToEQ(v string) predicate.Subscription
- func RefersToEqualFold(v string) predicate.Subscription
- func RefersToGT(v string) predicate.Subscription
- func RefersToGTE(v string) predicate.Subscription
- func RefersToHasPrefix(v string) predicate.Subscription
- func RefersToHasSuffix(v string) predicate.Subscription
- func RefersToIn(vs ...string) predicate.Subscription
- func RefersToLT(v string) predicate.Subscription
- func RefersToLTE(v string) predicate.Subscription
- func RefersToNEQ(v string) predicate.Subscription
- func RefersToNotIn(vs ...string) predicate.Subscription
- func RefersType(v string) predicate.Subscription
- func RefersTypeContains(v string) predicate.Subscription
- func RefersTypeContainsFold(v string) predicate.Subscription
- func RefersTypeEQ(v string) predicate.Subscription
- func RefersTypeEqualFold(v string) predicate.Subscription
- func RefersTypeGT(v string) predicate.Subscription
- func RefersTypeGTE(v string) predicate.Subscription
- func RefersTypeHasPrefix(v string) predicate.Subscription
- func RefersTypeHasSuffix(v string) predicate.Subscription
- func RefersTypeIn(vs ...string) predicate.Subscription
- func RefersTypeLT(v string) predicate.Subscription
- func RefersTypeLTE(v string) predicate.Subscription
- func RefersTypeNEQ(v string) predicate.Subscription
- func RefersTypeNotIn(vs ...string) predicate.Subscription
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the subscription type in the database. Label = "subscription" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldRefersType holds the string denoting the refers_type field in the database. FieldRefersType = "refers_type" // FieldRefersTo holds the string denoting the refers_to field in the database. FieldRefersTo = "refers_to" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // EdgeNotifications holds the string denoting the notifications edge name in mutations. EdgeNotifications = "notifications" // Table holds the table name of the subscription in the database. Table = "subscriptions" // AccountTable is the table that holds the account relation/edge. AccountTable = "subscriptions" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "subscription_account" // NotificationsTable is the table that holds the notifications relation/edge. NotificationsTable = "notifications" // NotificationsInverseTable is the table name for the Notification entity. // It exists in this package in order to avoid circular dependency with the "notification" package. NotificationsInverseTable = "notifications" // NotificationsColumn is the table column denoting the notifications relation/edge. NotificationsColumn = "subscription_notifications" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // RefersTypeValidator is a validator for the "refers_type" field. It is called by the builders before save. RefersTypeValidator func(string) error // RefersToValidator is a validator for the "refers_to" field. It is called by the builders before save. RefersToValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldRefersType, FieldRefersTo, }
Columns holds all SQL columns for subscription fields.
var ForeignKeys = []string{
"account_subscriptions",
"subscription_account",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "subscriptions" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Subscription) predicate.Subscription
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Subscription
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Subscription
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Subscription
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Subscription
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Subscription
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Subscription
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Subscription
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Subscription
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Subscription
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasAccount ¶
func HasAccount() predicate.Subscription
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
func HasAccountWith(preds ...predicate.Account) predicate.Subscription
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasNotifications ¶
func HasNotifications() predicate.Subscription
HasNotifications applies the HasEdge predicate on the "notifications" edge.
func HasNotificationsWith ¶
func HasNotificationsWith(preds ...predicate.Notification) predicate.Subscription
HasNotificationsWith applies the HasEdge predicate on the "notifications" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id xid.ID) predicate.Subscription
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id xid.ID) predicate.Subscription
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id xid.ID) predicate.Subscription
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...xid.ID) predicate.Subscription
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id xid.ID) predicate.Subscription
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id xid.ID) predicate.Subscription
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id xid.ID) predicate.Subscription
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...xid.ID) predicate.Subscription
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Subscription) predicate.Subscription
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Subscription) predicate.Subscription
Or groups predicates with the OR operator between them.
func RefersTo ¶
func RefersTo(v string) predicate.Subscription
RefersTo applies equality check predicate on the "refers_to" field. It's identical to RefersToEQ.
func RefersToContains ¶
func RefersToContains(v string) predicate.Subscription
RefersToContains applies the Contains predicate on the "refers_to" field.
func RefersToContainsFold ¶
func RefersToContainsFold(v string) predicate.Subscription
RefersToContainsFold applies the ContainsFold predicate on the "refers_to" field.
func RefersToEQ ¶
func RefersToEQ(v string) predicate.Subscription
RefersToEQ applies the EQ predicate on the "refers_to" field.
func RefersToEqualFold ¶
func RefersToEqualFold(v string) predicate.Subscription
RefersToEqualFold applies the EqualFold predicate on the "refers_to" field.
func RefersToGT ¶
func RefersToGT(v string) predicate.Subscription
RefersToGT applies the GT predicate on the "refers_to" field.
func RefersToGTE ¶
func RefersToGTE(v string) predicate.Subscription
RefersToGTE applies the GTE predicate on the "refers_to" field.
func RefersToHasPrefix ¶
func RefersToHasPrefix(v string) predicate.Subscription
RefersToHasPrefix applies the HasPrefix predicate on the "refers_to" field.
func RefersToHasSuffix ¶
func RefersToHasSuffix(v string) predicate.Subscription
RefersToHasSuffix applies the HasSuffix predicate on the "refers_to" field.
func RefersToIn ¶
func RefersToIn(vs ...string) predicate.Subscription
RefersToIn applies the In predicate on the "refers_to" field.
func RefersToLT ¶
func RefersToLT(v string) predicate.Subscription
RefersToLT applies the LT predicate on the "refers_to" field.
func RefersToLTE ¶
func RefersToLTE(v string) predicate.Subscription
RefersToLTE applies the LTE predicate on the "refers_to" field.
func RefersToNEQ ¶
func RefersToNEQ(v string) predicate.Subscription
RefersToNEQ applies the NEQ predicate on the "refers_to" field.
func RefersToNotIn ¶
func RefersToNotIn(vs ...string) predicate.Subscription
RefersToNotIn applies the NotIn predicate on the "refers_to" field.
func RefersType ¶
func RefersType(v string) predicate.Subscription
RefersType applies equality check predicate on the "refers_type" field. It's identical to RefersTypeEQ.
func RefersTypeContains ¶
func RefersTypeContains(v string) predicate.Subscription
RefersTypeContains applies the Contains predicate on the "refers_type" field.
func RefersTypeContainsFold ¶
func RefersTypeContainsFold(v string) predicate.Subscription
RefersTypeContainsFold applies the ContainsFold predicate on the "refers_type" field.
func RefersTypeEQ ¶
func RefersTypeEQ(v string) predicate.Subscription
RefersTypeEQ applies the EQ predicate on the "refers_type" field.
func RefersTypeEqualFold ¶
func RefersTypeEqualFold(v string) predicate.Subscription
RefersTypeEqualFold applies the EqualFold predicate on the "refers_type" field.
func RefersTypeGT ¶
func RefersTypeGT(v string) predicate.Subscription
RefersTypeGT applies the GT predicate on the "refers_type" field.
func RefersTypeGTE ¶
func RefersTypeGTE(v string) predicate.Subscription
RefersTypeGTE applies the GTE predicate on the "refers_type" field.
func RefersTypeHasPrefix ¶
func RefersTypeHasPrefix(v string) predicate.Subscription
RefersTypeHasPrefix applies the HasPrefix predicate on the "refers_type" field.
func RefersTypeHasSuffix ¶
func RefersTypeHasSuffix(v string) predicate.Subscription
RefersTypeHasSuffix applies the HasSuffix predicate on the "refers_type" field.
func RefersTypeIn ¶
func RefersTypeIn(vs ...string) predicate.Subscription
RefersTypeIn applies the In predicate on the "refers_type" field.
func RefersTypeLT ¶
func RefersTypeLT(v string) predicate.Subscription
RefersTypeLT applies the LT predicate on the "refers_type" field.
func RefersTypeLTE ¶
func RefersTypeLTE(v string) predicate.Subscription
RefersTypeLTE applies the LTE predicate on the "refers_type" field.
func RefersTypeNEQ ¶
func RefersTypeNEQ(v string) predicate.Subscription
RefersTypeNEQ applies the NEQ predicate on the "refers_type" field.
func RefersTypeNotIn ¶
func RefersTypeNotIn(vs ...string) predicate.Subscription
RefersTypeNotIn applies the NotIn predicate on the "refers_type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.