producttag

package
v0.0.0-...-c43fb32 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the producttag type in the database.
	Label = "product_tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldProductKey holds the string denoting the productkey field in the database.
	FieldProductKey = "product_key"
	// FieldTagKey holds the string denoting the tagkey field in the database.
	FieldTagKey = "tag_key"
	// FieldTagValue holds the string denoting the tagvalue field in the database.
	FieldTagValue = "tag_value"
	// EdgeProduct holds the string denoting the product edge name in mutations.
	EdgeProduct = "product"
	// Table holds the table name of the producttag in the database.
	Table = "equip_product_tags"
	// ProductTable is the table that holds the product relation/edge.
	ProductTable = "equip_product_tags"
	// 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 = "equip_products"
	// ProductColumn is the table column denoting the product relation/edge.
	ProductColumn = "product_tags"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort uint32
)

Columns holds all SQL columns for producttag fields.

View Source
var ForeignKeys = []string{
	"product_tags",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "equip_product_tags" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ProductTag

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProductTag

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProductTag

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProductTag

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ProductTag

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProductTag

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProductTag

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProductTag

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ProductTag

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasProduct

func HasProduct() predicate.ProductTag

HasProduct applies the HasEdge predicate on the "product" edge.

func HasProductWith

func HasProductWith(preds ...predicate.Product) predicate.ProductTag

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.ProductTag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.ProductTag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.ProductTag

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.ProductTag

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.ProductTag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.ProductTag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.ProductTag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.ProductTag

IDNotIn applies the NotIn predicate on the ID field.

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 ProductKey

func ProductKey(v string) predicate.ProductTag

ProductKey applies equality check predicate on the "productKey" field. It's identical to ProductKeyEQ.

func ProductKeyContains

func ProductKeyContains(v string) predicate.ProductTag

ProductKeyContains applies the Contains predicate on the "productKey" field.

func ProductKeyContainsFold

func ProductKeyContainsFold(v string) predicate.ProductTag

ProductKeyContainsFold applies the ContainsFold predicate on the "productKey" field.

func ProductKeyEQ

func ProductKeyEQ(v string) predicate.ProductTag

ProductKeyEQ applies the EQ predicate on the "productKey" field.

func ProductKeyEqualFold

func ProductKeyEqualFold(v string) predicate.ProductTag

ProductKeyEqualFold applies the EqualFold predicate on the "productKey" field.

func ProductKeyGT

func ProductKeyGT(v string) predicate.ProductTag

ProductKeyGT applies the GT predicate on the "productKey" field.

func ProductKeyGTE

func ProductKeyGTE(v string) predicate.ProductTag

ProductKeyGTE applies the GTE predicate on the "productKey" field.

func ProductKeyHasPrefix

func ProductKeyHasPrefix(v string) predicate.ProductTag

ProductKeyHasPrefix applies the HasPrefix predicate on the "productKey" field.

func ProductKeyHasSuffix

func ProductKeyHasSuffix(v string) predicate.ProductTag

ProductKeyHasSuffix applies the HasSuffix predicate on the "productKey" field.

func ProductKeyIn

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

ProductKeyIn applies the In predicate on the "productKey" field.

func ProductKeyLT

func ProductKeyLT(v string) predicate.ProductTag

ProductKeyLT applies the LT predicate on the "productKey" field.

func ProductKeyLTE

func ProductKeyLTE(v string) predicate.ProductTag

ProductKeyLTE applies the LTE predicate on the "productKey" field.

func ProductKeyNEQ

func ProductKeyNEQ(v string) predicate.ProductTag

ProductKeyNEQ applies the NEQ predicate on the "productKey" field.

func ProductKeyNotIn

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

ProductKeyNotIn applies the NotIn predicate on the "productKey" field.

func Sort

func Sort(v uint32) predicate.ProductTag

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

func SortEQ(v uint32) predicate.ProductTag

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

func SortGT(v uint32) predicate.ProductTag

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v uint32) predicate.ProductTag

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

func SortIn(vs ...uint32) predicate.ProductTag

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v uint32) predicate.ProductTag

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v uint32) predicate.ProductTag

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v uint32) predicate.ProductTag

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...uint32) predicate.ProductTag

SortNotIn applies the NotIn predicate on the "sort" field.

func Status

func Status(v uint8) predicate.ProductTag

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.ProductTag

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v uint8) predicate.ProductTag

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.ProductTag

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.ProductTag

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.ProductTag

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.ProductTag

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.ProductTag

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.ProductTag

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.ProductTag

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.ProductTag

StatusNotNil applies the NotNil predicate on the "status" field.

