Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Transaction) predicate.Transaction
- func HasTxItems() predicate.Transaction
- func HasTxItemsWith(preds ...predicate.TxItem) predicate.Transaction
- func HasTxOrder() predicate.Transaction
- func HasTxOrderWith(preds ...predicate.Order) predicate.Transaction
- func ID(id int64) predicate.Transaction
- func IDEQ(id int64) predicate.Transaction
- func IDGT(id int64) predicate.Transaction
- func IDGTE(id int64) predicate.Transaction
- func IDIn(ids ...int64) predicate.Transaction
- func IDLT(id int64) predicate.Transaction
- func IDLTE(id int64) predicate.Transaction
- func IDNEQ(id int64) predicate.Transaction
- func IDNotIn(ids ...int64) predicate.Transaction
- func Not(p predicate.Transaction) predicate.Transaction
- func Or(predicates ...predicate.Transaction) predicate.Transaction
- func PaymentID(v int64) predicate.Transaction
- func PaymentIDEQ(v int64) predicate.Transaction
- func PaymentIDGT(v int64) predicate.Transaction
- func PaymentIDGTE(v int64) predicate.Transaction
- func PaymentIDIn(vs ...int64) predicate.Transaction
- func PaymentIDIsNil() predicate.Transaction
- func PaymentIDLT(v int64) predicate.Transaction
- func PaymentIDLTE(v int64) predicate.Transaction
- func PaymentIDNEQ(v int64) predicate.Transaction
- func PaymentIDNotIn(vs ...int64) predicate.Transaction
- func PaymentIDNotNil() predicate.Transaction
- func Quantity(v int) predicate.Transaction
- func QuantityEQ(v int) predicate.Transaction
- func QuantityGT(v int) predicate.Transaction
- func QuantityGTE(v int) predicate.Transaction
- func QuantityIn(vs ...int) predicate.Transaction
- func QuantityLT(v int) predicate.Transaction
- func QuantityLTE(v int) predicate.Transaction
- func QuantityNEQ(v int) predicate.Transaction
- func QuantityNotIn(vs ...int) predicate.Transaction
- func TxAmount(v float64) predicate.Transaction
- func TxAmountEQ(v float64) predicate.Transaction
- func TxAmountGT(v float64) predicate.Transaction
- func TxAmountGTE(v float64) predicate.Transaction
- func TxAmountIn(vs ...float64) predicate.Transaction
- func TxAmountIsNil() predicate.Transaction
- func TxAmountLT(v float64) predicate.Transaction
- func TxAmountLTE(v float64) predicate.Transaction
- func TxAmountNEQ(v float64) predicate.Transaction
- func TxAmountNotIn(vs ...float64) predicate.Transaction
- func TxAmountNotNil() predicate.Transaction
- func TxDate(v time.Time) predicate.Transaction
- func TxDateEQ(v time.Time) predicate.Transaction
- func TxDateGT(v time.Time) predicate.Transaction
- func TxDateGTE(v time.Time) predicate.Transaction
- func TxDateIn(vs ...time.Time) predicate.Transaction
- func TxDateIsNil() predicate.Transaction
- func TxDateLT(v time.Time) predicate.Transaction
- func TxDateLTE(v time.Time) predicate.Transaction
- func TxDateNEQ(v time.Time) predicate.Transaction
- func TxDateNotIn(vs ...time.Time) predicate.Transaction
- func TxDateNotNil() predicate.Transaction
- func TxNo(v string) predicate.Transaction
- func TxNoContains(v string) predicate.Transaction
- func TxNoContainsFold(v string) predicate.Transaction
- func TxNoEQ(v string) predicate.Transaction
- func TxNoEqualFold(v string) predicate.Transaction
- func TxNoGT(v string) predicate.Transaction
- func TxNoGTE(v string) predicate.Transaction
- func TxNoHasPrefix(v string) predicate.Transaction
- func TxNoHasSuffix(v string) predicate.Transaction
- func TxNoIn(vs ...string) predicate.Transaction
- func TxNoLT(v string) predicate.Transaction
- func TxNoLTE(v string) predicate.Transaction
- func TxNoNEQ(v string) predicate.Transaction
- func TxNoNotIn(vs ...string) predicate.Transaction
- func TxStatusEQ(v TxStatus) predicate.Transaction
- func TxStatusIn(vs ...TxStatus) predicate.Transaction
- func TxStatusNEQ(v TxStatus) predicate.Transaction
- func TxStatusNotIn(vs ...TxStatus) predicate.Transaction
- func TxStatusValidator(ts TxStatus) error
- func TxTypeEQ(v TxType) predicate.Transaction
- func TxTypeIn(vs ...TxType) predicate.Transaction
- func TxTypeNEQ(v TxType) predicate.Transaction
- func TxTypeNotIn(vs ...TxType) predicate.Transaction
- func TxTypeValidator(tt TxType) error
- func UserID(v int64) predicate.Transaction
- func UserIDEQ(v int64) predicate.Transaction
- func UserIDGT(v int64) predicate.Transaction
- func UserIDGTE(v int64) predicate.Transaction
- func UserIDIn(vs ...int64) predicate.Transaction
- func UserIDLT(v int64) predicate.Transaction
- func UserIDLTE(v int64) predicate.Transaction
- func UserIDNEQ(v int64) predicate.Transaction
- func UserIDNotIn(vs ...int64) predicate.Transaction
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPaymentID(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
- func ByTxAmount(opts ...sql.OrderTermOption) OrderOption
- func ByTxDate(opts ...sql.OrderTermOption) OrderOption
- func ByTxItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTxItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTxNo(opts ...sql.OrderTermOption) OrderOption
- func ByTxOrder(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTxOrderCount(opts ...sql.OrderTermOption) OrderOption
- func ByTxStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTxType(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- type TxStatus
- type TxType
Constants ¶
const ( // Label holds the string label denoting the transaction type in the database. Label = "transaction" // FieldID holds the string denoting the id field in the database. FieldID = "tx_id" // FieldTxNo holds the string denoting the tx_no field in the database. FieldTxNo = "tx_no" // FieldTxType holds the string denoting the tx_type field in the database. FieldTxType = "tx_type" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // FieldTxStatus holds the string denoting the tx_status field in the database. FieldTxStatus = "tx_status" // FieldTxDate holds the string denoting the tx_date field in the database. FieldTxDate = "tx_date" // FieldTxAmount holds the string denoting the tx_amount field in the database. FieldTxAmount = "tx_amount" // FieldPaymentID holds the string denoting the payment_id field in the database. FieldPaymentID = "payment_id" // EdgeTxItems holds the string denoting the txitems edge name in mutations. EdgeTxItems = "txItems" // EdgeTxOrder holds the string denoting the txorder edge name in mutations. EdgeTxOrder = "txOrder" // TxItemFieldID holds the string denoting the ID field of the TxItem. TxItemFieldID = "tx_item_id" // OrderFieldID holds the string denoting the ID field of the Order. OrderFieldID = "order_id" // Table holds the table name of the transaction in the database. Table = "transactions" // 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 = "transaction_tx_items" // TxOrderTable is the table that holds the txOrder relation/edge. TxOrderTable = "orders" // TxOrderInverseTable is the table name for the Order entity. // It exists in this package in order to avoid circular dependency with the "order" package. TxOrderInverseTable = "orders" // TxOrderColumn is the table column denoting the txOrder relation/edge. TxOrderColumn = "transaction_tx_order" )
Variables ¶
var Columns = []string{ FieldID, FieldTxNo, FieldTxType, FieldUserID, FieldQuantity, FieldTxStatus, FieldTxDate, FieldTxAmount, FieldPaymentID, }
Columns holds all SQL columns for transaction fields.
var ForeignKeys = []string{
"order_transaction",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "transactions" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Transaction) predicate.Transaction
And groups predicates with the AND operator between them.
func HasTxItems ¶
func HasTxItems() predicate.Transaction
HasTxItems applies the HasEdge predicate on the "txItems" edge.
func HasTxItemsWith ¶
func HasTxItemsWith(preds ...predicate.TxItem) predicate.Transaction
HasTxItemsWith applies the HasEdge predicate on the "txItems" edge with a given conditions (other predicates).
func HasTxOrder ¶
func HasTxOrder() predicate.Transaction
HasTxOrder applies the HasEdge predicate on the "txOrder" edge.
func HasTxOrderWith ¶
func HasTxOrderWith(preds ...predicate.Order) predicate.Transaction
HasTxOrderWith applies the HasEdge predicate on the "txOrder" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.Transaction
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.Transaction
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.Transaction
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Transaction
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.Transaction
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Transaction
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Transaction
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Transaction
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Transaction) predicate.Transaction
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Transaction) predicate.Transaction
Or groups predicates with the OR operator between them.
func PaymentID ¶
func PaymentID(v int64) predicate.Transaction
PaymentID applies equality check predicate on the "payment_id" field. It's identical to PaymentIDEQ.
func PaymentIDEQ ¶
func PaymentIDEQ(v int64) predicate.Transaction
PaymentIDEQ applies the EQ predicate on the "payment_id" field.
func PaymentIDGT ¶
func PaymentIDGT(v int64) predicate.Transaction
PaymentIDGT applies the GT predicate on the "payment_id" field.
func PaymentIDGTE ¶
func PaymentIDGTE(v int64) predicate.Transaction
PaymentIDGTE applies the GTE predicate on the "payment_id" field.
func PaymentIDIn ¶
func PaymentIDIn(vs ...int64) predicate.Transaction
PaymentIDIn applies the In predicate on the "payment_id" field.
func PaymentIDIsNil ¶
func PaymentIDIsNil() predicate.Transaction
PaymentIDIsNil applies the IsNil predicate on the "payment_id" field.
func PaymentIDLT ¶
func PaymentIDLT(v int64) predicate.Transaction
PaymentIDLT applies the LT predicate on the "payment_id" field.
func PaymentIDLTE ¶
func PaymentIDLTE(v int64) predicate.Transaction
PaymentIDLTE applies the LTE predicate on the "payment_id" field.
func PaymentIDNEQ ¶
func PaymentIDNEQ(v int64) predicate.Transaction
PaymentIDNEQ applies the NEQ predicate on the "payment_id" field.
func PaymentIDNotIn ¶
func PaymentIDNotIn(vs ...int64) predicate.Transaction
PaymentIDNotIn applies the NotIn predicate on the "payment_id" field.
func PaymentIDNotNil ¶
func PaymentIDNotNil() predicate.Transaction
PaymentIDNotNil applies the NotNil predicate on the "payment_id" field.
func Quantity ¶
func Quantity(v int) predicate.Transaction
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
func QuantityEQ(v int) predicate.Transaction
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
func QuantityGT(v int) predicate.Transaction
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
func QuantityGTE(v int) predicate.Transaction
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
func QuantityIn(vs ...int) predicate.Transaction
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
func QuantityLT(v int) predicate.Transaction
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
func QuantityLTE(v int) predicate.Transaction
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
func QuantityNEQ(v int) predicate.Transaction
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
func QuantityNotIn(vs ...int) predicate.Transaction
QuantityNotIn applies the NotIn predicate on the "quantity" field.
func TxAmount ¶
func TxAmount(v float64) predicate.Transaction
TxAmount applies equality check predicate on the "tx_amount" field. It's identical to TxAmountEQ.
func TxAmountEQ ¶
func TxAmountEQ(v float64) predicate.Transaction
TxAmountEQ applies the EQ predicate on the "tx_amount" field.
func TxAmountGT ¶
func TxAmountGT(v float64) predicate.Transaction
TxAmountGT applies the GT predicate on the "tx_amount" field.
func TxAmountGTE ¶
func TxAmountGTE(v float64) predicate.Transaction
TxAmountGTE applies the GTE predicate on the "tx_amount" field.
func TxAmountIn ¶
func TxAmountIn(vs ...float64) predicate.Transaction
TxAmountIn applies the In predicate on the "tx_amount" field.
func TxAmountIsNil ¶
func TxAmountIsNil() predicate.Transaction
TxAmountIsNil applies the IsNil predicate on the "tx_amount" field.
func TxAmountLT ¶
func TxAmountLT(v float64) predicate.Transaction
TxAmountLT applies the LT predicate on the "tx_amount" field.
func TxAmountLTE ¶
func TxAmountLTE(v float64) predicate.Transaction
TxAmountLTE applies the LTE predicate on the "tx_amount" field.
func TxAmountNEQ ¶
func TxAmountNEQ(v float64) predicate.Transaction
TxAmountNEQ applies the NEQ predicate on the "tx_amount" field.
func TxAmountNotIn ¶
func TxAmountNotIn(vs ...float64) predicate.Transaction
TxAmountNotIn applies the NotIn predicate on the "tx_amount" field.
func TxAmountNotNil ¶
func TxAmountNotNil() predicate.Transaction
TxAmountNotNil applies the NotNil predicate on the "tx_amount" field.
func TxDate ¶
func TxDate(v time.Time) predicate.Transaction
TxDate applies equality check predicate on the "tx_date" field. It's identical to TxDateEQ.
func TxDateEQ ¶
func TxDateEQ(v time.Time) predicate.Transaction
TxDateEQ applies the EQ predicate on the "tx_date" field.
func TxDateGT ¶
func TxDateGT(v time.Time) predicate.Transaction
TxDateGT applies the GT predicate on the "tx_date" field.
func TxDateGTE ¶
func TxDateGTE(v time.Time) predicate.Transaction
TxDateGTE applies the GTE predicate on the "tx_date" field.
func TxDateIn ¶
func TxDateIn(vs ...time.Time) predicate.Transaction
TxDateIn applies the In predicate on the "tx_date" field.
func TxDateIsNil ¶
func TxDateIsNil() predicate.Transaction
TxDateIsNil applies the IsNil predicate on the "tx_date" field.
func TxDateLT ¶
func TxDateLT(v time.Time) predicate.Transaction
TxDateLT applies the LT predicate on the "tx_date" field.
func TxDateLTE ¶
func TxDateLTE(v time.Time) predicate.Transaction
TxDateLTE applies the LTE predicate on the "tx_date" field.
func TxDateNEQ ¶
func TxDateNEQ(v time.Time) predicate.Transaction
TxDateNEQ applies the NEQ predicate on the "tx_date" field.
func TxDateNotIn ¶
func TxDateNotIn(vs ...time.Time) predicate.Transaction
TxDateNotIn applies the NotIn predicate on the "tx_date" field.
func TxDateNotNil ¶
func TxDateNotNil() predicate.Transaction
TxDateNotNil applies the NotNil predicate on the "tx_date" field.
func TxNo ¶
func TxNo(v string) predicate.Transaction
TxNo applies equality check predicate on the "tx_no" field. It's identical to TxNoEQ.
func TxNoContains ¶
func TxNoContains(v string) predicate.Transaction
TxNoContains applies the Contains predicate on the "tx_no" field.
func TxNoContainsFold ¶
func TxNoContainsFold(v string) predicate.Transaction
TxNoContainsFold applies the ContainsFold predicate on the "tx_no" field.
func TxNoEQ ¶
func TxNoEQ(v string) predicate.Transaction
TxNoEQ applies the EQ predicate on the "tx_no" field.
func TxNoEqualFold ¶
func TxNoEqualFold(v string) predicate.Transaction
TxNoEqualFold applies the EqualFold predicate on the "tx_no" field.
func TxNoGT ¶
func TxNoGT(v string) predicate.Transaction
TxNoGT applies the GT predicate on the "tx_no" field.
func TxNoGTE ¶
func TxNoGTE(v string) predicate.Transaction
TxNoGTE applies the GTE predicate on the "tx_no" field.
func TxNoHasPrefix ¶
func TxNoHasPrefix(v string) predicate.Transaction
TxNoHasPrefix applies the HasPrefix predicate on the "tx_no" field.
func TxNoHasSuffix ¶
func TxNoHasSuffix(v string) predicate.Transaction
TxNoHasSuffix applies the HasSuffix predicate on the "tx_no" field.
func TxNoIn ¶
func TxNoIn(vs ...string) predicate.Transaction
TxNoIn applies the In predicate on the "tx_no" field.
func TxNoLT ¶
func TxNoLT(v string) predicate.Transaction
TxNoLT applies the LT predicate on the "tx_no" field.
func TxNoLTE ¶
func TxNoLTE(v string) predicate.Transaction
TxNoLTE applies the LTE predicate on the "tx_no" field.
func TxNoNEQ ¶
func TxNoNEQ(v string) predicate.Transaction
TxNoNEQ applies the NEQ predicate on the "tx_no" field.
func TxNoNotIn ¶
func TxNoNotIn(vs ...string) predicate.Transaction
TxNoNotIn applies the NotIn predicate on the "tx_no" field.
func TxStatusEQ ¶
func TxStatusEQ(v TxStatus) predicate.Transaction
TxStatusEQ applies the EQ predicate on the "tx_status" field.
func TxStatusIn ¶
func TxStatusIn(vs ...TxStatus) predicate.Transaction
TxStatusIn applies the In predicate on the "tx_status" field.
func TxStatusNEQ ¶
func TxStatusNEQ(v TxStatus) predicate.Transaction
TxStatusNEQ applies the NEQ predicate on the "tx_status" field.
func TxStatusNotIn ¶
func TxStatusNotIn(vs ...TxStatus) predicate.Transaction
TxStatusNotIn applies the NotIn predicate on the "tx_status" field.
func TxStatusValidator ¶
TxStatusValidator is a validator for the "tx_status" field enum values. It is called by the builders before save.
func TxTypeEQ ¶
func TxTypeEQ(v TxType) predicate.Transaction
TxTypeEQ applies the EQ predicate on the "tx_type" field.
func TxTypeIn ¶
func TxTypeIn(vs ...TxType) predicate.Transaction
TxTypeIn applies the In predicate on the "tx_type" field.
func TxTypeNEQ ¶
func TxTypeNEQ(v TxType) predicate.Transaction
TxTypeNEQ applies the NEQ predicate on the "tx_type" field.
func TxTypeNotIn ¶
func TxTypeNotIn(vs ...TxType) predicate.Transaction
TxTypeNotIn applies the NotIn predicate on the "tx_type" field.
func TxTypeValidator ¶
TxTypeValidator is a validator for the "tx_type" field enum values. It is called by the builders before save.
func UserID ¶
func UserID(v int64) predicate.Transaction
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int64) predicate.Transaction
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v int64) predicate.Transaction
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v int64) predicate.Transaction
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int64) predicate.Transaction
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v int64) predicate.Transaction
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v int64) predicate.Transaction
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int64) predicate.Transaction
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int64) predicate.Transaction
UserIDNotIn applies the NotIn predicate on the "user_id" 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 Transaction queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPaymentID ¶
func ByPaymentID(opts ...sql.OrderTermOption) OrderOption
ByPaymentID orders the results by the payment_id field.
func ByQuantity ¶
func ByQuantity(opts ...sql.OrderTermOption) OrderOption
ByQuantity orders the results by the quantity field.
func ByTxAmount ¶
func ByTxAmount(opts ...sql.OrderTermOption) OrderOption
ByTxAmount orders the results by the tx_amount field.
func ByTxDate ¶
func ByTxDate(opts ...sql.OrderTermOption) OrderOption
ByTxDate orders the results by the tx_date 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.
func ByTxNo ¶
func ByTxNo(opts ...sql.OrderTermOption) OrderOption
ByTxNo orders the results by the tx_no field.
func ByTxOrder ¶
func ByTxOrder(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTxOrder orders the results by txOrder terms.
func ByTxOrderCount ¶
func ByTxOrderCount(opts ...sql.OrderTermOption) OrderOption
ByTxOrderCount orders the results by txOrder count.
func ByTxStatus ¶
func ByTxStatus(opts ...sql.OrderTermOption) OrderOption
ByTxStatus orders the results by the tx_status field.
func ByTxType ¶
func ByTxType(opts ...sql.OrderTermOption) OrderOption
ByTxType orders the results by the tx_type field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.