Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Order) predicate.Order
- func DeliveredAddress(v string) predicate.Order
- func DeliveredAddressContains(v string) predicate.Order
- func DeliveredAddressContainsFold(v string) predicate.Order
- func DeliveredAddressEQ(v string) predicate.Order
- func DeliveredAddressEqualFold(v string) predicate.Order
- func DeliveredAddressGT(v string) predicate.Order
- func DeliveredAddressGTE(v string) predicate.Order
- func DeliveredAddressHasPrefix(v string) predicate.Order
- func DeliveredAddressHasSuffix(v string) predicate.Order
- func DeliveredAddressIn(vs ...string) predicate.Order
- func DeliveredAddressIsNil() predicate.Order
- func DeliveredAddressLT(v string) predicate.Order
- func DeliveredAddressLTE(v string) predicate.Order
- func DeliveredAddressNEQ(v string) predicate.Order
- func DeliveredAddressNotIn(vs ...string) predicate.Order
- func DeliveredAddressNotNil() predicate.Order
- func HasTransaction() predicate.Order
- func HasTransactionWith(preds ...predicate.Transaction) predicate.Order
- func HasTxItems() predicate.Order
- func HasTxItemsWith(preds ...predicate.TxItem) predicate.Order
- func ID(id int64) predicate.Order
- func IDEQ(id int64) predicate.Order
- func IDGT(id int64) predicate.Order
- func IDGTE(id int64) predicate.Order
- func IDIn(ids ...int64) predicate.Order
- func IDLT(id int64) predicate.Order
- func IDLTE(id int64) predicate.Order
- func IDNEQ(id int64) predicate.Order
- func IDNotIn(ids ...int64) predicate.Order
- func Not(p predicate.Order) predicate.Order
- func Or(predicates ...predicate.Order) predicate.Order
- func OrderNo(v string) predicate.Order
- func OrderNoContains(v string) predicate.Order
- func OrderNoContainsFold(v string) predicate.Order
- func OrderNoEQ(v string) predicate.Order
- func OrderNoEqualFold(v string) predicate.Order
- func OrderNoGT(v string) predicate.Order
- func OrderNoGTE(v string) predicate.Order
- func OrderNoHasPrefix(v string) predicate.Order
- func OrderNoHasSuffix(v string) predicate.Order
- func OrderNoIn(vs ...string) predicate.Order
- func OrderNoIsNil() predicate.Order
- func OrderNoLT(v string) predicate.Order
- func OrderNoLTE(v string) predicate.Order
- func OrderNoNEQ(v string) predicate.Order
- func OrderNoNotIn(vs ...string) predicate.Order
- func OrderNoNotNil() predicate.Order
- func OrderStatusEQ(v OrderStatus) predicate.Order
- func OrderStatusIn(vs ...OrderStatus) predicate.Order
- func OrderStatusNEQ(v OrderStatus) predicate.Order
- func OrderStatusNotIn(vs ...OrderStatus) predicate.Order
- func OrderStatusValidator(os OrderStatus) error
- func PaymentID(v int64) predicate.Order
- func PaymentIDEQ(v int64) predicate.Order
- func PaymentIDGT(v int64) predicate.Order
- func PaymentIDGTE(v int64) predicate.Order
- func PaymentIDIn(vs ...int64) predicate.Order
- func PaymentIDIsNil() predicate.Order
- func PaymentIDLT(v int64) predicate.Order
- func PaymentIDLTE(v int64) predicate.Order
- func PaymentIDNEQ(v int64) predicate.Order
- func PaymentIDNotIn(vs ...int64) predicate.Order
- func PaymentIDNotNil() predicate.Order
- func PlacedAt(v time.Time) predicate.Order
- func PlacedAtEQ(v time.Time) predicate.Order
- func PlacedAtGT(v time.Time) predicate.Order
- func PlacedAtGTE(v time.Time) predicate.Order
- func PlacedAtIn(vs ...time.Time) predicate.Order
- func PlacedAtIsNil() predicate.Order
- func PlacedAtLT(v time.Time) predicate.Order
- func PlacedAtLTE(v time.Time) predicate.Order
- func PlacedAtNEQ(v time.Time) predicate.Order
- func PlacedAtNotIn(vs ...time.Time) predicate.Order
- func PlacedAtNotNil() predicate.Order
- func PlacedUserID(v int64) predicate.Order
- func PlacedUserIDEQ(v int64) predicate.Order
- func PlacedUserIDGT(v int64) predicate.Order
- func PlacedUserIDGTE(v int64) predicate.Order
- func PlacedUserIDIn(vs ...int64) predicate.Order
- func PlacedUserIDLT(v int64) predicate.Order
- func PlacedUserIDLTE(v int64) predicate.Order
- func PlacedUserIDNEQ(v int64) predicate.Order
- func PlacedUserIDNotIn(vs ...int64) predicate.Order
- func ShippedAddress(v string) predicate.Order
- func ShippedAddressContains(v string) predicate.Order
- func ShippedAddressContainsFold(v string) predicate.Order
- func ShippedAddressEQ(v string) predicate.Order
- func ShippedAddressEqualFold(v string) predicate.Order
- func ShippedAddressGT(v string) predicate.Order
- func ShippedAddressGTE(v string) predicate.Order
- func ShippedAddressHasPrefix(v string) predicate.Order
- func ShippedAddressHasSuffix(v string) predicate.Order
- func ShippedAddressIn(vs ...string) predicate.Order
- func ShippedAddressIsNil() predicate.Order
- func ShippedAddressLT(v string) predicate.Order
- func ShippedAddressLTE(v string) predicate.Order
- func ShippedAddressNEQ(v string) predicate.Order
- func ShippedAddressNotIn(vs ...string) predicate.Order
- func ShippedAddressNotNil() predicate.Order
- func ShippedAt(v time.Time) predicate.Order
- func ShippedAtEQ(v time.Time) predicate.Order
- func ShippedAtGT(v time.Time) predicate.Order
- func ShippedAtGTE(v time.Time) predicate.Order
- func ShippedAtIn(vs ...time.Time) predicate.Order
- func ShippedAtIsNil() predicate.Order
- func ShippedAtLT(v time.Time) predicate.Order
- func ShippedAtLTE(v time.Time) predicate.Order
- func ShippedAtNEQ(v time.Time) predicate.Order
- func ShippedAtNotIn(vs ...time.Time) predicate.Order
- func ShippedAtNotNil() predicate.Order
- func ShippingCost(v float64) predicate.Order
- func ShippingCostEQ(v float64) predicate.Order
- func ShippingCostGT(v float64) predicate.Order
- func ShippingCostGTE(v float64) predicate.Order
- func ShippingCostIn(vs ...float64) predicate.Order
- func ShippingCostIsNil() predicate.Order
- func ShippingCostLT(v float64) predicate.Order
- func ShippingCostLTE(v float64) predicate.Order
- func ShippingCostNEQ(v float64) predicate.Order
- func ShippingCostNotIn(vs ...float64) predicate.Order
- func ShippingCostNotNil() predicate.Order
- func TotalAmount(v float64) predicate.Order
- func TotalAmountEQ(v float64) predicate.Order
- func TotalAmountGT(v float64) predicate.Order
- func TotalAmountGTE(v float64) predicate.Order
- func TotalAmountIn(vs ...float64) predicate.Order
- func TotalAmountIsNil() predicate.Order
- func TotalAmountLT(v float64) predicate.Order
- func TotalAmountLTE(v float64) predicate.Order
- func TotalAmountNEQ(v float64) predicate.Order
- func TotalAmountNotIn(vs ...float64) predicate.Order
- func TotalAmountNotNil() predicate.Order
- func TxID(v int64) predicate.Order
- func TxIDEQ(v int64) predicate.Order
- func TxIDGT(v int64) predicate.Order
- func TxIDGTE(v int64) predicate.Order
- func TxIDIn(vs ...int64) predicate.Order
- func TxIDLT(v int64) predicate.Order
- func TxIDLTE(v int64) predicate.Order
- func TxIDNEQ(v int64) predicate.Order
- func TxIDNotIn(vs ...int64) predicate.Order
- func ValidColumn(column string) bool
- type OrderOption
- func ByDeliveredAddress(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrderNo(opts ...sql.OrderTermOption) OrderOption
- func ByOrderStatus(opts ...sql.OrderTermOption) OrderOption
- func ByPaymentID(opts ...sql.OrderTermOption) OrderOption
- func ByPlacedAt(opts ...sql.OrderTermOption) OrderOption
- func ByPlacedUserID(opts ...sql.OrderTermOption) OrderOption
- func ByShippedAddress(opts ...sql.OrderTermOption) OrderOption
- func ByShippedAt(opts ...sql.OrderTermOption) OrderOption
- func ByShippingCost(opts ...sql.OrderTermOption) OrderOption
- func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
- func ByTransaction(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTransactionCount(opts ...sql.OrderTermOption) OrderOption
- func ByTxID(opts ...sql.OrderTermOption) OrderOption
- func ByTxItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTxItemsCount(opts ...sql.OrderTermOption) OrderOption
- type OrderStatus
Constants ¶
const ( // Label holds the string label denoting the order type in the database. Label = "order" // FieldID holds the string denoting the id field in the database. FieldID = "order_id" // FieldOrderNo holds the string denoting the order_no field in the database. FieldOrderNo = "order_no" // FieldTxID holds the string denoting the tx_id field in the database. FieldTxID = "tx_id" // FieldOrderStatus holds the string denoting the order_status field in the database. FieldOrderStatus = "order_status" // FieldDeliveredAddress holds the string denoting the delivered_address field in the database. FieldDeliveredAddress = "delivered_address" // FieldShippingCost holds the string denoting the shipping_cost field in the database. FieldShippingCost = "shipping_cost" // FieldTotalAmount holds the string denoting the total_amount field in the database. FieldTotalAmount = "total_amount" // FieldPlacedUserID holds the string denoting the placed_user_id field in the database. FieldPlacedUserID = "placed_user_id" // FieldPlacedAt holds the string denoting the placed_at field in the database. FieldPlacedAt = "placed_at" // FieldShippedAddress holds the string denoting the shipped_address field in the database. FieldShippedAddress = "shipped_address" // FieldShippedAt holds the string denoting the shipped_at field in the database. FieldShippedAt = "shipped_at" // FieldPaymentID holds the string denoting the payment_id field in the database. FieldPaymentID = "payment_id" // EdgeTransaction holds the string denoting the transaction edge name in mutations. EdgeTransaction = "transaction" // EdgeTxItems holds the string denoting the txitems edge name in mutations. EdgeTxItems = "txItems" // TransactionFieldID holds the string denoting the ID field of the Transaction. TransactionFieldID = "tx_id" // TxItemFieldID holds the string denoting the ID field of the TxItem. TxItemFieldID = "tx_item_id" // Table holds the table name of the order in the database. Table = "orders" // TransactionTable is the table that holds the transaction relation/edge. TransactionTable = "transactions" // TransactionInverseTable is the table name for the Transaction entity. // It exists in this package in order to avoid circular dependency with the "transaction" package. TransactionInverseTable = "transactions" // TransactionColumn is the table column denoting the transaction relation/edge. TransactionColumn = "order_transaction" // TxItemsTable is the table that holds the txItems relation/edge. TxItemsTable = "tx_items" // TxItemsInverseTable is the table name for the TxItem entity. // It exists in this package in order to avoid circular dependency with the "txitem" package. TxItemsInverseTable = "tx_items" // TxItemsColumn is the table column denoting the txItems relation/edge. TxItemsColumn = "order_tx_items" )
Variables ¶
var Columns = []string{ FieldID, FieldOrderNo, FieldTxID, FieldOrderStatus, FieldDeliveredAddress, FieldShippingCost, FieldTotalAmount, FieldPlacedUserID, FieldPlacedAt, FieldShippedAddress, FieldShippedAt, FieldPaymentID, }
Columns holds all SQL columns for order fields.
var ForeignKeys = []string{
"transaction_tx_order",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "orders" table and are not defined as standalone fields in the schema.
Functions ¶
func DeliveredAddress ¶
DeliveredAddress applies equality check predicate on the "delivered_address" field. It's identical to DeliveredAddressEQ.
func DeliveredAddressContains ¶
DeliveredAddressContains applies the Contains predicate on the "delivered_address" field.
func DeliveredAddressContainsFold ¶
DeliveredAddressContainsFold applies the ContainsFold predicate on the "delivered_address" field.
func DeliveredAddressEQ ¶
DeliveredAddressEQ applies the EQ predicate on the "delivered_address" field.
func DeliveredAddressEqualFold ¶
DeliveredAddressEqualFold applies the EqualFold predicate on the "delivered_address" field.
func DeliveredAddressGT ¶
DeliveredAddressGT applies the GT predicate on the "delivered_address" field.
func DeliveredAddressGTE ¶
DeliveredAddressGTE applies the GTE predicate on the "delivered_address" field.
func DeliveredAddressHasPrefix ¶
DeliveredAddressHasPrefix applies the HasPrefix predicate on the "delivered_address" field.
func DeliveredAddressHasSuffix ¶
DeliveredAddressHasSuffix applies the HasSuffix predicate on the "delivered_address" field.
func DeliveredAddressIn ¶
DeliveredAddressIn applies the In predicate on the "delivered_address" field.
func DeliveredAddressIsNil ¶
DeliveredAddressIsNil applies the IsNil predicate on the "delivered_address" field.
func DeliveredAddressLT ¶
DeliveredAddressLT applies the LT predicate on the "delivered_address" field.
func DeliveredAddressLTE ¶
DeliveredAddressLTE applies the LTE predicate on the "delivered_address" field.
func DeliveredAddressNEQ ¶
DeliveredAddressNEQ applies the NEQ predicate on the "delivered_address" field.
func DeliveredAddressNotIn ¶
DeliveredAddressNotIn applies the NotIn predicate on the "delivered_address" field.
func DeliveredAddressNotNil ¶
DeliveredAddressNotNil applies the NotNil predicate on the "delivered_address" field.
func HasTransaction ¶
HasTransaction applies the HasEdge predicate on the "transaction" edge.
func HasTransactionWith ¶
func HasTransactionWith(preds ...predicate.Transaction) predicate.Order
HasTransactionWith applies the HasEdge predicate on the "transaction" edge with a given conditions (other predicates).
func HasTxItems ¶
HasTxItems applies the HasEdge predicate on the "txItems" edge.
func HasTxItemsWith ¶
HasTxItemsWith applies the HasEdge predicate on the "txItems" edge with a given conditions (other predicates).
func OrderNo ¶
OrderNo applies equality check predicate on the "order_no" field. It's identical to OrderNoEQ.
func OrderNoContains ¶
OrderNoContains applies the Contains predicate on the "order_no" field.
func OrderNoContainsFold ¶
OrderNoContainsFold applies the ContainsFold predicate on the "order_no" field.
func OrderNoEqualFold ¶
OrderNoEqualFold applies the EqualFold predicate on the "order_no" field.
func OrderNoGTE ¶
OrderNoGTE applies the GTE predicate on the "order_no" field.
func OrderNoHasPrefix ¶
OrderNoHasPrefix applies the HasPrefix predicate on the "order_no" field.
func OrderNoHasSuffix ¶
OrderNoHasSuffix applies the HasSuffix predicate on the "order_no" field.
func OrderNoIsNil ¶
OrderNoIsNil applies the IsNil predicate on the "order_no" field.
func OrderNoLTE ¶
OrderNoLTE applies the LTE predicate on the "order_no" field.
func OrderNoNEQ ¶
OrderNoNEQ applies the NEQ predicate on the "order_no" field.
func OrderNoNotIn ¶
OrderNoNotIn applies the NotIn predicate on the "order_no" field.
func OrderNoNotNil ¶
OrderNoNotNil applies the NotNil predicate on the "order_no" field.
func OrderStatusEQ ¶
func OrderStatusEQ(v OrderStatus) predicate.Order
OrderStatusEQ applies the EQ predicate on the "order_status" field.
func OrderStatusIn ¶
func OrderStatusIn(vs ...OrderStatus) predicate.Order
OrderStatusIn applies the In predicate on the "order_status" field.
func OrderStatusNEQ ¶
func OrderStatusNEQ(v OrderStatus) predicate.Order
OrderStatusNEQ applies the NEQ predicate on the "order_status" field.
func OrderStatusNotIn ¶
func OrderStatusNotIn(vs ...OrderStatus) predicate.Order
OrderStatusNotIn applies the NotIn predicate on the "order_status" field.
func OrderStatusValidator ¶
func OrderStatusValidator(os OrderStatus) error
OrderStatusValidator is a validator for the "order_status" field enum values. It is called by the builders before save.
func PaymentID ¶
PaymentID applies equality check predicate on the "payment_id" field. It's identical to PaymentIDEQ.
func PaymentIDEQ ¶
PaymentIDEQ applies the EQ predicate on the "payment_id" field.
func PaymentIDGT ¶
PaymentIDGT applies the GT predicate on the "payment_id" field.
func PaymentIDGTE ¶
PaymentIDGTE applies the GTE predicate on the "payment_id" field.
func PaymentIDIn ¶
PaymentIDIn applies the In predicate on the "payment_id" field.
func PaymentIDIsNil ¶
PaymentIDIsNil applies the IsNil predicate on the "payment_id" field.
func PaymentIDLT ¶
PaymentIDLT applies the LT predicate on the "payment_id" field.
func PaymentIDLTE ¶
PaymentIDLTE applies the LTE predicate on the "payment_id" field.
func PaymentIDNEQ ¶
PaymentIDNEQ applies the NEQ predicate on the "payment_id" field.
func PaymentIDNotIn ¶
PaymentIDNotIn applies the NotIn predicate on the "payment_id" field.
func PaymentIDNotNil ¶
PaymentIDNotNil applies the NotNil predicate on the "payment_id" field.
func PlacedAt ¶
PlacedAt applies equality check predicate on the "placed_at" field. It's identical to PlacedAtEQ.
func PlacedAtEQ ¶
PlacedAtEQ applies the EQ predicate on the "placed_at" field.
func PlacedAtGT ¶
PlacedAtGT applies the GT predicate on the "placed_at" field.
func PlacedAtGTE ¶
PlacedAtGTE applies the GTE predicate on the "placed_at" field.
func PlacedAtIn ¶
PlacedAtIn applies the In predicate on the "placed_at" field.
func PlacedAtIsNil ¶
PlacedAtIsNil applies the IsNil predicate on the "placed_at" field.
func PlacedAtLT ¶
PlacedAtLT applies the LT predicate on the "placed_at" field.
func PlacedAtLTE ¶
PlacedAtLTE applies the LTE predicate on the "placed_at" field.
func PlacedAtNEQ ¶
PlacedAtNEQ applies the NEQ predicate on the "placed_at" field.
func PlacedAtNotIn ¶
PlacedAtNotIn applies the NotIn predicate on the "placed_at" field.
func PlacedAtNotNil ¶
PlacedAtNotNil applies the NotNil predicate on the "placed_at" field.
func PlacedUserID ¶
PlacedUserID applies equality check predicate on the "placed_user_id" field. It's identical to PlacedUserIDEQ.
func PlacedUserIDEQ ¶
PlacedUserIDEQ applies the EQ predicate on the "placed_user_id" field.
func PlacedUserIDGT ¶
PlacedUserIDGT applies the GT predicate on the "placed_user_id" field.
func PlacedUserIDGTE ¶
PlacedUserIDGTE applies the GTE predicate on the "placed_user_id" field.
func PlacedUserIDIn ¶
PlacedUserIDIn applies the In predicate on the "placed_user_id" field.
func PlacedUserIDLT ¶
PlacedUserIDLT applies the LT predicate on the "placed_user_id" field.
func PlacedUserIDLTE ¶
PlacedUserIDLTE applies the LTE predicate on the "placed_user_id" field.
func PlacedUserIDNEQ ¶
PlacedUserIDNEQ applies the NEQ predicate on the "placed_user_id" field.
func PlacedUserIDNotIn ¶
PlacedUserIDNotIn applies the NotIn predicate on the "placed_user_id" field.
func ShippedAddress ¶
ShippedAddress applies equality check predicate on the "shipped_address" field. It's identical to ShippedAddressEQ.
func ShippedAddressContains ¶
ShippedAddressContains applies the Contains predicate on the "shipped_address" field.
func ShippedAddressContainsFold ¶
ShippedAddressContainsFold applies the ContainsFold predicate on the "shipped_address" field.
func ShippedAddressEQ ¶
ShippedAddressEQ applies the EQ predicate on the "shipped_address" field.
func ShippedAddressEqualFold ¶
ShippedAddressEqualFold applies the EqualFold predicate on the "shipped_address" field.
func ShippedAddressGT ¶
ShippedAddressGT applies the GT predicate on the "shipped_address" field.
func ShippedAddressGTE ¶
ShippedAddressGTE applies the GTE predicate on the "shipped_address" field.
func ShippedAddressHasPrefix ¶
ShippedAddressHasPrefix applies the HasPrefix predicate on the "shipped_address" field.
func ShippedAddressHasSuffix ¶
ShippedAddressHasSuffix applies the HasSuffix predicate on the "shipped_address" field.
func ShippedAddressIn ¶
ShippedAddressIn applies the In predicate on the "shipped_address" field.
func ShippedAddressIsNil ¶
ShippedAddressIsNil applies the IsNil predicate on the "shipped_address" field.
func ShippedAddressLT ¶
ShippedAddressLT applies the LT predicate on the "shipped_address" field.
func ShippedAddressLTE ¶
ShippedAddressLTE applies the LTE predicate on the "shipped_address" field.
func ShippedAddressNEQ ¶
ShippedAddressNEQ applies the NEQ predicate on the "shipped_address" field.
func ShippedAddressNotIn ¶
ShippedAddressNotIn applies the NotIn predicate on the "shipped_address" field.
func ShippedAddressNotNil ¶
ShippedAddressNotNil applies the NotNil predicate on the "shipped_address" field.
func ShippedAt ¶
ShippedAt applies equality check predicate on the "shipped_at" field. It's identical to ShippedAtEQ.
func ShippedAtEQ ¶
ShippedAtEQ applies the EQ predicate on the "shipped_at" field.
func ShippedAtGT ¶
ShippedAtGT applies the GT predicate on the "shipped_at" field.
func ShippedAtGTE ¶
ShippedAtGTE applies the GTE predicate on the "shipped_at" field.
func ShippedAtIn ¶
ShippedAtIn applies the In predicate on the "shipped_at" field.
func ShippedAtIsNil ¶
ShippedAtIsNil applies the IsNil predicate on the "shipped_at" field.
func ShippedAtLT ¶
ShippedAtLT applies the LT predicate on the "shipped_at" field.
func ShippedAtLTE ¶
ShippedAtLTE applies the LTE predicate on the "shipped_at" field.
func ShippedAtNEQ ¶
ShippedAtNEQ applies the NEQ predicate on the "shipped_at" field.
func ShippedAtNotIn ¶
ShippedAtNotIn applies the NotIn predicate on the "shipped_at" field.
func ShippedAtNotNil ¶
ShippedAtNotNil applies the NotNil predicate on the "shipped_at" field.
func ShippingCost ¶
ShippingCost applies equality check predicate on the "shipping_cost" field. It's identical to ShippingCostEQ.
func ShippingCostEQ ¶
ShippingCostEQ applies the EQ predicate on the "shipping_cost" field.
func ShippingCostGT ¶
ShippingCostGT applies the GT predicate on the "shipping_cost" field.
func ShippingCostGTE ¶
ShippingCostGTE applies the GTE predicate on the "shipping_cost" field.
func ShippingCostIn ¶
ShippingCostIn applies the In predicate on the "shipping_cost" field.
func ShippingCostIsNil ¶
ShippingCostIsNil applies the IsNil predicate on the "shipping_cost" field.
func ShippingCostLT ¶
ShippingCostLT applies the LT predicate on the "shipping_cost" field.
func ShippingCostLTE ¶
ShippingCostLTE applies the LTE predicate on the "shipping_cost" field.
func ShippingCostNEQ ¶
ShippingCostNEQ applies the NEQ predicate on the "shipping_cost" field.
func ShippingCostNotIn ¶
ShippingCostNotIn applies the NotIn predicate on the "shipping_cost" field.
func ShippingCostNotNil ¶
ShippingCostNotNil applies the NotNil predicate on the "shipping_cost" field.
func TotalAmount ¶
TotalAmount applies equality check predicate on the "total_amount" field. It's identical to TotalAmountEQ.
func TotalAmountEQ ¶
TotalAmountEQ applies the EQ predicate on the "total_amount" field.
func TotalAmountGT ¶
TotalAmountGT applies the GT predicate on the "total_amount" field.
func TotalAmountGTE ¶
TotalAmountGTE applies the GTE predicate on the "total_amount" field.
func TotalAmountIn ¶
TotalAmountIn applies the In predicate on the "total_amount" field.
func TotalAmountIsNil ¶
TotalAmountIsNil applies the IsNil predicate on the "total_amount" field.
func TotalAmountLT ¶
TotalAmountLT applies the LT predicate on the "total_amount" field.
func TotalAmountLTE ¶
TotalAmountLTE applies the LTE predicate on the "total_amount" field.
func TotalAmountNEQ ¶
TotalAmountNEQ applies the NEQ predicate on the "total_amount" field.
func TotalAmountNotIn ¶
TotalAmountNotIn applies the NotIn predicate on the "total_amount" field.
func TotalAmountNotNil ¶
TotalAmountNotNil applies the NotNil predicate on the "total_amount" 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 Order queries.
func ByDeliveredAddress ¶
func ByDeliveredAddress(opts ...sql.OrderTermOption) OrderOption
ByDeliveredAddress orders the results by the delivered_address field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrderNo ¶
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption
ByOrderNo orders the results by the order_no field.
func ByOrderStatus ¶
func ByOrderStatus(opts ...sql.OrderTermOption) OrderOption
ByOrderStatus orders the results by the order_status field.
func ByPaymentID ¶
func ByPaymentID(opts ...sql.OrderTermOption) OrderOption
ByPaymentID orders the results by the payment_id field.
func ByPlacedAt ¶
func ByPlacedAt(opts ...sql.OrderTermOption) OrderOption
ByPlacedAt orders the results by the placed_at field.
func ByPlacedUserID ¶
func ByPlacedUserID(opts ...sql.OrderTermOption) OrderOption
ByPlacedUserID orders the results by the placed_user_id field.
func ByShippedAddress ¶
func ByShippedAddress(opts ...sql.OrderTermOption) OrderOption
ByShippedAddress orders the results by the shipped_address field.
func ByShippedAt ¶
func ByShippedAt(opts ...sql.OrderTermOption) OrderOption
ByShippedAt orders the results by the shipped_at field.
func ByShippingCost ¶
func ByShippingCost(opts ...sql.OrderTermOption) OrderOption
ByShippingCost orders the results by the shipping_cost field.
func ByTotalAmount ¶
func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
ByTotalAmount orders the results by the total_amount field.
func ByTransaction ¶
func ByTransaction(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTransaction orders the results by transaction terms.
func ByTransactionCount ¶
func ByTransactionCount(opts ...sql.OrderTermOption) OrderOption
ByTransactionCount orders the results by transaction count.
func ByTxID ¶
func ByTxID(opts ...sql.OrderTermOption) OrderOption
ByTxID orders the results by the tx_id field.
func ByTxItems ¶
func ByTxItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTxItems orders the results by txItems terms.
func ByTxItemsCount ¶
func ByTxItemsCount(opts ...sql.OrderTermOption) OrderOption
ByTxItemsCount orders the results by txItems count.
type OrderStatus ¶
type OrderStatus string
OrderStatus defines the type for the "order_status" enum field.
const ( OrderStatusPending OrderStatus = "pending" OrderStatusProcessing OrderStatus = "processing" OrderStatusShipped OrderStatus = "shipped" OrderStatusDelivered OrderStatus = "delivered" OrderStatusCancelled OrderStatus = "cancelled" )
OrderStatus values.
func (OrderStatus) String ¶
func (os OrderStatus) String() string