product

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for product fields.

Functions

func And

func And(predicates ...predicate.Product) predicate.Product

And groups predicates with the AND operator between them.

func CategoryRef

func CategoryRef(v string) predicate.Product

CategoryRef applies equality check predicate on the "categoryRef" field. It's identical to CategoryRefEQ.

func CategoryRefContains

func CategoryRefContains(v string) predicate.Product

CategoryRefContains applies the Contains predicate on the "categoryRef" field.

func CategoryRefContainsFold

func CategoryRefContainsFold(v string) predicate.Product

CategoryRefContainsFold applies the ContainsFold predicate on the "categoryRef" field.

func CategoryRefEQ

func CategoryRefEQ(v string) predicate.Product

CategoryRefEQ applies the EQ predicate on the "categoryRef" field.

func CategoryRefEqualFold

func CategoryRefEqualFold(v string) predicate.Product

CategoryRefEqualFold applies the EqualFold predicate on the "categoryRef" field.

func CategoryRefGT

func CategoryRefGT(v string) predicate.Product

CategoryRefGT applies the GT predicate on the "categoryRef" field.

func CategoryRefGTE

func CategoryRefGTE(v string) predicate.Product

CategoryRefGTE applies the GTE predicate on the "categoryRef" field.

func CategoryRefHasPrefix

func CategoryRefHasPrefix(v string) predicate.Product

CategoryRefHasPrefix applies the HasPrefix predicate on the "categoryRef" field.

func CategoryRefHasSuffix

func CategoryRefHasSuffix(v string) predicate.Product

CategoryRefHasSuffix applies the HasSuffix predicate on the "categoryRef" field.

func CategoryRefIn

func CategoryRefIn(vs ...string) predicate.Product

CategoryRefIn applies the In predicate on the "categoryRef" field.

func CategoryRefLT

func CategoryRefLT(v string) predicate.Product

CategoryRefLT applies the LT predicate on the "categoryRef" field.

func CategoryRefLTE

func CategoryRefLTE(v string) predicate.Product

CategoryRefLTE applies the LTE predicate on the "categoryRef" field.

func CategoryRefNEQ

func CategoryRefNEQ(v string) predicate.Product

CategoryRefNEQ applies the NEQ predicate on the "categoryRef" field.

func CategoryRefNotIn

func CategoryRefNotIn(vs ...string) predicate.Product

CategoryRefNotIn applies the NotIn predicate on the "categoryRef" field.

func HasVariants

func HasVariants() predicate.Product

HasVariants applies the HasEdge predicate on the "variants" edge.

func HasVariantsWith

func HasVariantsWith(preds ...predicate.Variant) predicate.Product

HasVariantsWith applies the HasEdge predicate on the "variants" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Product

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Product

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Product

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Product

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Product

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Product

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Product

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Product

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Product

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Product

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Product

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Product

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Product

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Product

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Product

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Product

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Product

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Product

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Product

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Product

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Product

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Product

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Product

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Product) predicate.Product

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL