order

package
v0.0.0-...-4241208 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for order fields.

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

func And(predicates ...predicate.Order) predicate.Order

And groups predicates with the AND operator between them.

func DeliveredAddress

func DeliveredAddress(v string) predicate.Order

DeliveredAddress applies equality check predicate on the "delivered_address" field. It's identical to DeliveredAddressEQ.

func DeliveredAddressContains

func DeliveredAddressContains(v string) predicate.Order

DeliveredAddressContains applies the Contains predicate on the "delivered_address" field.

func DeliveredAddressContainsFold

func DeliveredAddressContainsFold(v string) predicate.Order

DeliveredAddressContainsFold applies the ContainsFold predicate on the "delivered_address" field.

func DeliveredAddressEQ

func DeliveredAddressEQ(v string) predicate.Order

DeliveredAddressEQ applies the EQ predicate on the "delivered_address" field.

func DeliveredAddressEqualFold

func DeliveredAddressEqualFold(v string) predicate.Order

DeliveredAddressEqualFold applies the EqualFold predicate on the "delivered_address" field.

func DeliveredAddressGT

func DeliveredAddressGT(v string) predicate.Order

DeliveredAddressGT applies the GT predicate on the "delivered_address" field.

func DeliveredAddressGTE

func DeliveredAddressGTE(v string) predicate.Order

DeliveredAddressGTE applies the GTE predicate on the "delivered_address" field.

func DeliveredAddressHasPrefix

func DeliveredAddressHasPrefix(v string) predicate.Order

DeliveredAddressHasPrefix applies the HasPrefix predicate on the "delivered_address" field.

func DeliveredAddressHasSuffix

func DeliveredAddressHasSuffix(v string) predicate.Order

DeliveredAddressHasSuffix applies the HasSuffix predicate on the "delivered_address" field.

func DeliveredAddressIn

func DeliveredAddressIn(vs ...string) predicate.Order

DeliveredAddressIn applies the In predicate on the "delivered_address" field.

func DeliveredAddressIsNil

func DeliveredAddressIsNil() predicate.Order

DeliveredAddressIsNil applies the IsNil predicate on the "delivered_address" field.

func DeliveredAddressLT

func DeliveredAddressLT(v string) predicate.Order

DeliveredAddressLT applies the LT predicate on the "delivered_address" field.

func DeliveredAddressLTE

func DeliveredAddressLTE(v string) predicate.Order

DeliveredAddressLTE applies the LTE predicate on the "delivered_address" field.

func DeliveredAddressNEQ

func DeliveredAddressNEQ(v string) predicate.Order

DeliveredAddressNEQ applies the NEQ predicate on the "delivered_address" field.

func DeliveredAddressNotIn

func DeliveredAddressNotIn(vs ...string) predicate.Order

DeliveredAddressNotIn applies the NotIn predicate on the "delivered_address" field.

func DeliveredAddressNotNil

func DeliveredAddressNotNil() predicate.Order

DeliveredAddressNotNil applies the NotNil predicate on the "delivered_address" field.

func HasTransaction

func HasTransaction() predicate.Order

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

func HasTxItems() predicate.Order

HasTxItems applies the HasEdge predicate on the "txItems" edge.

func HasTxItemsWith

func HasTxItemsWith(preds ...predicate.TxItem) predicate.Order

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

func ID

func ID(id int64) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Order

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Order

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Order) predicate.Order

Or groups predicates with the OR operator between them.

func OrderNo

func OrderNo(v string) predicate.Order

OrderNo applies equality check predicate on the "order_no" field. It's identical to OrderNoEQ.

func OrderNoContains

func OrderNoContains(v string) predicate.Order

OrderNoContains applies the Contains predicate on the "order_no" field.

func OrderNoContainsFold

func OrderNoContainsFold(v string) predicate.Order

OrderNoContainsFold applies the ContainsFold predicate on the "order_no" field.

func OrderNoEQ

func OrderNoEQ(v string) predicate.Order

OrderNoEQ applies the EQ predicate on the "order_no" field.

func OrderNoEqualFold

func OrderNoEqualFold(v string) predicate.Order

OrderNoEqualFold applies the EqualFold predicate on the "order_no" field.

func OrderNoGT

func OrderNoGT(v string) predicate.Order

OrderNoGT applies the GT predicate on the "order_no" field.

func OrderNoGTE

func OrderNoGTE(v string) predicate.Order

OrderNoGTE applies the GTE predicate on the "order_no" field.

func OrderNoHasPrefix

func OrderNoHasPrefix(v string) predicate.Order

OrderNoHasPrefix applies the HasPrefix predicate on the "order_no" field.

func OrderNoHasSuffix

func OrderNoHasSuffix(v string) predicate.Order

OrderNoHasSuffix applies the HasSuffix predicate on the "order_no" field.

func OrderNoIn

func OrderNoIn(vs ...string) predicate.Order

OrderNoIn applies the In predicate on the "order_no" field.

func OrderNoIsNil

func OrderNoIsNil() predicate.Order

OrderNoIsNil applies the IsNil predicate on the "order_no" field.

func OrderNoLT

func OrderNoLT(v string) predicate.Order

OrderNoLT applies the LT predicate on the "order_no" field.

func OrderNoLTE

func OrderNoLTE(v string) predicate.Order

OrderNoLTE applies the LTE predicate on the "order_no" field.

func OrderNoNEQ

func OrderNoNEQ(v string) predicate.Order

OrderNoNEQ applies the NEQ predicate on the "order_no" field.

func OrderNoNotIn

func OrderNoNotIn(vs ...string) predicate.Order

OrderNoNotIn applies the NotIn predicate on the "order_no" field.

func OrderNoNotNil

func OrderNoNotNil() predicate.Order

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

func PaymentID(v int64) predicate.Order

PaymentID applies equality check predicate on the "payment_id" field. It's identical to PaymentIDEQ.

func PaymentIDEQ

func PaymentIDEQ(v int64) predicate.Order

PaymentIDEQ applies the EQ predicate on the "payment_id" field.

func PaymentIDGT

func PaymentIDGT(v int64) predicate.Order

PaymentIDGT applies the GT predicate on the "payment_id" field.

func PaymentIDGTE

func PaymentIDGTE(v int64) predicate.Order

PaymentIDGTE applies the GTE predicate on the "payment_id" field.

func PaymentIDIn

func PaymentIDIn(vs ...int64) predicate.Order

PaymentIDIn applies the In predicate on the "payment_id" field.

func PaymentIDIsNil

func PaymentIDIsNil() predicate.Order

PaymentIDIsNil applies the IsNil predicate on the "payment_id" field.

func PaymentIDLT

func PaymentIDLT(v int64) predicate.Order

PaymentIDLT applies the LT predicate on the "payment_id" field.

func PaymentIDLTE

func PaymentIDLTE(v int64) predicate.Order

PaymentIDLTE applies the LTE predicate on the "payment_id" field.

func PaymentIDNEQ

func PaymentIDNEQ(v int64) predicate.Order

PaymentIDNEQ applies the NEQ predicate on the "payment_id" field.

func PaymentIDNotIn

func PaymentIDNotIn(vs ...int64) predicate.Order

PaymentIDNotIn applies the NotIn predicate on the "payment_id" field.

func PaymentIDNotNil

func PaymentIDNotNil() predicate.Order

PaymentIDNotNil applies the NotNil predicate on the "payment_id" field.

func PlacedAt

func PlacedAt(v time.Time) predicate.Order

PlacedAt applies equality check predicate on the "placed_at" field. It's identical to PlacedAtEQ.

func PlacedAtEQ

func PlacedAtEQ(v time.Time) predicate.Order

PlacedAtEQ applies the EQ predicate on the "placed_at" field.

func PlacedAtGT

func PlacedAtGT(v time.Time) predicate.Order

PlacedAtGT applies the GT predicate on the "placed_at" field.

func PlacedAtGTE

func PlacedAtGTE(v time.Time) predicate.Order

PlacedAtGTE applies the GTE predicate on the "placed_at" field.

