producttag

package
v0.0.0-...-05e3429 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the producttag type in the database.
	Label = "product_tag"
	// FieldProductID holds the string denoting the product_id field in the database.
	FieldProductID = "product_id"
	// FieldTagID holds the string denoting the tag_id field in the database.
	FieldTagID = "tag_id"
	// EdgeProducts holds the string denoting the products edge name in mutations.
	EdgeProducts = "products"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// ProductInfoFieldID holds the string denoting the ID field of the ProductInfo.
	ProductInfoFieldID = "id"
	// TagFieldID holds the string denoting the ID field of the Tag.
	TagFieldID = "id"
	// Table holds the table name of the producttag in the database.
	Table = "product_tags"
	// ProductsTable is the table that holds the products relation/edge.
	ProductsTable = "product_tags"
	// ProductsInverseTable is the table name for the ProductInfo entity.
	// It exists in this package in order to avoid circular dependency with the "productinfo" package.
	ProductsInverseTable = "product_info"
	// ProductsColumn is the table column denoting the products relation/edge.
	ProductsColumn = "product_id"
	// TagsTable is the table that holds the tags relation/edge.
	TagsTable = "product_tags"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tags"
	// TagsColumn is the table column denoting the tags relation/edge.
	TagsColumn = "tag_id"
)

Variables

Columns holds all SQL columns for producttag fields.

Functions

func And

func And(predicates ...predicate.ProductTag) predicate.ProductTag

And groups predicates with the AND operator between them.

func HasProducts

func HasProducts() predicate.ProductTag

HasProducts applies the HasEdge predicate on the "products" edge.

func HasProductsWith

func HasProductsWith(preds ...predicate.ProductInfo) predicate.ProductTag

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

func HasTags

func HasTags() predicate.ProductTag

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.ProductTag

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ProductTag) predicate.ProductTag

Or groups predicates with the OR operator between them.

func ProductID

func ProductID(v string) predicate.ProductTag

ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.

func ProductIDContains

func ProductIDContains(v string) predicate.ProductTag

ProductIDContains applies the Contains predicate on the "product_id" field.

func ProductIDContainsFold

func ProductIDContainsFold(v string) predicate.ProductTag

ProductIDContainsFold applies the ContainsFold predicate on the "product_id" field.

func ProductIDEQ

func ProductIDEQ(v string) predicate.ProductTag

ProductIDEQ applies the EQ predicate on the "product_id" field.

func ProductIDEqualFold

func ProductIDEqualFold(v string) predicate.ProductTag

ProductIDEqualFold applies the EqualFold predicate on the "product_id" field.

func ProductIDGT

func ProductIDGT(v string) predicate.ProductTag

ProductIDGT applies the GT predicate on the "product_id" field.

func ProductIDGTE

func ProductIDGTE(v string) predicate.ProductTag

ProductIDGTE applies the GTE predicate on the "product_id" field.

func ProductIDHasPrefix

func ProductIDHasPrefix(v string) predicate.ProductTag

ProductIDHasPrefix applies the HasPrefix predicate on the "product_id" field.

func ProductIDHasSuffix

func ProductIDHasSuffix(v string) predicate.ProductTag

ProductIDHasSuffix applies the HasSuffix predicate on the "product_id" field.

func ProductIDIn

func ProductIDIn(vs ...string) predicate.ProductTag

ProductIDIn applies the In predicate on the "product_id" field.

func ProductIDLT

func ProductIDLT(v string) predicate.ProductTag

ProductIDLT applies the LT predicate on the "product_id" field.

func ProductIDLTE

func ProductIDLTE(v string) predicate.ProductTag

ProductIDLTE applies the LTE predicate on the "product_id" field.

func ProductIDNEQ

func ProductIDNEQ(v string) predicate.ProductTag

ProductIDNEQ applies the NEQ predicate on the "product_id" field.

func ProductIDNotIn

func ProductIDNotIn(vs ...string) predicate.ProductTag

ProductIDNotIn applies the NotIn predicate on the "product_id" field.

func TagID

func TagID(v string) predicate.ProductTag

TagID applies equality check predicate on the "tag_id" field. It's identical to TagIDEQ.

func TagIDContains

func TagIDContains(v string) predicate.ProductTag

TagIDContains applies the Contains predicate on the "tag_id" field.

func TagIDContainsFold

func TagIDContainsFold(v string) predicate.ProductTag

TagIDContainsFold applies the ContainsFold predicate on the "tag_id" field.

func TagIDEQ

func TagIDEQ(v string) predicate.ProductTag

TagIDEQ applies the EQ predicate on the "tag_id" field.

func TagIDEqualFold

func TagIDEqualFold(v string) predicate.ProductTag

TagIDEqualFold applies the EqualFold predicate on the "tag_id" field.

func TagIDGT

func TagIDGT(v string) predicate.ProductTag

TagIDGT applies the GT predicate on the "tag_id" field.

func TagIDGTE

func TagIDGTE(v string) predicate.ProductTag

TagIDGTE applies the GTE predicate on the "tag_id" field.

func TagIDHasPrefix

func TagIDHasPrefix(v string) predicate.ProductTag

TagIDHasPrefix applies the HasPrefix predicate on the "tag_id" field.

func TagIDHasSuffix

func TagIDHasSuffix(v string) predicate.ProductTag

TagIDHasSuffix applies the HasSuffix predicate on the "tag_id" field.

func TagIDIn

func TagIDIn(vs ...string) predicate.ProductTag

TagIDIn applies the In predicate on the "tag_id" field.

func TagIDLT

func TagIDLT(v string) predicate.ProductTag

TagIDLT applies the LT predicate on the "tag_id" field.

func TagIDLTE

func TagIDLTE(v string) predicate.ProductTag

TagIDLTE applies the LTE predicate on the "tag_id" field.

func TagIDNEQ

func TagIDNEQ(v string) predicate.ProductTag

TagIDNEQ applies the NEQ predicate on the "tag_id" field.

func TagIDNotIn

func TagIDNotIn(vs ...string) predicate.ProductTag

TagIDNotIn applies the NotIn predicate on the "tag_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ProductTag queries.

func ByProductID

func ByProductID(opts ...sql.OrderTermOption) OrderOption

ByProductID orders the results by the product_id field.

func ByProductsField

func ByProductsField(field string, opts ...sql.OrderTermOption) OrderOption

ByProductsField orders the results by products field.

func ByTagID

func ByTagID(opts ...sql.OrderTermOption) OrderOption

ByTagID orders the results by the tag_id field.

func ByTagsField

func ByTagsField(field string, opts ...sql.OrderTermOption) OrderOption

ByTagsField orders the results by tags field.

Jump to

Keyboard shortcuts

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