Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProductTag) predicate.ProductTag
- func CreatedAt(v time.Time) predicate.ProductTag
- func CreatedAtEQ(v time.Time) predicate.ProductTag
- func CreatedAtGT(v time.Time) predicate.ProductTag
- func CreatedAtGTE(v time.Time) predicate.ProductTag
- func CreatedAtIn(vs ...time.Time) predicate.ProductTag
- func CreatedAtLT(v time.Time) predicate.ProductTag
- func CreatedAtLTE(v time.Time) predicate.ProductTag
- func CreatedAtNEQ(v time.Time) predicate.ProductTag
- func CreatedAtNotIn(vs ...time.Time) predicate.ProductTag
- func HasProduct() predicate.ProductTag
- func HasProductWith(preds ...predicate.Product) predicate.ProductTag
- func ID(id uint64) predicate.ProductTag
- func IDEQ(id uint64) predicate.ProductTag
- func IDGT(id uint64) predicate.ProductTag
- func IDGTE(id uint64) predicate.ProductTag
- func IDIn(ids ...uint64) predicate.ProductTag
- func IDLT(id uint64) predicate.ProductTag
- func IDLTE(id uint64) predicate.ProductTag
- func IDNEQ(id uint64) predicate.ProductTag
- func IDNotIn(ids ...uint64) predicate.ProductTag
- func Not(p predicate.ProductTag) predicate.ProductTag
- func Or(predicates ...predicate.ProductTag) predicate.ProductTag
- func ProductKey(v string) predicate.ProductTag
- func ProductKeyContains(v string) predicate.ProductTag
- func ProductKeyContainsFold(v string) predicate.ProductTag
- func ProductKeyEQ(v string) predicate.ProductTag
- func ProductKeyEqualFold(v string) predicate.ProductTag
- func ProductKeyGT(v string) predicate.ProductTag
- func ProductKeyGTE(v string) predicate.ProductTag
- func ProductKeyHasPrefix(v string) predicate.ProductTag
- func ProductKeyHasSuffix(v string) predicate.ProductTag
- func ProductKeyIn(vs ...string) predicate.ProductTag
- func ProductKeyLT(v string) predicate.ProductTag
- func ProductKeyLTE(v string) predicate.ProductTag
- func ProductKeyNEQ(v string) predicate.ProductTag
- func ProductKeyNotIn(vs ...string) predicate.ProductTag
- func Sort(v uint32) predicate.ProductTag
- func SortEQ(v uint32) predicate.ProductTag
- func SortGT(v uint32) predicate.ProductTag
- func SortGTE(v uint32) predicate.ProductTag
- func SortIn(vs ...uint32) predicate.ProductTag
- func SortLT(v uint32) predicate.ProductTag
- func SortLTE(v uint32) predicate.ProductTag
- func SortNEQ(v uint32) predicate.ProductTag
- func SortNotIn(vs ...uint32) predicate.ProductTag
- func Status(v uint8) predicate.ProductTag
- func StatusEQ(v uint8) predicate.ProductTag
- func StatusGT(v uint8) predicate.ProductTag
- func StatusGTE(v uint8) predicate.ProductTag
- func StatusIn(vs ...uint8) predicate.ProductTag
- func StatusIsNil() predicate.ProductTag
- func StatusLT(v uint8) predicate.ProductTag
- func StatusLTE(v uint8) predicate.ProductTag
- func StatusNEQ(v uint8) predicate.ProductTag
- func StatusNotIn(vs ...uint8) predicate.ProductTag
- func StatusNotNil() predicate.ProductTag
- func TagKey(v string) predicate.ProductTag
- func TagKeyContains(v string) predicate.ProductTag
- func TagKeyContainsFold(v string) predicate.ProductTag
- func TagKeyEQ(v string) predicate.ProductTag
- func TagKeyEqualFold(v string) predicate.ProductTag
- func TagKeyGT(v string) predicate.ProductTag
- func TagKeyGTE(v string) predicate.ProductTag
- func TagKeyHasPrefix(v string) predicate.ProductTag
- func TagKeyHasSuffix(v string) predicate.ProductTag
- func TagKeyIn(vs ...string) predicate.ProductTag
- func TagKeyLT(v string) predicate.ProductTag
- func TagKeyLTE(v string) predicate.ProductTag
- func TagKeyNEQ(v string) predicate.ProductTag
- func TagKeyNotIn(vs ...string) predicate.ProductTag
- func TagValue(v string) predicate.ProductTag
- func TagValueContains(v string) predicate.ProductTag
- func TagValueContainsFold(v string) predicate.ProductTag
- func TagValueEQ(v string) predicate.ProductTag
- func TagValueEqualFold(v string) predicate.ProductTag
- func TagValueGT(v string) predicate.ProductTag
- func TagValueGTE(v string) predicate.ProductTag
- func TagValueHasPrefix(v string) predicate.ProductTag
- func TagValueHasSuffix(v string) predicate.ProductTag
- func TagValueIn(vs ...string) predicate.ProductTag
- func TagValueLT(v string) predicate.ProductTag
- func TagValueLTE(v string) predicate.ProductTag
- func TagValueNEQ(v string) predicate.ProductTag
- func TagValueNotIn(vs ...string) predicate.ProductTag
- func UpdatedAt(v time.Time) predicate.ProductTag
- func UpdatedAtEQ(v time.Time) predicate.ProductTag
- func UpdatedAtGT(v time.Time) predicate.ProductTag
- func UpdatedAtGTE(v time.Time) predicate.ProductTag
- func UpdatedAtIn(vs ...time.Time) predicate.ProductTag
- func UpdatedAtLT(v time.Time) predicate.ProductTag
- func UpdatedAtLTE(v time.Time) predicate.ProductTag
- func UpdatedAtNEQ(v time.Time) predicate.ProductTag
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProductTag
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProductKey(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTagKey(opts ...sql.OrderTermOption) OrderOption
- func ByTagValue(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldSort, FieldProductKey, FieldTagKey, FieldTagValue, }
Columns holds all SQL columns for producttag fields.
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 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 ¶
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 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 ¶
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 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.