sku

package
v0.0.0-...-22bdbfd Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for sku fields.

Functions

func And

func And(predicates ...predicate.Sku) predicate.Sku

And groups predicates with the AND operator between them.

func BarCode

func BarCode(v string) predicate.Sku

BarCode applies equality check predicate on the "bar_code" field. It's identical to BarCodeEQ.

func BarCodeContains

func BarCodeContains(v string) predicate.Sku

BarCodeContains applies the Contains predicate on the "bar_code" field.

func BarCodeContainsFold

func BarCodeContainsFold(v string) predicate.Sku

BarCodeContainsFold applies the ContainsFold predicate on the "bar_code" field.

func BarCodeEQ

func BarCodeEQ(v string) predicate.Sku

BarCodeEQ applies the EQ predicate on the "bar_code" field.

func BarCodeEqualFold

func BarCodeEqualFold(v string) predicate.Sku

BarCodeEqualFold applies the EqualFold predicate on the "bar_code" field.

func BarCodeGT

func BarCodeGT(v string) predicate.Sku

BarCodeGT applies the GT predicate on the "bar_code" field.

func BarCodeGTE

func BarCodeGTE(v string) predicate.Sku

BarCodeGTE applies the GTE predicate on the "bar_code" field.

func BarCodeHasPrefix

func BarCodeHasPrefix(v string) predicate.Sku

BarCodeHasPrefix applies the HasPrefix predicate on the "bar_code" field.

func BarCodeHasSuffix

func BarCodeHasSuffix(v string) predicate.Sku

BarCodeHasSuffix applies the HasSuffix predicate on the "bar_code" field.

func BarCodeIn

func BarCodeIn(vs ...string) predicate.Sku

BarCodeIn applies the In predicate on the "bar_code" field.

func BarCodeIsNil

func BarCodeIsNil() predicate.Sku

BarCodeIsNil applies the IsNil predicate on the "bar_code" field.

func BarCodeLT

func BarCodeLT(v string) predicate.Sku

BarCodeLT applies the LT predicate on the "bar_code" field.

func BarCodeLTE

func BarCodeLTE(v string) predicate.Sku

BarCodeLTE applies the LTE predicate on the "bar_code" field.

func BarCodeNEQ

func BarCodeNEQ(v string) predicate.Sku

BarCodeNEQ applies the NEQ predicate on the "bar_code" field.

func BarCodeNotIn

func BarCodeNotIn(vs ...string) predicate.Sku

BarCodeNotIn applies the NotIn predicate on the "bar_code" field.

func BarCodeNotNil

func BarCodeNotNil() predicate.Sku

BarCodeNotNil applies the NotNil predicate on the "bar_code" field.

func CostPrice

func CostPrice(v int32) predicate.Sku

CostPrice applies equality check predicate on the "cost_price" field. It's identical to CostPriceEQ.

func CostPriceEQ

func CostPriceEQ(v int32) predicate.Sku

CostPriceEQ applies the EQ predicate on the "cost_price" field.

func CostPriceGT

func CostPriceGT(v int32) predicate.Sku

CostPriceGT applies the GT predicate on the "cost_price" field.

func CostPriceGTE

func CostPriceGTE(v int32) predicate.Sku

CostPriceGTE applies the GTE predicate on the "cost_price" field.

func CostPriceIn

func CostPriceIn(vs ...int32) predicate.Sku

CostPriceIn applies the In predicate on the "cost_price" field.

func CostPriceLT

func CostPriceLT(v int32) predicate.Sku

CostPriceLT applies the LT predicate on the "cost_price" field.

func CostPriceLTE

func CostPriceLTE(v int32) predicate.Sku

CostPriceLTE applies the LTE predicate on the "cost_price" field.

func CostPriceNEQ

func CostPriceNEQ(v int32) predicate.Sku

CostPriceNEQ applies the NEQ predicate on the "cost_price" field.

func CostPriceNotIn

func CostPriceNotIn(vs ...int32) predicate.Sku

CostPriceNotIn applies the NotIn predicate on the "cost_price" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Sku

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Sku

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Sku

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Sku

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Sku

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Sku

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Sku

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Sku

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Sku

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Sku

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Sku

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Sku

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Sku

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Sku

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Sku

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Sku

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Sku

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Sku

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func FirstBrokeragePrice

