Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Variant) predicate.Variant
- func Code(v string) predicate.Variant
- func CodeContains(v string) predicate.Variant
- func CodeContainsFold(v string) predicate.Variant
- func CodeEQ(v string) predicate.Variant
- func CodeEqualFold(v string) predicate.Variant
- func CodeGT(v string) predicate.Variant
- func CodeGTE(v string) predicate.Variant
- func CodeHasPrefix(v string) predicate.Variant
- func CodeHasSuffix(v string) predicate.Variant
- func CodeIn(vs ...string) predicate.Variant
- func CodeLT(v string) predicate.Variant
- func CodeLTE(v string) predicate.Variant
- func CodeNEQ(v string) predicate.Variant
- func CodeNotIn(vs ...string) predicate.Variant
- func HasProduct() predicate.Variant
- func HasProductWith(preds ...predicate.Product) predicate.Variant
- func ID(id uuid.UUID) predicate.Variant
- func IDEQ(id uuid.UUID) predicate.Variant
- func IDGT(id uuid.UUID) predicate.Variant
- func IDGTE(id uuid.UUID) predicate.Variant
- func IDIn(ids ...uuid.UUID) predicate.Variant
- func IDLT(id uuid.UUID) predicate.Variant
- func IDLTE(id uuid.UUID) predicate.Variant
- func IDNEQ(id uuid.UUID) predicate.Variant
- func IDNotIn(ids ...uuid.UUID) predicate.Variant
- func Name(v string) predicate.Variant
- func NameContains(v string) predicate.Variant
- func NameContainsFold(v string) predicate.Variant
- func NameEQ(v string) predicate.Variant
- func NameEqualFold(v string) predicate.Variant
- func NameGT(v string) predicate.Variant
- func NameGTE(v string) predicate.Variant
- func NameHasPrefix(v string) predicate.Variant
- func NameHasSuffix(v string) predicate.Variant
- func NameIn(vs ...string) predicate.Variant
- func NameLT(v string) predicate.Variant
- func NameLTE(v string) predicate.Variant
- func NameNEQ(v string) predicate.Variant
- func NameNotIn(vs ...string) predicate.Variant
- func Not(p predicate.Variant) predicate.Variant
- func Or(predicates ...predicate.Variant) predicate.Variant
- func Price(v float64) predicate.Variant
- func PriceEQ(v float64) predicate.Variant
- func PriceGT(v float64) predicate.Variant
- func PriceGTE(v float64) predicate.Variant
- func PriceIn(vs ...float64) predicate.Variant
- func PriceLT(v float64) predicate.Variant
- func PriceLTE(v float64) predicate.Variant
- func PriceNEQ(v float64) predicate.Variant
- func PriceNotIn(vs ...float64) predicate.Variant
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the variant type in the database. Label = "variant" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPrice holds the string denoting the price field in the database. FieldPrice = "price" // EdgeProduct holds the string denoting the product edge name in mutations. EdgeProduct = "product" // Table holds the table name of the variant in the database. Table = "variants" // ProductTable is the table the holds the product relation/edge. ProductTable = "variants" // 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 = "products" // ProductColumn is the table column denoting the product relation/edge. ProductColumn = "product_variants" )
Variables ¶
var Columns = []string{ FieldID, FieldCode, FieldName, FieldPrice, }
Columns holds all SQL columns for variant fields.
var ForeignKeys = []string{
"product_variants",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Variant type.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func HasProduct ¶
HasProduct applies the HasEdge predicate on the "product" edge.
func HasProductWith ¶
HasProductWith applies the HasEdge predicate on the "product" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Price ¶
Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
func PriceNotIn ¶
PriceNotIn applies the NotIn predicate on the "price" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.