func PlacedAtIn

func PlacedAtIn(vs ...time.Time) predicate.Order

PlacedAtIn applies the In predicate on the "placed_at" field.

func PlacedAtIsNil

func PlacedAtIsNil() predicate.Order

PlacedAtIsNil applies the IsNil predicate on the "placed_at" field.

func PlacedAtLT

func PlacedAtLT(v time.Time) predicate.Order

PlacedAtLT applies the LT predicate on the "placed_at" field.

func PlacedAtLTE

func PlacedAtLTE(v time.Time) predicate.Order

PlacedAtLTE applies the LTE predicate on the "placed_at" field.

func PlacedAtNEQ

func PlacedAtNEQ(v time.Time) predicate.Order

PlacedAtNEQ applies the NEQ predicate on the "placed_at" field.

func PlacedAtNotIn

func PlacedAtNotIn(vs ...time.Time) predicate.Order

PlacedAtNotIn applies the NotIn predicate on the "placed_at" field.

func PlacedAtNotNil

func PlacedAtNotNil() predicate.Order

PlacedAtNotNil applies the NotNil predicate on the "placed_at" field.

func PlacedUserID

func PlacedUserID(v int64) predicate.Order

PlacedUserID applies equality check predicate on the "placed_user_id" field. It's identical to PlacedUserIDEQ.

func PlacedUserIDEQ

func PlacedUserIDEQ(v int64) predicate.Order

PlacedUserIDEQ applies the EQ predicate on the "placed_user_id" field.

func PlacedUserIDGT

func PlacedUserIDGT(v int64) predicate.Order

PlacedUserIDGT applies the GT predicate on the "placed_user_id" field.

func PlacedUserIDGTE

func PlacedUserIDGTE(v int64) predicate.Order

PlacedUserIDGTE applies the GTE predicate on the "placed_user_id" field.

func PlacedUserIDIn

func PlacedUserIDIn(vs ...int64) predicate.Order

PlacedUserIDIn applies the In predicate on the "placed_user_id" field.

func PlacedUserIDLT

func PlacedUserIDLT(v int64) predicate.Order

PlacedUserIDLT applies the LT predicate on the "placed_user_id" field.

func PlacedUserIDLTE

func PlacedUserIDLTE(v int64) predicate.Order

PlacedUserIDLTE applies the LTE predicate on the "placed_user_id" field.

func PlacedUserIDNEQ

func PlacedUserIDNEQ(v int64) predicate.Order

PlacedUserIDNEQ applies the NEQ predicate on the "placed_user_id" field.

func PlacedUserIDNotIn

func PlacedUserIDNotIn(vs ...int64) predicate.Order

PlacedUserIDNotIn applies the NotIn predicate on the "placed_user_id" field.

func ShippedAddress

func ShippedAddress(v string) predicate.Order

ShippedAddress applies equality check predicate on the "shipped_address" field. It's identical to ShippedAddressEQ.

func ShippedAddressContains

func ShippedAddressContains(v string) predicate.Order

ShippedAddressContains applies the Contains predicate on the "shipped_address" field.

func ShippedAddressContainsFold

func ShippedAddressContainsFold(v string) predicate.Order

ShippedAddressContainsFold applies the ContainsFold predicate on the "shipped_address" field.

func ShippedAddressEQ

func ShippedAddressEQ(v string) predicate.Order

ShippedAddressEQ applies the EQ predicate on the "shipped_address" field.

func ShippedAddressEqualFold

func ShippedAddressEqualFold(v string) predicate.Order

ShippedAddressEqualFold applies the EqualFold predicate on the "shipped_address" field.

func ShippedAddressGT

func ShippedAddressGT(v string) predicate.Order

ShippedAddressGT applies the GT predicate on the "shipped_address" field.

func ShippedAddressGTE

func ShippedAddressGTE(v string) predicate.Order

ShippedAddressGTE applies the GTE predicate on the "shipped_address" field.

func ShippedAddressHasPrefix

func ShippedAddressHasPrefix(v string) predicate.Order

ShippedAddressHasPrefix applies the HasPrefix predicate on the "shipped_address" field.

func ShippedAddressHasSuffix

func ShippedAddressHasSuffix(v string) predicate.Order

ShippedAddressHasSuffix applies the HasSuffix predicate on the "shipped_address" field.

func ShippedAddressIn

func ShippedAddressIn(vs ...string) predicate.Order

ShippedAddressIn applies the In predicate on the "shipped_address" field.

func ShippedAddressIsNil

func ShippedAddressIsNil() predicate.Order

ShippedAddressIsNil applies the IsNil predicate on the "shipped_address" field.

func ShippedAddressLT

func ShippedAddressLT(v string) predicate.Order

ShippedAddressLT applies the LT predicate on the "shipped_address" field.

func ShippedAddressLTE

func ShippedAddressLTE(v string) predicate.Order

ShippedAddressLTE applies the LTE predicate on the "shipped_address" field.

func ShippedAddressNEQ

func ShippedAddressNEQ(v string) predicate.Order

ShippedAddressNEQ applies the NEQ predicate on the "shipped_address" field.

func ShippedAddressNotIn

func ShippedAddressNotIn(vs ...string) predicate.Order

ShippedAddressNotIn applies the NotIn predicate on the "shipped_address" field.

func ShippedAddressNotNil

func ShippedAddressNotNil() predicate.Order

ShippedAddressNotNil applies the NotNil predicate on the "shipped_address" field.

func ShippedAt

func ShippedAt(v time.Time) predicate.Order

ShippedAt applies equality check predicate on the "shipped_at" field. It's identical to ShippedAtEQ.

func ShippedAtEQ

func ShippedAtEQ(v time.Time) predicate.Order

ShippedAtEQ applies the EQ predicate on the "shipped_at" field.

func ShippedAtGT

func ShippedAtGT(v time.Time) predicate.Order

ShippedAtGT applies the GT predicate on the "shipped_at" field.

func ShippedAtGTE

func ShippedAtGTE(v time.Time) predicate.Order

ShippedAtGTE applies the GTE predicate on the "shipped_at" field.

func ShippedAtIn

func ShippedAtIn(vs ...time.Time) predicate.Order

ShippedAtIn applies the In predicate on the "shipped_at" field.

func ShippedAtIsNil

func ShippedAtIsNil() predicate.Order

ShippedAtIsNil applies the IsNil predicate on the "shipped_at" field.

func ShippedAtLT

func ShippedAtLT(v time.Time) predicate.Order

ShippedAtLT applies the LT predicate on the "shipped_at" field.

func ShippedAtLTE

func ShippedAtLTE(v time.Time) predicate.Order

ShippedAtLTE applies the LTE predicate on the "shipped_at" field.

func ShippedAtNEQ

func ShippedAtNEQ(v time.Time) predicate.Order

ShippedAtNEQ applies the NEQ predicate on the "shipped_at" field.

func ShippedAtNotIn

func ShippedAtNotIn(vs ...time.Time) predicate.Order

ShippedAtNotIn applies the NotIn predicate on the "shipped_at" field.

func ShippedAtNotNil

func ShippedAtNotNil() predicate.Order

ShippedAtNotNil applies the NotNil predicate on the "shipped_at" field.

func ShippingCost

func ShippingCost(v float64) predicate.Order

ShippingCost applies equality check predicate on the "shipping_cost" field. It's identical to ShippingCostEQ.

func ShippingCostEQ

func ShippingCostEQ(v float64) predicate.Order

ShippingCostEQ applies the EQ predicate on the "shipping_cost" field.

func ShippingCostGT

func ShippingCostGT(v float64) predicate.Order

ShippingCostGT applies the GT predicate on the "shipping_cost" field.

func ShippingCostGTE

func ShippingCostGTE(v float64) predicate.Order

ShippingCostGTE applies the GTE predicate on the "shipping_cost" field.

func ShippingCostIn

func ShippingCostIn(vs ...float64) predicate.Order

ShippingCostIn applies the In predicate on the "shipping_cost" field.

func ShippingCostIsNil

func ShippingCostIsNil() predicate.Order

ShippingCostIsNil applies the IsNil predicate on the "shipping_cost" field.

func ShippingCostLT

func ShippingCostLT(v float64) predicate.Order

ShippingCostLT applies the LT predicate on the "shipping_cost" field.

func ShippingCostLTE

func ShippingCostLTE(v float64) predicate.Order

ShippingCostLTE applies the LTE predicate on the "shipping_cost" field.

func ShippingCostNEQ

func ShippingCostNEQ(v float64) predicate.Order

ShippingCostNEQ applies the NEQ predicate on the "shipping_cost" field.

func ShippingCostNotIn

func ShippingCostNotIn(vs ...float64) predicate.Order

ShippingCostNotIn applies the NotIn predicate on the "shipping_cost" field.

func ShippingCostNotNil

func ShippingCostNotNil() predicate.Order

ShippingCostNotNil applies the NotNil predicate on the "shipping_cost" field.

func TotalAmount

func TotalAmount(v float64) predicate.Order

TotalAmount applies equality check predicate on the "total_amount" field. It's identical to TotalAmountEQ.

func TotalAmountEQ

func TotalAmountEQ(v float64) predicate.Order

TotalAmountEQ applies the EQ predicate on the "total_amount" field.

func TotalAmountGT

func TotalAmountGT(v float64) predicate.Order

TotalAmountGT applies the GT predicate on the "total_amount" field.

func TotalAmountGTE

func TotalAmountGTE(v float64) predicate.Order

TotalAmountGTE applies the GTE predicate on the "total_amount" field.

func TotalAmountIn

func TotalAmountIn(vs ...float64) predicate.Order

TotalAmountIn applies the In predicate on the "total_amount" field.

func TotalAmountIsNil

func TotalAmountIsNil() predicate.Order

TotalAmountIsNil applies the IsNil predicate on the "total_amount" field.

func TotalAmountLT

func TotalAmountLT(v float64) predicate.Order

TotalAmountLT applies the LT predicate on the "total_amount" field.

func TotalAmountLTE

func TotalAmountLTE(v float64) predicate.Order

TotalAmountLTE applies the LTE predicate on the "total_amount" field.

func TotalAmountNEQ

func TotalAmountNEQ(v float64) predicate.Order

TotalAmountNEQ applies the NEQ predicate on the "total_amount" field.

func TotalAmountNotIn

func TotalAmountNotIn(vs ...float64) predicate.Order

TotalAmountNotIn applies the NotIn predicate on the "total_amount" field.

func TotalAmountNotNil

func TotalAmountNotNil() predicate.Order

TotalAmountNotNil applies the NotNil predicate on the "total_amount" field.

func TxID

func TxID(v int64) predicate.Order

TxID applies equality check predicate on the "tx_id" field. It's identical to TxIDEQ.

func TxIDEQ

func TxIDEQ(v int64) predicate.Order

TxIDEQ applies the EQ predicate on the "tx_id" field.

func TxIDGT

func TxIDGT(v int64) predicate.Order

TxIDGT applies the GT predicate on the "tx_id" field.

func TxIDGTE

func TxIDGTE(v int64) predicate.Order

TxIDGTE applies the GTE predicate on the "tx_id" field.

func TxIDIn

func TxIDIn(vs ...int64) predicate.Order

TxIDIn applies the In predicate on the "tx_id" field.

func TxIDLT

func TxIDLT(v int64) predicate.Order

TxIDLT applies the LT predicate on the "tx_id" field.

func TxIDLTE

func TxIDLTE(v int64) predicate.Order

TxIDLTE applies the LTE predicate on the "tx_id" field.

func TxIDNEQ

func TxIDNEQ(v int64) predicate.Order

TxIDNEQ applies the NEQ predicate on the "tx_id" field.

func TxIDNotIn

func TxIDNotIn(vs ...int64) predicate.Order

TxIDNotIn applies the NotIn predicate on the "tx_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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

Jump to

Keyboard shortcuts

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