func FirstBrokeragePrice(v int32) predicate.Sku

FirstBrokeragePrice applies equality check predicate on the "first_brokerage_price" field. It's identical to FirstBrokeragePriceEQ.

func FirstBrokeragePriceEQ

func FirstBrokeragePriceEQ(v int32) predicate.Sku

FirstBrokeragePriceEQ applies the EQ predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceGT

func FirstBrokeragePriceGT(v int32) predicate.Sku

FirstBrokeragePriceGT applies the GT predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceGTE

func FirstBrokeragePriceGTE(v int32) predicate.Sku

FirstBrokeragePriceGTE applies the GTE predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceIn

func FirstBrokeragePriceIn(vs ...int32) predicate.Sku

FirstBrokeragePriceIn applies the In predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceIsNil

func FirstBrokeragePriceIsNil() predicate.Sku

FirstBrokeragePriceIsNil applies the IsNil predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceLT

func FirstBrokeragePriceLT(v int32) predicate.Sku

FirstBrokeragePriceLT applies the LT predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceLTE

func FirstBrokeragePriceLTE(v int32) predicate.Sku

FirstBrokeragePriceLTE applies the LTE predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceNEQ

func FirstBrokeragePriceNEQ(v int32) predicate.Sku

FirstBrokeragePriceNEQ applies the NEQ predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceNotIn

func FirstBrokeragePriceNotIn(vs ...int32) predicate.Sku

FirstBrokeragePriceNotIn applies the NotIn predicate on the "first_brokerage_price" field.

func FirstBrokeragePriceNotNil

func FirstBrokeragePriceNotNil() predicate.Sku

FirstBrokeragePriceNotNil applies the NotNil predicate on the "first_brokerage_price" field.

func HasComments

func HasComments() predicate.Sku

HasComments applies the HasEdge predicate on the "comments" edge.

func HasCommentsWith

func HasCommentsWith(preds ...predicate.Comment) predicate.Sku

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

func HasSpus

func HasSpus() predicate.Sku

HasSpus applies the HasEdge predicate on the "spus" edge.

func HasSpusWith

func HasSpusWith(preds ...predicate.Spu) predicate.Sku

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

func ID

func ID(id uint64) predicate.Sku

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Sku

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Sku

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Sku

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Sku

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Sku

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Sku

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MarketPrice

func MarketPrice(v int32) predicate.Sku

MarketPrice applies equality check predicate on the "market_price" field. It's identical to MarketPriceEQ.

func MarketPriceEQ

func MarketPriceEQ(v int32) predicate.Sku

MarketPriceEQ applies the EQ predicate on the "market_price" field.

func MarketPriceGT

func MarketPriceGT(v int32) predicate.Sku

MarketPriceGT applies the GT predicate on the "market_price" field.

func MarketPriceGTE

func MarketPriceGTE(v int32) predicate.Sku

MarketPriceGTE applies the GTE predicate on the "market_price" field.

func MarketPriceIn

func MarketPriceIn(vs ...int32) predicate.Sku

MarketPriceIn applies the In predicate on the "market_price" field.

func MarketPriceIsNil

func MarketPriceIsNil() predicate.Sku

MarketPriceIsNil applies the IsNil predicate on the "market_price" field.

func MarketPriceLT

func MarketPriceLT(v int32) predicate.Sku

MarketPriceLT applies the LT predicate on the "market_price" field.

func MarketPriceLTE

func MarketPriceLTE(v int32) predicate.Sku

MarketPriceLTE applies the LTE predicate on the "market_price" field.

func MarketPriceNEQ

func MarketPriceNEQ(v int32) predicate.Sku

MarketPriceNEQ applies the NEQ predicate on the "market_price" field.

func MarketPriceNotIn

func MarketPriceNotIn(vs ...int32) predicate.Sku

MarketPriceNotIn applies the NotIn predicate on the "market_price" field.

func MarketPriceNotNil

func MarketPriceNotNil() predicate.Sku

MarketPriceNotNil applies the NotNil predicate on the "market_price" field.

func Not

func Not(p predicate.Sku) predicate.Sku

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Sku) predicate.Sku

Or groups predicates with the OR operator between them.

func PicURL

func PicURL(v string) predicate.Sku

PicURL applies equality check predicate on the "pic_url" field. It's identical to PicURLEQ.

func PicURLContains

func PicURLContains(v string) predicate.Sku

PicURLContains applies the Contains predicate on the "pic_url" field.

func PicURLContainsFold

func PicURLContainsFold(v string) predicate.Sku

PicURLContainsFold applies the ContainsFold predicate on the "pic_url" field.

func PicURLEQ

func PicURLEQ(v string) predicate.Sku

PicURLEQ applies the EQ predicate on the "pic_url" field.

func PicURLEqualFold

func PicURLEqualFold(v string) predicate.Sku

PicURLEqualFold applies the EqualFold predicate on the "pic_url" field.

func PicURLGT

func PicURLGT(v string) predicate.Sku

PicURLGT applies the GT predicate on the "pic_url" field.

func PicURLGTE

func PicURLGTE(v string) predicate.Sku

PicURLGTE applies the GTE predicate on the "pic_url" field.

func PicURLHasPrefix

func PicURLHasPrefix(v string) predicate.Sku

PicURLHasPrefix applies the HasPrefix predicate on the "pic_url" field.

func PicURLHasSuffix

func PicURLHasSuffix(v string) predicate.Sku

PicURLHasSuffix applies the HasSuffix predicate on the "pic_url" field.

func PicURLIn

func PicURLIn(vs ...string) predicate.Sku

PicURLIn applies the In predicate on the "pic_url" field.

func PicURLLT

func PicURLLT(v string) predicate.Sku

PicURLLT applies the LT predicate on the "pic_url" field.

func PicURLLTE

func PicURLLTE(v string) predicate.Sku

PicURLLTE applies the LTE predicate on the "pic_url" field.

func PicURLNEQ

func PicURLNEQ(v string) predicate.Sku

PicURLNEQ applies the NEQ predicate on the "pic_url" field.

func PicURLNotIn

func PicURLNotIn(vs ...string) predicate.Sku

PicURLNotIn applies the NotIn predicate on the "pic_url" field.

func Price

func Price(v int32) predicate.Sku

Price applies equality check predicate on the "price" field. It's identical to PriceEQ.

func PriceEQ

func PriceEQ(v int32) predicate.Sku

PriceEQ applies the EQ predicate on the "price" field.

func PriceGT

func PriceGT(v int32) predicate.Sku

PriceGT applies the GT predicate on the "price" field.

func PriceGTE

func PriceGTE(v int32) predicate.Sku

PriceGTE applies the GTE predicate on the "price" field.

func PriceIn

func PriceIn(vs ...int32) predicate.Sku

PriceIn applies the In predicate on the "price" field.

func PriceLT

func PriceLT(v int32) predicate.Sku

PriceLT applies the LT predicate on the "price" field.

func PriceLTE

func PriceLTE(v int32) predicate.Sku

PriceLTE applies the LTE predicate on the "price" field.

func PriceNEQ

func PriceNEQ(v int32) predicate.Sku

PriceNEQ applies the NEQ predicate on the "price" field.

func PriceNotIn

func PriceNotIn(vs ...int32) predicate.Sku

PriceNotIn applies the NotIn predicate on the "price" field.

func PropertiesIsNil

func PropertiesIsNil() predicate.Sku

PropertiesIsNil applies the IsNil predicate on the "properties" field.

func PropertiesNotNil

func PropertiesNotNil() predicate.Sku

PropertiesNotNil applies the NotNil predicate on the "properties" field.

func SalesCount

func SalesCount(v int32) predicate.Sku

SalesCount applies equality check predicate on the "sales_count" field. It's identical to SalesCountEQ.

func SalesCountEQ

func SalesCountEQ(v int32) predicate.Sku

SalesCountEQ applies the EQ predicate on the "sales_count" field.

func SalesCountGT

func SalesCountGT(v int32) predicate.Sku

SalesCountGT applies the GT predicate on the "sales_count" field.

func SalesCountGTE

func SalesCountGTE(v int32) predicate.Sku

SalesCountGTE applies the GTE predicate on the "sales_count" field.

func SalesCountIn

func SalesCountIn(vs ...int32) predicate.Sku

SalesCountIn applies the In predicate on the "sales_count" field.

func SalesCountIsNil

func SalesCountIsNil() predicate.Sku

SalesCountIsNil applies the IsNil predicate on the "sales_count" field.

func SalesCountLT

func SalesCountLT(v int32) predicate.Sku

SalesCountLT applies the LT predicate on the "sales_count" field.

func SalesCountLTE

func SalesCountLTE(v int32) predicate.Sku

SalesCountLTE applies the LTE predicate on the "sales_count" field.

func SalesCountNEQ

func SalesCountNEQ(v int32) predicate.Sku

SalesCountNEQ applies the NEQ predicate on the "sales_count" field.

func SalesCountNotIn

func SalesCountNotIn(vs ...int32) predicate.Sku

SalesCountNotIn applies the NotIn predicate on the "sales_count" field.

func SalesCountNotNil

func SalesCountNotNil() predicate.Sku

SalesCountNotNil applies the NotNil predicate on the "sales_count" field.

func SecondBrokeragePrice

func SecondBrokeragePrice(v float64) predicate.Sku

SecondBrokeragePrice applies equality check predicate on the "second_brokerage_price" field. It's identical to SecondBrokeragePriceEQ.

func SecondBrokeragePriceEQ

func SecondBrokeragePriceEQ(v float64) predicate.Sku

SecondBrokeragePriceEQ applies the EQ predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceGT

func SecondBrokeragePriceGT(v float64) predicate.Sku

SecondBrokeragePriceGT applies the GT predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceGTE

func SecondBrokeragePriceGTE(v float64) predicate.Sku

SecondBrokeragePriceGTE applies the GTE predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceIn

func SecondBrokeragePriceIn(vs ...float64) predicate.Sku

SecondBrokeragePriceIn applies the In predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceIsNil

func SecondBrokeragePriceIsNil() predicate.Sku

SecondBrokeragePriceIsNil applies the IsNil predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceLT

func SecondBrokeragePriceLT(v float64) predicate.Sku

SecondBrokeragePriceLT applies the LT predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceLTE

func SecondBrokeragePriceLTE(v float64) predicate.Sku

SecondBrokeragePriceLTE applies the LTE predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceNEQ

func SecondBrokeragePriceNEQ(v float64) predicate.Sku

SecondBrokeragePriceNEQ applies the NEQ predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceNotIn

func SecondBrokeragePriceNotIn(vs ...float64) predicate.Sku

SecondBrokeragePriceNotIn applies the NotIn predicate on the "second_brokerage_price" field.

func SecondBrokeragePriceNotNil

func SecondBrokeragePriceNotNil() predicate.Sku

SecondBrokeragePriceNotNil applies the NotNil predicate on the "second_brokerage_price" field.

func SpuID

func SpuID(v uint64) predicate.Sku

SpuID applies equality check predicate on the "spu_id" field. It's identical to SpuIDEQ.

func SpuIDEQ

func SpuIDEQ(v uint64) predicate.Sku

SpuIDEQ applies the EQ predicate on the "spu_id" field.

func SpuIDIn

func SpuIDIn(vs ...uint64) predicate.Sku

SpuIDIn applies the In predicate on the "spu_id" field.

func SpuIDIsNil

func SpuIDIsNil() predicate.Sku

SpuIDIsNil applies the IsNil predicate on the "spu_id" field.

func SpuIDNEQ

func SpuIDNEQ(v uint64) predicate.Sku

SpuIDNEQ applies the NEQ predicate on the "spu_id" field.

func SpuIDNotIn

func SpuIDNotIn(vs ...uint64) predicate.Sku

SpuIDNotIn applies the NotIn predicate on the "spu_id" field.

func SpuIDNotNil

func SpuIDNotNil() predicate.Sku

SpuIDNotNil applies the NotNil predicate on the "spu_id" field.

func Stock

func Stock(v int32) predicate.Sku

Stock applies equality check predicate on the "stock" field. It's identical to StockEQ.

func StockEQ

func StockEQ(v int32) predicate.Sku

StockEQ applies the EQ predicate on the "stock" field.

func StockGT

func StockGT(v int32) predicate.Sku

StockGT applies the GT predicate on the "stock" field.

func StockGTE

func StockGTE(v int32) predicate.Sku

StockGTE applies the GTE predicate on the "stock" field.

func StockIn

func StockIn(vs ...int32) predicate.Sku

StockIn applies the In predicate on the "stock" field.

func StockIsNil

func StockIsNil() predicate.Sku

StockIsNil applies the IsNil predicate on the "stock" field.

func StockLT

func StockLT(v int32) predicate.Sku

StockLT applies the LT predicate on the "stock" field.

func StockLTE

func StockLTE(v int32) predicate.Sku

StockLTE applies the LTE predicate on the "stock" field.

func StockNEQ

func StockNEQ(v int32) predicate.Sku

StockNEQ applies the NEQ predicate on the "stock" field.

func StockNotIn

func StockNotIn(vs ...int32) predicate.Sku

StockNotIn applies the NotIn predicate on the "stock" field.

func StockNotNil

func StockNotNil() predicate.Sku

StockNotNil applies the NotNil predicate on the "stock" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Sku

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Sku

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Sku

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Sku

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Sku

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Sku

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Sku

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

func UpdatedAtNotIn

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

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).

func Volume

func Volume(v float64) predicate.Sku

Volume applies equality check predicate on the "volume" field. It's identical to VolumeEQ.

func VolumeEQ

func VolumeEQ(v float64) predicate.Sku

VolumeEQ applies the EQ predicate on the "volume" field.

func VolumeGT

func VolumeGT(v float64) predicate.Sku

VolumeGT applies the GT predicate on the "volume" field.

func VolumeGTE

func VolumeGTE(v float64) predicate.Sku

VolumeGTE applies the GTE predicate on the "volume" field.

func VolumeIn

func VolumeIn(vs ...float64) predicate.Sku

VolumeIn applies the In predicate on the "volume" field.

func VolumeIsNil

func VolumeIsNil() predicate.Sku

VolumeIsNil applies the IsNil predicate on the "volume" field.

func VolumeLT

func VolumeLT(v float64) predicate.Sku

VolumeLT applies the LT predicate on the "volume" field.

func VolumeLTE

func VolumeLTE(v float64) predicate.Sku

VolumeLTE applies the LTE predicate on the "volume" field.

func VolumeNEQ

func VolumeNEQ(v float64) predicate.Sku

VolumeNEQ applies the NEQ predicate on the "volume" field.

func VolumeNotIn

func VolumeNotIn(vs ...float64) predicate.Sku

VolumeNotIn applies the NotIn predicate on the "volume" field.

func VolumeNotNil

func VolumeNotNil() predicate.Sku

VolumeNotNil applies the NotNil predicate on the "volume" field.

func Weight

func Weight(v float64) predicate.Sku

Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.

func WeightEQ

func WeightEQ(v float64) predicate.Sku

WeightEQ applies the EQ predicate on the "weight" field.

func WeightGT

func WeightGT(v float64) predicate.Sku

WeightGT applies the GT predicate on the "weight" field.

func WeightGTE

func WeightGTE(v float64) predicate.Sku

WeightGTE applies the GTE predicate on the "weight" field.

func WeightIn

func WeightIn(vs ...float64) predicate.Sku

WeightIn applies the In predicate on the "weight" field.

func WeightIsNil

func WeightIsNil() predicate.Sku

WeightIsNil applies the IsNil predicate on the "weight" field.

func WeightLT

func WeightLT(v float64) predicate.Sku

WeightLT applies the LT predicate on the "weight" field.

func WeightLTE

func WeightLTE(v float64) predicate.Sku

WeightLTE applies the LTE predicate on the "weight" field.

func WeightNEQ

func WeightNEQ(v float64) predicate.Sku

WeightNEQ applies the NEQ predicate on the "weight" field.

func WeightNotIn

func WeightNotIn(vs ...float64) predicate.Sku

WeightNotIn applies the NotIn predicate on the "weight" field.

func WeightNotNil

func WeightNotNil() predicate.Sku

WeightNotNil applies the NotNil predicate on the "weight" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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