Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Product) predicate.Product
- func CategoryRef(v string) predicate.Product
- func CategoryRefContains(v string) predicate.Product
- func CategoryRefContainsFold(v string) predicate.Product
- func CategoryRefEQ(v string) predicate.Product
- func CategoryRefEqualFold(v string) predicate.Product
- func CategoryRefGT(v string) predicate.Product
- func CategoryRefGTE(v string) predicate.Product
- func CategoryRefHasPrefix(v string) predicate.Product
- func CategoryRefHasSuffix(v string) predicate.Product
- func CategoryRefIn(vs ...string) predicate.Product
- func CategoryRefLT(v string) predicate.Product
- func CategoryRefLTE(v string) predicate.Product
- func CategoryRefNEQ(v string) predicate.Product
- func CategoryRefNotIn(vs ...string) predicate.Product
- func HasVariants() predicate.Product
- func HasVariantsWith(preds ...predicate.Variant) predicate.Product
- func ID(id uuid.UUID) predicate.Product
- func IDEQ(id uuid.UUID) predicate.Product
- func IDGT(id uuid.UUID) predicate.Product
- func IDGTE(id uuid.UUID) predicate.Product
- func IDIn(ids ...uuid.UUID) predicate.Product
- func IDLT(id uuid.UUID) predicate.Product
- func IDLTE(id uuid.UUID) predicate.Product
- func IDNEQ(id uuid.UUID) predicate.Product
- func IDNotIn(ids ...uuid.UUID) predicate.Product
- func Name(v string) predicate.Product
- func NameContains(v string) predicate.Product
- func NameContainsFold(v string) predicate.Product
- func NameEQ(v string) predicate.Product
- func NameEqualFold(v string) predicate.Product
- func NameGT(v string) predicate.Product
- func NameGTE(v string) predicate.Product
- func NameHasPrefix(v string) predicate.Product
- func NameHasSuffix(v string) predicate.Product
- func NameIn(vs ...string) predicate.Product
- func NameLT(v string) predicate.Product
- func NameLTE(v string) predicate.Product
- func NameNEQ(v string) predicate.Product
- func NameNotIn(vs ...string) predicate.Product
- func Not(p predicate.Product) predicate.Product
- func Or(predicates ...predicate.Product) predicate.Product
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the product type in the database. Label = "product" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCategoryRef holds the string denoting the categoryref field in the database. FieldCategoryRef = "category_ref" // EdgeVariants holds the string denoting the variants edge name in mutations. EdgeVariants = "variants" // Table holds the table name of the product in the database. Table = "products" // VariantsTable is the table the holds the variants relation/edge. VariantsTable = "variants" // VariantsInverseTable is the table name for the Variant entity. // It exists in this package in order to avoid circular dependency with the "variant" package. VariantsInverseTable = "variants" // VariantsColumn is the table column denoting the variants relation/edge. VariantsColumn = "product_variants" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldCategoryRef, }
Columns holds all SQL columns for product fields.
Functions ¶
func CategoryRef ¶
CategoryRef applies equality check predicate on the "categoryRef" field. It's identical to CategoryRefEQ.
func CategoryRefContains ¶
CategoryRefContains applies the Contains predicate on the "categoryRef" field.
func CategoryRefContainsFold ¶
CategoryRefContainsFold applies the ContainsFold predicate on the "categoryRef" field.
func CategoryRefEQ ¶
CategoryRefEQ applies the EQ predicate on the "categoryRef" field.
func CategoryRefEqualFold ¶
CategoryRefEqualFold applies the EqualFold predicate on the "categoryRef" field.
func CategoryRefGT ¶
CategoryRefGT applies the GT predicate on the "categoryRef" field.
func CategoryRefGTE ¶
CategoryRefGTE applies the GTE predicate on the "categoryRef" field.
func CategoryRefHasPrefix ¶
CategoryRefHasPrefix applies the HasPrefix predicate on the "categoryRef" field.
func CategoryRefHasSuffix ¶
CategoryRefHasSuffix applies the HasSuffix predicate on the "categoryRef" field.
func CategoryRefIn ¶
CategoryRefIn applies the In predicate on the "categoryRef" field.
func CategoryRefLT ¶
CategoryRefLT applies the LT predicate on the "categoryRef" field.
func CategoryRefLTE ¶
CategoryRefLTE applies the LTE predicate on the "categoryRef" field.
func CategoryRefNEQ ¶
CategoryRefNEQ applies the NEQ predicate on the "categoryRef" field.
func CategoryRefNotIn ¶
CategoryRefNotIn applies the NotIn predicate on the "categoryRef" field.
func HasVariants ¶
HasVariants applies the HasEdge predicate on the "variants" edge.
func HasVariantsWith ¶
HasVariantsWith applies the HasEdge predicate on the "variants" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.