func TagKey

func TagKey(v string) predicate.ProductTag

TagKey applies equality check predicate on the "tagKey" field. It's identical to TagKeyEQ.

func TagKeyContains

func TagKeyContains(v string) predicate.ProductTag

TagKeyContains applies the Contains predicate on the "tagKey" field.

func TagKeyContainsFold

func TagKeyContainsFold(v string) predicate.ProductTag

TagKeyContainsFold applies the ContainsFold predicate on the "tagKey" field.

func TagKeyEQ

func TagKeyEQ(v string) predicate.ProductTag

TagKeyEQ applies the EQ predicate on the "tagKey" field.

func TagKeyEqualFold

func TagKeyEqualFold(v string) predicate.ProductTag

TagKeyEqualFold applies the EqualFold predicate on the "tagKey" field.

func TagKeyGT

func TagKeyGT(v string) predicate.ProductTag

TagKeyGT applies the GT predicate on the "tagKey" field.

func TagKeyGTE

func TagKeyGTE(v string) predicate.ProductTag

TagKeyGTE applies the GTE predicate on the "tagKey" field.

func TagKeyHasPrefix

func TagKeyHasPrefix(v string) predicate.ProductTag

TagKeyHasPrefix applies the HasPrefix predicate on the "tagKey" field.

func TagKeyHasSuffix

func TagKeyHasSuffix(v string) predicate.ProductTag

TagKeyHasSuffix applies the HasSuffix predicate on the "tagKey" field.

func TagKeyIn

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

TagKeyIn applies the In predicate on the "tagKey" field.

func TagKeyLT

func TagKeyLT(v string) predicate.ProductTag

TagKeyLT applies the LT predicate on the "tagKey" field.

func TagKeyLTE

func TagKeyLTE(v string) predicate.ProductTag

TagKeyLTE applies the LTE predicate on the "tagKey" field.

func TagKeyNEQ

func TagKeyNEQ(v string) predicate.ProductTag

TagKeyNEQ applies the NEQ predicate on the "tagKey" field.

func TagKeyNotIn

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

TagKeyNotIn applies the NotIn predicate on the "tagKey" field.

func TagValue

func TagValue(v string) predicate.ProductTag

TagValue applies equality check predicate on the "tagValue" field. It's identical to TagValueEQ.

func TagValueContains

func TagValueContains(v string) predicate.ProductTag

TagValueContains applies the Contains predicate on the "tagValue" field.

func TagValueContainsFold

func TagValueContainsFold(v string) predicate.ProductTag

TagValueContainsFold applies the ContainsFold predicate on the "tagValue" field.

func TagValueEQ

func TagValueEQ(v string) predicate.ProductTag

TagValueEQ applies the EQ predicate on the "tagValue" field.

func TagValueEqualFold

func TagValueEqualFold(v string) predicate.ProductTag

TagValueEqualFold applies the EqualFold predicate on the "tagValue" field.

func TagValueGT

func TagValueGT(v string) predicate.ProductTag

TagValueGT applies the GT predicate on the "tagValue" field.

func TagValueGTE

func TagValueGTE(v string) predicate.ProductTag

TagValueGTE applies the GTE predicate on the "tagValue" field.

func TagValueHasPrefix

func TagValueHasPrefix(v string) predicate.ProductTag

TagValueHasPrefix applies the HasPrefix predicate on the "tagValue" field.

func TagValueHasSuffix

func TagValueHasSuffix(v string) predicate.ProductTag

TagValueHasSuffix applies the HasSuffix predicate on the "tagValue" field.

func TagValueIn

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

TagValueIn applies the In predicate on the "tagValue" field.

func TagValueLT

func TagValueLT(v string) predicate.ProductTag

TagValueLT applies the LT predicate on the "tagValue" field.

func TagValueLTE

func TagValueLTE(v string) predicate.ProductTag

TagValueLTE applies the LTE predicate on the "tagValue" field.

func TagValueNEQ

func TagValueNEQ(v string) predicate.ProductTag

TagValueNEQ applies the NEQ predicate on the "tagValue" field.

func TagValueNotIn

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

TagValueNotIn applies the NotIn predicate on the "tagValue" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ProductTag

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProductTag

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProductTag

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProductTag

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ProductTag

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProductTag

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProductTag

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProductTag

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ProductTag

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByProductField

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

ByProductField orders the results by product field.

func ByProductKey

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

ByProductKey orders the results by the productKey field.

func BySort

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

BySort orders the results by the sort field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTagKey

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

ByTagKey orders the results by the tagKey field.

func ByTagValue

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

ByTagValue orders the results by the tagValue field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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