Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Sku) predicate.Sku
- func BarCode(v string) predicate.Sku
- func BarCodeContains(v string) predicate.Sku
- func BarCodeContainsFold(v string) predicate.Sku
- func BarCodeEQ(v string) predicate.Sku
- func BarCodeEqualFold(v string) predicate.Sku
- func BarCodeGT(v string) predicate.Sku
- func BarCodeGTE(v string) predicate.Sku
- func BarCodeHasPrefix(v string) predicate.Sku
- func BarCodeHasSuffix(v string) predicate.Sku
- func BarCodeIn(vs ...string) predicate.Sku
- func BarCodeIsNil() predicate.Sku
- func BarCodeLT(v string) predicate.Sku
- func BarCodeLTE(v string) predicate.Sku
- func BarCodeNEQ(v string) predicate.Sku
- func BarCodeNotIn(vs ...string) predicate.Sku
- func BarCodeNotNil() predicate.Sku
- func CostPrice(v int32) predicate.Sku
- func CostPriceEQ(v int32) predicate.Sku
- func CostPriceGT(v int32) predicate.Sku
- func CostPriceGTE(v int32) predicate.Sku
- func CostPriceIn(vs ...int32) predicate.Sku
- func CostPriceLT(v int32) predicate.Sku
- func CostPriceLTE(v int32) predicate.Sku
- func CostPriceNEQ(v int32) predicate.Sku
- func CostPriceNotIn(vs ...int32) predicate.Sku
- func CreatedAt(v time.Time) predicate.Sku
- func CreatedAtEQ(v time.Time) predicate.Sku
- func CreatedAtGT(v time.Time) predicate.Sku
- func CreatedAtGTE(v time.Time) predicate.Sku
- func CreatedAtIn(vs ...time.Time) predicate.Sku
- func CreatedAtLT(v time.Time) predicate.Sku
- func CreatedAtLTE(v time.Time) predicate.Sku
- func CreatedAtNEQ(v time.Time) predicate.Sku
- func CreatedAtNotIn(vs ...time.Time) predicate.Sku
- func DeletedAt(v time.Time) predicate.Sku
- func DeletedAtEQ(v time.Time) predicate.Sku
- func DeletedAtGT(v time.Time) predicate.Sku
- func DeletedAtGTE(v time.Time) predicate.Sku
- func DeletedAtIn(vs ...time.Time) predicate.Sku
- func DeletedAtIsNil() predicate.Sku
- func DeletedAtLT(v time.Time) predicate.Sku
- func DeletedAtLTE(v time.Time) predicate.Sku
- func DeletedAtNEQ(v time.Time) predicate.Sku
- func DeletedAtNotIn(vs ...time.Time) predicate.Sku
- func DeletedAtNotNil() predicate.Sku
- func FirstBrokeragePrice(v int32) predicate.Sku
- func FirstBrokeragePriceEQ(v int32) predicate.Sku
- func FirstBrokeragePriceGT(v int32) predicate.Sku
- func FirstBrokeragePriceGTE(v int32) predicate.Sku
- func FirstBrokeragePriceIn(vs ...int32) predicate.Sku
- func FirstBrokeragePriceIsNil() predicate.Sku
- func FirstBrokeragePriceLT(v int32) predicate.Sku
- func FirstBrokeragePriceLTE(v int32) predicate.Sku
- func FirstBrokeragePriceNEQ(v int32) predicate.Sku
- func FirstBrokeragePriceNotIn(vs ...int32) predicate.Sku
- func FirstBrokeragePriceNotNil() predicate.Sku
- func HasComments() predicate.Sku
- func HasCommentsWith(preds ...predicate.Comment) predicate.Sku
- func HasSpus() predicate.Sku
- func HasSpusWith(preds ...predicate.Spu) predicate.Sku
- func ID(id uint64) predicate.Sku
- func IDEQ(id uint64) predicate.Sku
- func IDGT(id uint64) predicate.Sku
- func IDGTE(id uint64) predicate.Sku
- func IDIn(ids ...uint64) predicate.Sku
- func IDLT(id uint64) predicate.Sku
- func IDLTE(id uint64) predicate.Sku
- func IDNEQ(id uint64) predicate.Sku
- func IDNotIn(ids ...uint64) predicate.Sku
- func MarketPrice(v int32) predicate.Sku
- func MarketPriceEQ(v int32) predicate.Sku
- func MarketPriceGT(v int32) predicate.Sku
- func MarketPriceGTE(v int32) predicate.Sku
- func MarketPriceIn(vs ...int32) predicate.Sku
- func MarketPriceIsNil() predicate.Sku
- func MarketPriceLT(v int32) predicate.Sku
- func MarketPriceLTE(v int32) predicate.Sku
- func MarketPriceNEQ(v int32) predicate.Sku
- func MarketPriceNotIn(vs ...int32) predicate.Sku
- func MarketPriceNotNil() predicate.Sku
- func Not(p predicate.Sku) predicate.Sku
- func Or(predicates ...predicate.Sku) predicate.Sku
- func PicURL(v string) predicate.Sku
- func PicURLContains(v string) predicate.Sku
- func PicURLContainsFold(v string) predicate.Sku
- func PicURLEQ(v string) predicate.Sku
- func PicURLEqualFold(v string) predicate.Sku
- func PicURLGT(v string) predicate.Sku
- func PicURLGTE(v string) predicate.Sku
- func PicURLHasPrefix(v string) predicate.Sku
- func PicURLHasSuffix(v string) predicate.Sku
- func PicURLIn(vs ...string) predicate.Sku
- func PicURLLT(v string) predicate.Sku
- func PicURLLTE(v string) predicate.Sku
- func PicURLNEQ(v string) predicate.Sku
- func PicURLNotIn(vs ...string) predicate.Sku
- func Price(v int32) predicate.Sku
- func PriceEQ(v int32) predicate.Sku
- func PriceGT(v int32) predicate.Sku
- func PriceGTE(v int32) predicate.Sku
- func PriceIn(vs ...int32) predicate.Sku
- func PriceLT(v int32) predicate.Sku
- func PriceLTE(v int32) predicate.Sku
- func PriceNEQ(v int32) predicate.Sku
- func PriceNotIn(vs ...int32) predicate.Sku
- func PropertiesIsNil() predicate.Sku
- func PropertiesNotNil() predicate.Sku
- func SalesCount(v int32) predicate.Sku
- func SalesCountEQ(v int32) predicate.Sku
- func SalesCountGT(v int32) predicate.Sku
- func SalesCountGTE(v int32) predicate.Sku
- func SalesCountIn(vs ...int32) predicate.Sku
- func SalesCountIsNil() predicate.Sku
- func SalesCountLT(v int32) predicate.Sku
- func SalesCountLTE(v int32) predicate.Sku
- func SalesCountNEQ(v int32) predicate.Sku
- func SalesCountNotIn(vs ...int32) predicate.Sku
- func SalesCountNotNil() predicate.Sku
- func SecondBrokeragePrice(v float64) predicate.Sku
- func SecondBrokeragePriceEQ(v float64) predicate.Sku
- func SecondBrokeragePriceGT(v float64) predicate.Sku
- func SecondBrokeragePriceGTE(v float64) predicate.Sku
- func SecondBrokeragePriceIn(vs ...float64) predicate.Sku
- func SecondBrokeragePriceIsNil() predicate.Sku
- func SecondBrokeragePriceLT(v float64) predicate.Sku
- func SecondBrokeragePriceLTE(v float64) predicate.Sku
- func SecondBrokeragePriceNEQ(v float64) predicate.Sku
- func SecondBrokeragePriceNotIn(vs ...float64) predicate.Sku
- func SecondBrokeragePriceNotNil() predicate.Sku
- func SpuID(v uint64) predicate.Sku
- func SpuIDEQ(v uint64) predicate.Sku
- func SpuIDIn(vs ...uint64) predicate.Sku
- func SpuIDIsNil() predicate.Sku
- func SpuIDNEQ(v uint64) predicate.Sku
- func SpuIDNotIn(vs ...uint64) predicate.Sku
- func SpuIDNotNil() predicate.Sku
- func Stock(v int32) predicate.Sku
- func StockEQ(v int32) predicate.Sku
- func StockGT(v int32) predicate.Sku
- func StockGTE(v int32) predicate.Sku
- func StockIn(vs ...int32) predicate.Sku
- func StockIsNil() predicate.Sku
- func StockLT(v int32) predicate.Sku
- func StockLTE(v int32) predicate.Sku
- func StockNEQ(v int32) predicate.Sku
- func StockNotIn(vs ...int32) predicate.Sku
- func StockNotNil() predicate.Sku
- func UpdatedAt(v time.Time) predicate.Sku
- func UpdatedAtEQ(v time.Time) predicate.Sku
- func UpdatedAtGT(v time.Time) predicate.Sku
- func UpdatedAtGTE(v time.Time) predicate.Sku
- func UpdatedAtIn(vs ...time.Time) predicate.Sku
- func UpdatedAtLT(v time.Time) predicate.Sku
- func UpdatedAtLTE(v time.Time) predicate.Sku
- func UpdatedAtNEQ(v time.Time) predicate.Sku
- func UpdatedAtNotIn(vs ...time.Time) predicate.Sku
- func ValidColumn(column string) bool
- func Volume(v float64) predicate.Sku
- func VolumeEQ(v float64) predicate.Sku
- func VolumeGT(v float64) predicate.Sku
- func VolumeGTE(v float64) predicate.Sku
- func VolumeIn(vs ...float64) predicate.Sku
- func VolumeIsNil() predicate.Sku
- func VolumeLT(v float64) predicate.Sku
- func VolumeLTE(v float64) predicate.Sku
- func VolumeNEQ(v float64) predicate.Sku
- func VolumeNotIn(vs ...float64) predicate.Sku
- func VolumeNotNil() predicate.Sku
- func Weight(v float64) predicate.Sku
- func WeightEQ(v float64) predicate.Sku
- func WeightGT(v float64) predicate.Sku
- func WeightGTE(v float64) predicate.Sku
- func WeightIn(vs ...float64) predicate.Sku
- func WeightIsNil() predicate.Sku
- func WeightLT(v float64) predicate.Sku
- func WeightLTE(v float64) predicate.Sku
- func WeightNEQ(v float64) predicate.Sku
- func WeightNotIn(vs ...float64) predicate.Sku
- func WeightNotNil() predicate.Sku
- type OrderOption
- func ByBarCode(opts ...sql.OrderTermOption) OrderOption
- func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCostPrice(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFirstBrokeragePrice(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMarketPrice(opts ...sql.OrderTermOption) OrderOption
- func ByPicURL(opts ...sql.OrderTermOption) OrderOption
- func ByPrice(opts ...sql.OrderTermOption) OrderOption
- func BySalesCount(opts ...sql.OrderTermOption) OrderOption
- func BySecondBrokeragePrice(opts ...sql.OrderTermOption) OrderOption
- func BySpuID(opts ...sql.OrderTermOption) OrderOption
- func BySpusField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStock(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVolume(opts ...sql.OrderTermOption) OrderOption
- func ByWeight(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sku type in the database. Label = "sku" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldSpuID holds the string denoting the spu_id field in the database. FieldSpuID = "spu_id" // FieldProperties holds the string denoting the properties field in the database. FieldProperties = "properties" // FieldPrice holds the string denoting the price field in the database. FieldPrice = "price" // FieldMarketPrice holds the string denoting the market_price field in the database. FieldMarketPrice = "market_price" // FieldCostPrice holds the string denoting the cost_price field in the database. FieldCostPrice = "cost_price" // FieldBarCode holds the string denoting the bar_code field in the database. FieldBarCode = "bar_code" // FieldPicURL holds the string denoting the pic_url field in the database. FieldPicURL = "pic_url" // FieldStock holds the string denoting the stock field in the database. FieldStock = "stock" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // FieldVolume holds the string denoting the volume field in the database. FieldVolume = "volume" // FieldFirstBrokeragePrice holds the string denoting the first_brokerage_price field in the database. FieldFirstBrokeragePrice = "first_brokerage_price" // FieldSecondBrokeragePrice holds the string denoting the second_brokerage_price field in the database. FieldSecondBrokeragePrice = "second_brokerage_price" // FieldSalesCount holds the string denoting the sales_count field in the database. FieldSalesCount = "sales_count" // EdgeSpus holds the string denoting the spus edge name in mutations. EdgeSpus = "spus" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // Table holds the table name of the sku in the database. Table = "product_sku" // SpusTable is the table that holds the spus relation/edge. SpusTable = "product_sku" // SpusInverseTable is the table name for the Spu entity. // It exists in this package in order to avoid circular dependency with the "spu" package. SpusInverseTable = "product_spu" // SpusColumn is the table column denoting the spus relation/edge. SpusColumn = "spu_id" // CommentsTable is the table that holds the comments relation/edge. CommentsTable = "product_comment" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentsInverseTable = "product_comment" // CommentsColumn is the table column denoting the comments relation/edge. CommentsColumn = "sku_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/agui-coder/simple-admin-product-rpc/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldSpuID, FieldProperties, FieldPrice, FieldMarketPrice, FieldCostPrice, FieldBarCode, FieldPicURL, FieldStock, FieldWeight, FieldVolume, FieldFirstBrokeragePrice, FieldSecondBrokeragePrice, FieldSalesCount, }
Columns holds all SQL columns for sku fields.
Functions ¶
func BarCode ¶
BarCode applies equality check predicate on the "bar_code" field. It's identical to BarCodeEQ.
func BarCodeContains ¶
BarCodeContains applies the Contains predicate on the "bar_code" field.
func BarCodeContainsFold ¶
BarCodeContainsFold applies the ContainsFold predicate on the "bar_code" field.
func BarCodeEqualFold ¶
BarCodeEqualFold applies the EqualFold predicate on the "bar_code" field.
func BarCodeGTE ¶
BarCodeGTE applies the GTE predicate on the "bar_code" field.
func BarCodeHasPrefix ¶
BarCodeHasPrefix applies the HasPrefix predicate on the "bar_code" field.
func BarCodeHasSuffix ¶
BarCodeHasSuffix applies the HasSuffix predicate on the "bar_code" field.
func BarCodeIsNil ¶
BarCodeIsNil applies the IsNil predicate on the "bar_code" field.
func BarCodeLTE ¶
BarCodeLTE applies the LTE predicate on the "bar_code" field.
func BarCodeNEQ ¶
BarCodeNEQ applies the NEQ predicate on the "bar_code" field.
func BarCodeNotIn ¶
BarCodeNotIn applies the NotIn predicate on the "bar_code" field.
func BarCodeNotNil ¶
BarCodeNotNil applies the NotNil predicate on the "bar_code" field.
func CostPrice ¶
CostPrice applies equality check predicate on the "cost_price" field. It's identical to CostPriceEQ.
func CostPriceEQ ¶
CostPriceEQ applies the EQ predicate on the "cost_price" field.
func CostPriceGT ¶
CostPriceGT applies the GT predicate on the "cost_price" field.
func CostPriceGTE ¶
CostPriceGTE applies the GTE predicate on the "cost_price" field.
func CostPriceIn ¶
CostPriceIn applies the In predicate on the "cost_price" field.
func CostPriceLT ¶
CostPriceLT applies the LT predicate on the "cost_price" field.
func CostPriceLTE ¶
CostPriceLTE applies the LTE predicate on the "cost_price" field.
func CostPriceNEQ ¶
CostPriceNEQ applies the NEQ predicate on the "cost_price" field.
func CostPriceNotIn ¶
CostPriceNotIn applies the NotIn predicate on the "cost_price" field.
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 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func FirstBrokeragePrice ¶
FirstBrokeragePrice applies equality check predicate on the "first_brokerage_price" field. It's identical to FirstBrokeragePriceEQ.
func FirstBrokeragePriceEQ ¶
FirstBrokeragePriceEQ applies the EQ predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceGT ¶
FirstBrokeragePriceGT applies the GT predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceGTE ¶
FirstBrokeragePriceGTE applies the GTE predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceIn ¶
FirstBrokeragePriceIn applies the In predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceIsNil ¶
FirstBrokeragePriceIsNil applies the IsNil predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceLT ¶
FirstBrokeragePriceLT applies the LT predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceLTE ¶
FirstBrokeragePriceLTE applies the LTE predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceNEQ ¶
FirstBrokeragePriceNEQ applies the NEQ predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceNotIn ¶
FirstBrokeragePriceNotIn applies the NotIn predicate on the "first_brokerage_price" field.
func FirstBrokeragePriceNotNil ¶
FirstBrokeragePriceNotNil applies the NotNil predicate on the "first_brokerage_price" field.
func HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func HasSpusWith ¶
HasSpusWith applies the HasEdge predicate on the "spus" edge with a given conditions (other predicates).
func MarketPrice ¶
MarketPrice applies equality check predicate on the "market_price" field. It's identical to MarketPriceEQ.
func MarketPriceEQ ¶
MarketPriceEQ applies the EQ predicate on the "market_price" field.
func MarketPriceGT ¶
MarketPriceGT applies the GT predicate on the "market_price" field.
func MarketPriceGTE ¶
MarketPriceGTE applies the GTE predicate on the "market_price" field.
func MarketPriceIn ¶
MarketPriceIn applies the In predicate on the "market_price" field.
func MarketPriceIsNil ¶
MarketPriceIsNil applies the IsNil predicate on the "market_price" field.
func MarketPriceLT ¶
MarketPriceLT applies the LT predicate on the "market_price" field.
func MarketPriceLTE ¶
MarketPriceLTE applies the LTE predicate on the "market_price" field.
func MarketPriceNEQ ¶
MarketPriceNEQ applies the NEQ predicate on the "market_price" field.
func MarketPriceNotIn ¶
MarketPriceNotIn applies the NotIn predicate on the "market_price" field.
func MarketPriceNotNil ¶
MarketPriceNotNil applies the NotNil predicate on the "market_price" field.
func PicURL ¶
PicURL applies equality check predicate on the "pic_url" field. It's identical to PicURLEQ.
func PicURLContains ¶
PicURLContains applies the Contains predicate on the "pic_url" field.
func PicURLContainsFold ¶
PicURLContainsFold applies the ContainsFold predicate on the "pic_url" field.
func PicURLEqualFold ¶
PicURLEqualFold applies the EqualFold predicate on the "pic_url" field.
func PicURLHasPrefix ¶
PicURLHasPrefix applies the HasPrefix predicate on the "pic_url" field.
func PicURLHasSuffix ¶
PicURLHasSuffix applies the HasSuffix predicate on the "pic_url" field.
func PicURLNotIn ¶
PicURLNotIn applies the NotIn predicate on the "pic_url" 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 PropertiesIsNil ¶
PropertiesIsNil applies the IsNil predicate on the "properties" field.
func PropertiesNotNil ¶
PropertiesNotNil applies the NotNil predicate on the "properties" field.
func SalesCount ¶
SalesCount applies equality check predicate on the "sales_count" field. It's identical to SalesCountEQ.
func SalesCountEQ ¶
SalesCountEQ applies the EQ predicate on the "sales_count" field.
func SalesCountGT ¶
SalesCountGT applies the GT predicate on the "sales_count" field.
func SalesCountGTE ¶
SalesCountGTE applies the GTE predicate on the "sales_count" field.
func SalesCountIn ¶
SalesCountIn applies the In predicate on the "sales_count" field.
func SalesCountIsNil ¶
SalesCountIsNil applies the IsNil predicate on the "sales_count" field.
func SalesCountLT ¶
SalesCountLT applies the LT predicate on the "sales_count" field.
func SalesCountLTE ¶
SalesCountLTE applies the LTE predicate on the "sales_count" field.
func SalesCountNEQ ¶
SalesCountNEQ applies the NEQ predicate on the "sales_count" field.
func SalesCountNotIn ¶
SalesCountNotIn applies the NotIn predicate on the "sales_count" field.
func SalesCountNotNil ¶
SalesCountNotNil applies the NotNil predicate on the "sales_count" field.
func SecondBrokeragePrice ¶
SecondBrokeragePrice applies equality check predicate on the "second_brokerage_price" field. It's identical to SecondBrokeragePriceEQ.
func SecondBrokeragePriceEQ ¶
SecondBrokeragePriceEQ applies the EQ predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceGT ¶
SecondBrokeragePriceGT applies the GT predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceGTE ¶
SecondBrokeragePriceGTE applies the GTE predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceIn ¶
SecondBrokeragePriceIn applies the In predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceIsNil ¶
SecondBrokeragePriceIsNil applies the IsNil predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceLT ¶
SecondBrokeragePriceLT applies the LT predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceLTE ¶
SecondBrokeragePriceLTE applies the LTE predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceNEQ ¶
SecondBrokeragePriceNEQ applies the NEQ predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceNotIn ¶
SecondBrokeragePriceNotIn applies the NotIn predicate on the "second_brokerage_price" field.
func SecondBrokeragePriceNotNil ¶
SecondBrokeragePriceNotNil applies the NotNil predicate on the "second_brokerage_price" field.
func SpuID ¶
SpuID applies equality check predicate on the "spu_id" field. It's identical to SpuIDEQ.
func SpuIDIsNil ¶
SpuIDIsNil applies the IsNil predicate on the "spu_id" field.
func SpuIDNotIn ¶
SpuIDNotIn applies the NotIn predicate on the "spu_id" field.
func SpuIDNotNil ¶
SpuIDNotNil applies the NotNil predicate on the "spu_id" field.
func Stock ¶
Stock applies equality check predicate on the "stock" field. It's identical to StockEQ.
func StockIsNil ¶
StockIsNil applies the IsNil predicate on the "stock" field.
func StockNotIn ¶
StockNotIn applies the NotIn predicate on the "stock" field.
func StockNotNil ¶
StockNotNil applies the NotNil predicate on the "stock" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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).
func Volume ¶
Volume applies equality check predicate on the "volume" field. It's identical to VolumeEQ.
func VolumeIsNil ¶
VolumeIsNil applies the IsNil predicate on the "volume" field.
func VolumeNotIn ¶
VolumeNotIn applies the NotIn predicate on the "volume" field.
func VolumeNotNil ¶
VolumeNotNil applies the NotNil predicate on the "volume" field.
func Weight ¶
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightIsNil ¶
WeightIsNil applies the IsNil predicate on the "weight" field.
func WeightNotIn ¶
WeightNotIn applies the NotIn predicate on the "weight" field.
func WeightNotNil ¶
WeightNotNil applies the NotNil predicate on the "weight" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Sku queries.
func ByBarCode ¶
func ByBarCode(opts ...sql.OrderTermOption) OrderOption
ByBarCode orders the results by the bar_code field.
func ByComments ¶
func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByComments orders the results by comments terms.
func ByCommentsCount ¶
func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
ByCommentsCount orders the results by comments count.
func ByCostPrice ¶
func ByCostPrice(opts ...sql.OrderTermOption) OrderOption
ByCostPrice orders the results by the cost_price field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByFirstBrokeragePrice ¶
func ByFirstBrokeragePrice(opts ...sql.OrderTermOption) OrderOption
ByFirstBrokeragePrice orders the results by the first_brokerage_price field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMarketPrice ¶
func ByMarketPrice(opts ...sql.OrderTermOption) OrderOption
ByMarketPrice orders the results by the market_price field.
func ByPicURL ¶
func ByPicURL(opts ...sql.OrderTermOption) OrderOption
ByPicURL orders the results by the pic_url field.
func ByPrice ¶
func ByPrice(opts ...sql.OrderTermOption) OrderOption
ByPrice orders the results by the price field.
func BySalesCount ¶
func BySalesCount(opts ...sql.OrderTermOption) OrderOption
BySalesCount orders the results by the sales_count field.
func BySecondBrokeragePrice ¶
func BySecondBrokeragePrice(opts ...sql.OrderTermOption) OrderOption
BySecondBrokeragePrice orders the results by the second_brokerage_price field.
func BySpuID ¶
func BySpuID(opts ...sql.OrderTermOption) OrderOption
BySpuID orders the results by the spu_id field.
func BySpusField ¶
func BySpusField(field string, opts ...sql.OrderTermOption) OrderOption
BySpusField orders the results by spus field.
func ByStock ¶
func ByStock(opts ...sql.OrderTermOption) OrderOption
ByStock orders the results by the stock field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVolume ¶
func ByVolume(opts ...sql.OrderTermOption) OrderOption
ByVolume orders the results by the volume field.
func ByWeight ¶
func ByWeight(opts ...sql.OrderTermOption) OrderOption
ByWeight orders the results by the weight field.