Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Product) predicate.Product
- func BuildStatusEQ(v enums.ProcessStatus) predicate.Product
- func BuildStatusIn(vs ...enums.ProcessStatus) predicate.Product
- func BuildStatusNEQ(v enums.ProcessStatus) predicate.Product
- func BuildStatusNotIn(vs ...enums.ProcessStatus) predicate.Product
- func BuildStatusValidator(bs enums.ProcessStatus) error
- func CreatedAt(v time.Time) predicate.Product
- func CreatedAtEQ(v time.Time) predicate.Product
- func CreatedAtGT(v time.Time) predicate.Product
- func CreatedAtGTE(v time.Time) predicate.Product
- func CreatedAtIn(vs ...time.Time) predicate.Product
- func CreatedAtIsNil() predicate.Product
- func CreatedAtLT(v time.Time) predicate.Product
- func CreatedAtLTE(v time.Time) predicate.Product
- func CreatedAtNEQ(v time.Time) predicate.Product
- func CreatedAtNotIn(vs ...time.Time) predicate.Product
- func CreatedAtNotNil() predicate.Product
- func Description(v string) predicate.Product
- func DescriptionContains(v string) predicate.Product
- func DescriptionContainsFold(v string) predicate.Product
- func DescriptionEQ(v string) predicate.Product
- func DescriptionEqualFold(v string) predicate.Product
- func DescriptionGT(v string) predicate.Product
- func DescriptionGTE(v string) predicate.Product
- func DescriptionHasPrefix(v string) predicate.Product
- func DescriptionHasSuffix(v string) predicate.Product
- func DescriptionIn(vs ...string) predicate.Product
- func DescriptionLT(v string) predicate.Product
- func DescriptionLTE(v string) predicate.Product
- func DescriptionNEQ(v string) predicate.Product
- func DescriptionNotIn(vs ...string) predicate.Product
- func HasVendor() predicate.Product
- func HasVendorWith(preds ...predicate.Vendor) predicate.Product
- func HasWarehouse() predicate.Product
- func HasWarehouseWith(preds ...predicate.Warehouse) predicate.Product
- func ID(id uuid.UUID) predicate.Product
- func IDEQ(id uuid.UUID) predicate.Product
- func IDGT(id uuid.UUID) predicate.Product
- func IDGTE(id uuid.UUID) predicate.Product
- func IDIn(ids ...uuid.UUID) predicate.Product
- func IDLT(id uuid.UUID) predicate.Product
- func IDLTE(id uuid.UUID) predicate.Product
- func IDNEQ(id uuid.UUID) predicate.Product
- func IDNotIn(ids ...uuid.UUID) predicate.Product
- func Image(v string) predicate.Product
- func ImageContains(v string) predicate.Product
- func ImageContainsFold(v string) predicate.Product
- func ImageEQ(v string) predicate.Product
- func ImageEqualFold(v string) predicate.Product
- func ImageGT(v string) predicate.Product
- func ImageGTE(v string) predicate.Product
- func ImageHasPrefix(v string) predicate.Product
- func ImageHasSuffix(v string) predicate.Product
- func ImageIn(vs ...string) predicate.Product
- func ImageLT(v string) predicate.Product
- func ImageLTE(v string) predicate.Product
- func ImageNEQ(v string) predicate.Product
- func ImageNotIn(vs ...string) predicate.Product
- func LastSell(v time.Time) predicate.Product
- func LastSellEQ(v time.Time) predicate.Product
- func LastSellGT(v time.Time) predicate.Product
- func LastSellGTE(v time.Time) predicate.Product
- func LastSellIn(vs ...time.Time) predicate.Product
- func LastSellIsNil() predicate.Product
- func LastSellLT(v time.Time) predicate.Product
- func LastSellLTE(v time.Time) predicate.Product
- func LastSellNEQ(v time.Time) predicate.Product
- func LastSellNotIn(vs ...time.Time) predicate.Product
- func LastSellNotNil() predicate.Product
- func Name(v string) predicate.Product
- func NameContains(v string) predicate.Product
- func NameContainsFold(v string) predicate.Product
- func NameEQ(v string) predicate.Product
- func NameEqualFold(v string) predicate.Product
- func NameGT(v string) predicate.Product
- func NameGTE(v string) predicate.Product
- func NameHasPrefix(v string) predicate.Product
- func NameHasSuffix(v string) predicate.Product
- func NameIn(vs ...string) predicate.Product
- func NameLT(v string) predicate.Product
- func NameLTE(v string) predicate.Product
- func NameNEQ(v string) predicate.Product
- func NameNotIn(vs ...string) predicate.Product
- func Not(p predicate.Product) predicate.Product
- func Or(predicates ...predicate.Product) predicate.Product
- func StatusEQ(v enums.ProcessStatus) predicate.Product
- func StatusIn(vs ...enums.ProcessStatus) predicate.Product
- func StatusNEQ(v enums.ProcessStatus) predicate.Product
- func StatusNotIn(vs ...enums.ProcessStatus) predicate.Product
- func StatusValidator(s enums.ProcessStatus) error
- func URL(v string) predicate.Product
- func URLContains(v string) predicate.Product
- func URLContainsFold(v string) predicate.Product
- func URLEQ(v string) predicate.Product
- func URLEqualFold(v string) predicate.Product
- func URLGT(v string) predicate.Product
- func URLGTE(v string) predicate.Product
- func URLHasPrefix(v string) predicate.Product
- func URLHasSuffix(v string) predicate.Product
- func URLIn(vs ...string) predicate.Product
- func URLLT(v string) predicate.Product
- func URLLTE(v string) predicate.Product
- func URLNEQ(v string) predicate.Product
- func URLNotIn(vs ...string) predicate.Product
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the product type in the database. Label = "product" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldImage holds the string denoting the image field in the database. FieldImage = "image" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldLastSell holds the string denoting the last_sell field in the database. FieldLastSell = "last_sell" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldBuildStatus holds the string denoting the build_status field in the database. FieldBuildStatus = "build_status" // EdgeWarehouse holds the string denoting the warehouse edge name in mutations. EdgeWarehouse = "warehouse" // EdgeVendor holds the string denoting the vendor edge name in mutations. EdgeVendor = "vendor" // Table holds the table name of the product in the database. Table = "products" // WarehouseTable is the table that holds the warehouse relation/edge. WarehouseTable = "products" // WarehouseInverseTable is the table name for the Warehouse entity. // It exists in this package in order to avoid circular dependency with the "warehouse" package. WarehouseInverseTable = "warehouses" // WarehouseColumn is the table column denoting the warehouse relation/edge. WarehouseColumn = "warehouse_products" // VendorTable is the table that holds the vendor relation/edge. VendorTable = "products" // VendorInverseTable is the table name for the Vendor entity. // It exists in this package in order to avoid circular dependency with the "vendor" package. VendorInverseTable = "vendors" // VendorColumn is the table column denoting the vendor relation/edge. VendorColumn = "vendor_products" )
const DefaultBuildStatus enums.ProcessStatus = "none"
const DefaultStatus enums.ProcessStatus = "none"
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // ImageValidator is a validator for the "image" field. It is called by the builders before save. ImageValidator func(string) error // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldImage, FieldURL, FieldLastSell, FieldCreatedAt, FieldStatus, FieldBuildStatus, }
Columns holds all SQL columns for product fields.
var ForeignKeys = []string{
"vendor_products",
"warehouse_products",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "products" table and are not defined as standalone fields in the schema.
Functions ¶
func BuildStatusEQ ¶
func BuildStatusEQ(v enums.ProcessStatus) predicate.Product
BuildStatusEQ applies the EQ predicate on the "build_status" field.
func BuildStatusIn ¶
func BuildStatusIn(vs ...enums.ProcessStatus) predicate.Product
BuildStatusIn applies the In predicate on the "build_status" field.
func BuildStatusNEQ ¶
func BuildStatusNEQ(v enums.ProcessStatus) predicate.Product
BuildStatusNEQ applies the NEQ predicate on the "build_status" field.
func BuildStatusNotIn ¶
func BuildStatusNotIn(vs ...enums.ProcessStatus) predicate.Product
BuildStatusNotIn applies the NotIn predicate on the "build_status" field.
func BuildStatusValidator ¶
func BuildStatusValidator(bs enums.ProcessStatus) error
BuildStatusValidator is a validator for the "build_status" field enum values. It is called by the builders before save.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasVendorWith ¶
HasVendorWith applies the HasEdge predicate on the "vendor" edge with a given conditions (other predicates).
func HasWarehouse ¶
HasWarehouse applies the HasEdge predicate on the "warehouse" edge.
func HasWarehouseWith ¶
HasWarehouseWith applies the HasEdge predicate on the "warehouse" edge with a given conditions (other predicates).
func Image ¶
Image applies equality check predicate on the "image" field. It's identical to ImageEQ.
func ImageContains ¶
ImageContains applies the Contains predicate on the "image" field.
func ImageContainsFold ¶
ImageContainsFold applies the ContainsFold predicate on the "image" field.
func ImageEqualFold ¶
ImageEqualFold applies the EqualFold predicate on the "image" field.
func ImageHasPrefix ¶
ImageHasPrefix applies the HasPrefix predicate on the "image" field.
func ImageHasSuffix ¶
ImageHasSuffix applies the HasSuffix predicate on the "image" field.
func ImageNotIn ¶
ImageNotIn applies the NotIn predicate on the "image" field.
func LastSell ¶
LastSell applies equality check predicate on the "last_sell" field. It's identical to LastSellEQ.
func LastSellEQ ¶
LastSellEQ applies the EQ predicate on the "last_sell" field.
func LastSellGT ¶
LastSellGT applies the GT predicate on the "last_sell" field.
func LastSellGTE ¶
LastSellGTE applies the GTE predicate on the "last_sell" field.
func LastSellIn ¶
LastSellIn applies the In predicate on the "last_sell" field.
func LastSellIsNil ¶
LastSellIsNil applies the IsNil predicate on the "last_sell" field.
func LastSellLT ¶
LastSellLT applies the LT predicate on the "last_sell" field.
func LastSellLTE ¶
LastSellLTE applies the LTE predicate on the "last_sell" field.
func LastSellNEQ ¶
LastSellNEQ applies the NEQ predicate on the "last_sell" field.
func LastSellNotIn ¶
LastSellNotIn applies the NotIn predicate on the "last_sell" field.
func LastSellNotNil ¶
LastSellNotNil applies the NotNil predicate on the "last_sell" field.
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 StatusEQ ¶
func StatusEQ(v enums.ProcessStatus) predicate.Product
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.ProcessStatus) predicate.Product
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.ProcessStatus) predicate.Product
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.ProcessStatus) predicate.Product
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s enums.ProcessStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.