Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProductTag) predicate.ProductTag
- func HasProducts() predicate.ProductTag
- func HasProductsWith(preds ...predicate.ProductInfo) predicate.ProductTag
- func HasTags() predicate.ProductTag
- func HasTagsWith(preds ...predicate.Tag) predicate.ProductTag
- func Not(p predicate.ProductTag) predicate.ProductTag
- func Or(predicates ...predicate.ProductTag) predicate.ProductTag
- func ProductID(v string) predicate.ProductTag
- func ProductIDContains(v string) predicate.ProductTag
- func ProductIDContainsFold(v string) predicate.ProductTag
- func ProductIDEQ(v string) predicate.ProductTag
- func ProductIDEqualFold(v string) predicate.ProductTag
- func ProductIDGT(v string) predicate.ProductTag
- func ProductIDGTE(v string) predicate.ProductTag
- func ProductIDHasPrefix(v string) predicate.ProductTag
- func ProductIDHasSuffix(v string) predicate.ProductTag
- func ProductIDIn(vs ...string) predicate.ProductTag
- func ProductIDLT(v string) predicate.ProductTag
- func ProductIDLTE(v string) predicate.ProductTag
- func ProductIDNEQ(v string) predicate.ProductTag
- func ProductIDNotIn(vs ...string) predicate.ProductTag
- func TagID(v string) predicate.ProductTag
- func TagIDContains(v string) predicate.ProductTag
- func TagIDContainsFold(v string) predicate.ProductTag
- func TagIDEQ(v string) predicate.ProductTag
- func TagIDEqualFold(v string) predicate.ProductTag
- func TagIDGT(v string) predicate.ProductTag
- func TagIDGTE(v string) predicate.ProductTag
- func TagIDHasPrefix(v string) predicate.ProductTag
- func TagIDHasSuffix(v string) predicate.ProductTag
- func TagIDIn(vs ...string) predicate.ProductTag
- func TagIDLT(v string) predicate.ProductTag
- func TagIDLTE(v string) predicate.ProductTag
- func TagIDNEQ(v string) predicate.ProductTag
- func TagIDNotIn(vs ...string) predicate.ProductTag
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldProductID, FieldTagID, }
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 ¶
func Not(p predicate.ProductTag) predicate.ProductTag
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.