Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subscriptions) predicate.Subscriptions
- func AppID(v string) predicate.Subscriptions
- func AppIDContains(v string) predicate.Subscriptions
- func AppIDContainsFold(v string) predicate.Subscriptions
- func AppIDEQ(v string) predicate.Subscriptions
- func AppIDEqualFold(v string) predicate.Subscriptions
- func AppIDGT(v string) predicate.Subscriptions
- func AppIDGTE(v string) predicate.Subscriptions
- func AppIDHasPrefix(v string) predicate.Subscriptions
- func AppIDHasSuffix(v string) predicate.Subscriptions
- func AppIDIn(vs ...string) predicate.Subscriptions
- func AppIDLT(v string) predicate.Subscriptions
- func AppIDLTE(v string) predicate.Subscriptions
- func AppIDNEQ(v string) predicate.Subscriptions
- func AppIDNotIn(vs ...string) predicate.Subscriptions
- func HasInvoices() predicate.Subscriptions
- func HasInvoicesWith(preds ...predicate.Invoice) predicate.Subscriptions
- func HasProduct() predicate.Subscriptions
- func HasProductWith(preds ...predicate.Product) predicate.Subscriptions
- func ID(id int64) predicate.Subscriptions
- func IDEQ(id int64) predicate.Subscriptions
- func IDGT(id int64) predicate.Subscriptions
- func IDGTE(id int64) predicate.Subscriptions
- func IDIn(ids ...int64) predicate.Subscriptions
- func IDLT(id int64) predicate.Subscriptions
- func IDLTE(id int64) predicate.Subscriptions
- func IDNEQ(id int64) predicate.Subscriptions
- func IDNotIn(ids ...int64) predicate.Subscriptions
- func Not(p predicate.Subscriptions) predicate.Subscriptions
- func Or(predicates ...predicate.Subscriptions) predicate.Subscriptions
- func ProductID(v int64) predicate.Subscriptions
- func ProductIDEQ(v int64) predicate.Subscriptions
- func ProductIDIn(vs ...int64) predicate.Subscriptions
- func ProductIDNEQ(v int64) predicate.Subscriptions
- func ProductIDNotIn(vs ...int64) predicate.Subscriptions
- func TenantID(v int64) predicate.Subscriptions
- func TenantIDEQ(v int64) predicate.Subscriptions
- func TenantIDGT(v int64) predicate.Subscriptions
- func TenantIDGTE(v int64) predicate.Subscriptions
- func TenantIDIn(vs ...int64) predicate.Subscriptions
- func TenantIDLT(v int64) predicate.Subscriptions
- func TenantIDLTE(v int64) predicate.Subscriptions
- func TenantIDNEQ(v int64) predicate.Subscriptions
- func TenantIDNotIn(vs ...int64) predicate.Subscriptions
- func UserID(v int64) predicate.Subscriptions
- func UserIDEQ(v int64) predicate.Subscriptions
- func UserIDGT(v int64) predicate.Subscriptions
- func UserIDGTE(v int64) predicate.Subscriptions
- func UserIDIn(vs ...int64) predicate.Subscriptions
- func UserIDLT(v int64) predicate.Subscriptions
- func UserIDLTE(v int64) predicate.Subscriptions
- func UserIDNEQ(v int64) predicate.Subscriptions
- func UserIDNotIn(vs ...int64) predicate.Subscriptions
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInvoicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProductID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the subscriptions type in the database. Label = "subscriptions" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // FieldProductID holds the string denoting the product_id field in the database. FieldProductID = "product_id" // EdgeInvoices holds the string denoting the invoices edge name in mutations. EdgeInvoices = "invoices" // EdgeProduct holds the string denoting the product edge name in mutations. EdgeProduct = "product" // Table holds the table name of the subscriptions in the database. Table = "subscriptions" // InvoicesTable is the table that holds the invoices relation/edge. InvoicesTable = "invoices" // InvoicesInverseTable is the table name for the Invoice entity. // It exists in this package in order to avoid circular dependency with the "invoice" package. InvoicesInverseTable = "invoices" // InvoicesColumn is the table column denoting the invoices relation/edge. InvoicesColumn = "subscription_id" // ProductTable is the table that holds the product relation/edge. ProductTable = "subscriptions" // ProductInverseTable is the table name for the Product entity. // It exists in this package in order to avoid circular dependency with the "product" package. ProductInverseTable = "products" // ProductColumn is the table column denoting the product relation/edge. ProductColumn = "product_id" )
Variables ¶
var Columns = []string{ FieldID, FieldUserID, FieldTenantID, FieldAppID, FieldProductID, }
Columns holds all SQL columns for subscriptions fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Subscriptions) predicate.Subscriptions
And groups predicates with the AND operator between them.
func AppID ¶
func AppID(v string) predicate.Subscriptions
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDContains ¶
func AppIDContains(v string) predicate.Subscriptions
AppIDContains applies the Contains predicate on the "app_id" field.
func AppIDContainsFold ¶
func AppIDContainsFold(v string) predicate.Subscriptions
AppIDContainsFold applies the ContainsFold predicate on the "app_id" field.
func AppIDEQ ¶
func AppIDEQ(v string) predicate.Subscriptions
AppIDEQ applies the EQ predicate on the "app_id" field.
func AppIDEqualFold ¶
func AppIDEqualFold(v string) predicate.Subscriptions
AppIDEqualFold applies the EqualFold predicate on the "app_id" field.
func AppIDGT ¶
func AppIDGT(v string) predicate.Subscriptions
AppIDGT applies the GT predicate on the "app_id" field.
func AppIDGTE ¶
func AppIDGTE(v string) predicate.Subscriptions
AppIDGTE applies the GTE predicate on the "app_id" field.
func AppIDHasPrefix ¶
func AppIDHasPrefix(v string) predicate.Subscriptions
AppIDHasPrefix applies the HasPrefix predicate on the "app_id" field.
func AppIDHasSuffix ¶
func AppIDHasSuffix(v string) predicate.Subscriptions
AppIDHasSuffix applies the HasSuffix predicate on the "app_id" field.
func AppIDIn ¶
func AppIDIn(vs ...string) predicate.Subscriptions
AppIDIn applies the In predicate on the "app_id" field.
func AppIDLT ¶
func AppIDLT(v string) predicate.Subscriptions
AppIDLT applies the LT predicate on the "app_id" field.
func AppIDLTE ¶
func AppIDLTE(v string) predicate.Subscriptions
AppIDLTE applies the LTE predicate on the "app_id" field.
func AppIDNEQ ¶
func AppIDNEQ(v string) predicate.Subscriptions
AppIDNEQ applies the NEQ predicate on the "app_id" field.
func AppIDNotIn ¶
func AppIDNotIn(vs ...string) predicate.Subscriptions
AppIDNotIn applies the NotIn predicate on the "app_id" field.
func HasInvoices ¶
func HasInvoices() predicate.Subscriptions
HasInvoices applies the HasEdge predicate on the "invoices" edge.
func HasInvoicesWith ¶
func HasInvoicesWith(preds ...predicate.Invoice) predicate.Subscriptions
HasInvoicesWith applies the HasEdge predicate on the "invoices" edge with a given conditions (other predicates).
func HasProduct ¶
func HasProduct() predicate.Subscriptions
HasProduct applies the HasEdge predicate on the "product" edge.
func HasProductWith ¶
func HasProductWith(preds ...predicate.Product) predicate.Subscriptions
HasProductWith applies the HasEdge predicate on the "product" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.Subscriptions
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.Subscriptions
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.Subscriptions
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Subscriptions
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.Subscriptions
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Subscriptions
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Subscriptions
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Subscriptions
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Subscriptions) predicate.Subscriptions
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Subscriptions) predicate.Subscriptions
Or groups predicates with the OR operator between them.
func ProductID ¶
func ProductID(v int64) predicate.Subscriptions
ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.
func ProductIDEQ ¶
func ProductIDEQ(v int64) predicate.Subscriptions
ProductIDEQ applies the EQ predicate on the "product_id" field.
func ProductIDIn ¶
func ProductIDIn(vs ...int64) predicate.Subscriptions
ProductIDIn applies the In predicate on the "product_id" field.
func ProductIDNEQ ¶
func ProductIDNEQ(v int64) predicate.Subscriptions
ProductIDNEQ applies the NEQ predicate on the "product_id" field.
func ProductIDNotIn ¶
func ProductIDNotIn(vs ...int64) predicate.Subscriptions
ProductIDNotIn applies the NotIn predicate on the "product_id" field.
func TenantID ¶
func TenantID(v int64) predicate.Subscriptions
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDEQ ¶
func TenantIDEQ(v int64) predicate.Subscriptions
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v int64) predicate.Subscriptions
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v int64) predicate.Subscriptions
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...int64) predicate.Subscriptions
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v int64) predicate.Subscriptions
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v int64) predicate.Subscriptions
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v int64) predicate.Subscriptions
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...int64) predicate.Subscriptions
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func UserID ¶
func UserID(v int64) predicate.Subscriptions
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int64) predicate.Subscriptions
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v int64) predicate.Subscriptions
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v int64) predicate.Subscriptions
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int64) predicate.Subscriptions
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v int64) predicate.Subscriptions
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v int64) predicate.Subscriptions
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int64) predicate.Subscriptions
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int64) predicate.Subscriptions
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 Subscriptions queries.
func ByAppID ¶
func ByAppID(opts ...sql.OrderTermOption) OrderOption
ByAppID orders the results by the app_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvoices ¶
func ByInvoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInvoices orders the results by invoices terms.
func ByInvoicesCount ¶
func ByInvoicesCount(opts ...sql.OrderTermOption) OrderOption
ByInvoicesCount orders the results by invoices count.
func ByProductField ¶
func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption
ByProductField orders the results by product field.
func ByProductID ¶
func ByProductID(opts ...sql.OrderTermOption) OrderOption
ByProductID orders the results by the product_id field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.