order

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: 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 = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldAccount holds the string denoting the account field in the database.
	FieldAccount = "account"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldSymbol holds the string denoting the symbol field in the database.
	FieldSymbol = "symbol"
	// FieldGridId holds the string denoting the gridid field in the database.
	FieldGridId = "grid_id"
	// FieldGridNumber holds the string denoting the gridnumber field in the database.
	FieldGridNumber = "grid_number"
	// FieldGridBuyCost holds the string denoting the gridbuycost field in the database.
	FieldGridBuyCost = "grid_buy_cost"
	// FieldStrategyId holds the string denoting the strategyid field in the database.
	FieldStrategyId = "strategy_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldFinalPrice holds the string denoting the finalprice field in the database.
	FieldFinalPrice = "final_price"
	// FieldInAmount holds the string denoting the inamount field in the database.
	FieldInAmount = "in_amount"
	// FieldOutAmount holds the string denoting the outamount field in the database.
	FieldOutAmount = "out_amount"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldNonce holds the string denoting the nonce field in the database.
	FieldNonce = "nonce"
	// FieldTxHash holds the string denoting the txhash field in the database.
	FieldTxHash = "tx_hash"
	// FieldReason holds the string denoting the reason field in the database.
	FieldReason = "reason"
	// FieldProfit holds the string denoting the profit field in the database.
	FieldProfit = "profit"
	// Table holds the table name of the order in the database.
	Table = "orders"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// AccountValidator is a validator for the "account" field. It is called by the builders before save.
	AccountValidator func(string) error
	// TokenValidator is a validator for the "token" field. It is called by the builders before save.
	TokenValidator func(string) error
	// SymbolValidator is a validator for the "symbol" field. It is called by the builders before save.
	SymbolValidator func(string) error
	// GridIdValidator is a validator for the "gridId" field. It is called by the builders before save.
	GridIdValidator func(string) error
	// StrategyIdValidator is a validator for the "strategyId" field. It is called by the builders before save.
	StrategyIdValidator func(string) error
	// TxHashValidator is a validator for the "txHash" field. It is called by the builders before save.
	TxHashValidator func(string) error
	// ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
	ReasonValidator func(string) error
)

Columns holds all SQL columns for order fields.

Functions

func Account

func Account(v string) predicate.Order

Account applies equality check predicate on the "account" field. It's identical to AccountEQ.

func AccountContains

func AccountContains(v string) predicate.Order

AccountContains applies the Contains predicate on the "account" field.

func AccountContainsFold

func AccountContainsFold(v string) predicate.Order

AccountContainsFold applies the ContainsFold predicate on the "account" field.

func AccountEQ

func AccountEQ(v string) predicate.Order

AccountEQ applies the EQ predicate on the "account" field.

func AccountEqualFold

func AccountEqualFold(v string) predicate.Order

AccountEqualFold applies the EqualFold predicate on the "account" field.

func AccountGT

func AccountGT(v string) predicate.Order

AccountGT applies the GT predicate on the "account" field.

func AccountGTE

func AccountGTE(v string) predicate.Order

AccountGTE applies the GTE predicate on the "account" field.

func AccountHasPrefix

func AccountHasPrefix(v string) predicate.Order

AccountHasPrefix applies the HasPrefix predicate on the "account" field.

func AccountHasSuffix

func AccountHasSuffix(v string) predicate.Order

AccountHasSuffix applies the HasSuffix predicate on the "account" field.

func AccountIn

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

AccountIn applies the In predicate on the "account" field.

func AccountLT

func AccountLT(v string) predicate.Order

AccountLT applies the LT predicate on the "account" field.

func AccountLTE

func AccountLTE(v string) predicate.Order

AccountLTE applies the LTE predicate on the "account" field.

func AccountNEQ

func AccountNEQ(v string) predicate.Order

AccountNEQ applies the NEQ predicate on the "account" field.

func AccountNotIn

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

AccountNotIn applies the NotIn predicate on the "account" field.

func And

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

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Order

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Order

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Order

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Order

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

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

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Order

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Order

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Order

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func FinalPrice

func FinalPrice(v decimal.Decimal) predicate.Order

FinalPrice applies equality check predicate on the "finalPrice" field. It's identical to FinalPriceEQ.

func FinalPriceContains

func FinalPriceContains(v decimal.Decimal) predicate.Order

FinalPriceContains applies the Contains predicate on the "finalPrice" field.

func FinalPriceContainsFold

func FinalPriceContainsFold(v decimal.Decimal) predicate.Order

FinalPriceContainsFold applies the ContainsFold predicate on the "finalPrice" field.

func FinalPriceEQ

func FinalPriceEQ(v decimal.Decimal) predicate.Order

FinalPriceEQ applies the EQ predicate on the "finalPrice" field.

func FinalPriceEqualFold

func FinalPriceEqualFold(v decimal.Decimal) predicate.Order

FinalPriceEqualFold applies the EqualFold predicate on the "finalPrice" field.

func FinalPriceGT

func FinalPriceGT(v decimal.Decimal) predicate.Order

FinalPriceGT applies the GT predicate on the "finalPrice" field.

func FinalPriceGTE

func FinalPriceGTE(v decimal.Decimal) predicate.Order

FinalPriceGTE applies the GTE predicate on the "finalPrice" field.

func FinalPriceHasPrefix

func FinalPriceHasPrefix(v decimal.Decimal) predicate.Order

FinalPriceHasPrefix applies the HasPrefix predicate on the "finalPrice" field.

func FinalPriceHasSuffix

func FinalPriceHasSuffix(v decimal.Decimal) predicate.Order

FinalPriceHasSuffix applies the HasSuffix predicate on the "finalPrice" field.

func FinalPriceIn

func FinalPriceIn(vs ...decimal.Decimal) predicate.Order

FinalPriceIn applies the In predicate on the "finalPrice" field.

func FinalPriceLT

func FinalPriceLT(v decimal.Decimal) predicate.Order

FinalPriceLT applies the LT predicate on the "finalPrice" field.

func FinalPriceLTE

func FinalPriceLTE(v decimal.Decimal) predicate.Order

FinalPriceLTE applies the LTE predicate on the "finalPrice" field.

func FinalPriceNEQ

func FinalPriceNEQ(v decimal.Decimal) predicate.Order

FinalPriceNEQ applies the NEQ predicate on the "finalPrice" field.

func FinalPriceNotIn

func FinalPriceNotIn(vs ...decimal.Decimal) predicate.Order

FinalPriceNotIn applies the NotIn predicate on the "finalPrice" field.

func GridBuyCost

func GridBuyCost(v decimal.Decimal) predicate.Order

GridBuyCost applies equality check predicate on the "gridBuyCost" field. It's identical to GridBuyCostEQ.

func GridBuyCostContains

func GridBuyCostContains(v decimal.Decimal) predicate.Order

GridBuyCostContains applies the Contains predicate on the "gridBuyCost" field.

func GridBuyCostContainsFold

func GridBuyCostContainsFold(v decimal.Decimal) predicate.Order

GridBuyCostContainsFold applies the ContainsFold predicate on the "gridBuyCost" field.

func GridBuyCostEQ

func GridBuyCostEQ(v decimal.Decimal) predicate.Order

GridBuyCostEQ applies the EQ predicate on the "gridBuyCost" field.

func GridBuyCostEqualFold

func GridBuyCostEqualFold(v decimal.Decimal) predicate.Order

GridBuyCostEqualFold applies the EqualFold predicate on the "gridBuyCost" field.

func GridBuyCostGT

func GridBuyCostGT(v decimal.Decimal) predicate.Order

GridBuyCostGT applies the GT predicate on the "gridBuyCost" field.

func GridBuyCostGTE

func GridBuyCostGTE(v decimal.Decimal) predicate.Order

GridBuyCostGTE applies the GTE predicate on the "gridBuyCost" field.

func GridBuyCostHasPrefix

func GridBuyCostHasPrefix(v decimal.Decimal) predicate.Order

GridBuyCostHasPrefix applies the HasPrefix predicate on the "gridBuyCost" field.

func GridBuyCostHasSuffix

func GridBuyCostHasSuffix(v decimal.Decimal) predicate.Order

GridBuyCostHasSuffix applies the HasSuffix predicate on the "gridBuyCost" field.

func GridBuyCostIn

func GridBuyCostIn(vs ...decimal.Decimal) predicate.Order

GridBuyCostIn applies the In predicate on the "gridBuyCost" field.

func GridBuyCostIsNil

func GridBuyCostIsNil() predicate.Order

GridBuyCostIsNil applies the IsNil predicate on the "gridBuyCost" field.

func GridBuyCostLT

func GridBuyCostLT(v decimal.Decimal) predicate.Order

GridBuyCostLT applies the LT predicate on the "gridBuyCost" field.

func GridBuyCostLTE

func GridBuyCostLTE(v decimal.Decimal) predicate.Order

GridBuyCostLTE applies the LTE predicate on the "gridBuyCost" field.

func GridBuyCostNEQ

func GridBuyCostNEQ(v decimal.Decimal) predicate.Order

GridBuyCostNEQ applies the NEQ predicate on the "gridBuyCost" field.

func GridBuyCostNotIn

func GridBuyCostNotIn(vs ...decimal.Decimal) predicate.Order

GridBuyCostNotIn applies the NotIn predicate on the "gridBuyCost" field.

func GridBuyCostNotNil

func GridBuyCostNotNil() predicate.Order

GridBuyCostNotNil applies the NotNil predicate on the "gridBuyCost" field.

func GridId

func GridId(v string) predicate.Order

GridId applies equality check predicate on the "gridId" field. It's identical to GridIdEQ.

func GridIdContains

func GridIdContains(v string) predicate.Order

GridIdContains applies the Contains predicate on the "gridId" field.

func GridIdContainsFold

func GridIdContainsFold(v string) predicate.Order

GridIdContainsFold applies the ContainsFold predicate on the "gridId" field.

func GridIdEQ

func GridIdEQ(v string) predicate.Order

GridIdEQ applies the EQ predicate on the "gridId" field.

func GridIdEqualFold

func GridIdEqualFold(v string) predicate.Order

GridIdEqualFold applies the EqualFold predicate on the "gridId" field.

func GridIdGT

func GridIdGT(v string) predicate.Order

GridIdGT applies the GT predicate on the "gridId" field.

func GridIdGTE

func GridIdGTE(v string) predicate.Order

GridIdGTE applies the GTE predicate on the "gridId" field.

func GridIdHasPrefix

func GridIdHasPrefix(v string) predicate.Order

GridIdHasPrefix applies the HasPrefix predicate on the "gridId" field.

func GridIdHasSuffix

func GridIdHasSuffix(v string) predicate.Order

GridIdHasSuffix applies the HasSuffix predicate on the "gridId" field.

func GridIdIn

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

GridIdIn applies the In predicate on the "gridId" field.

func GridIdIsNil

func GridIdIsNil() predicate.Order

GridIdIsNil applies the IsNil predicate on the "gridId" field.

func GridIdLT

func GridIdLT(v string) predicate.Order

GridIdLT applies the LT predicate on the "gridId" field.

func GridIdLTE

func GridIdLTE(v string) predicate.Order

GridIdLTE applies the LTE predicate on the "gridId" field.

func GridIdNEQ

func GridIdNEQ(v string) predicate.Order

GridIdNEQ applies the NEQ predicate on the "gridId" field.

func GridIdNotIn

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

GridIdNotIn applies the NotIn predicate on the "gridId" field.

func GridIdNotNil

func GridIdNotNil() predicate.Order

GridIdNotNil applies the NotNil predicate on the "gridId" field.

func GridNumber

func GridNumber(v int) predicate.Order

GridNumber applies equality check predicate on the "gridNumber" field. It's identical to GridNumberEQ.

func GridNumberEQ

func GridNumberEQ(v int) predicate.Order

GridNumberEQ applies the EQ predicate on the "gridNumber" field.

func GridNumberGT

func GridNumberGT(v int) predicate.Order

GridNumberGT applies the GT predicate on the "gridNumber" field.

func GridNumberGTE

func GridNumberGTE(v int) predicate.Order

GridNumberGTE applies the GTE predicate on the "gridNumber" field.

func GridNumberIn

func GridNumberIn(vs ...int) predicate.Order

GridNumberIn applies the In predicate on the "gridNumber" field.

func GridNumberIsNil

func GridNumberIsNil() predicate.Order

GridNumberIsNil applies the IsNil predicate on the "gridNumber" field.

func GridNumberLT

func GridNumberLT(v int) predicate.Order

GridNumberLT applies the LT predicate on the "gridNumber" field.

func GridNumberLTE

func GridNumberLTE(v int) predicate.Order

GridNumberLTE applies the LTE predicate on the "gridNumber" field.

func GridNumberNEQ

func GridNumberNEQ(v int) predicate.Order

GridNumberNEQ applies the NEQ predicate on the "gridNumber" field.

func GridNumberNotIn

func GridNumberNotIn(vs ...int) predicate.Order

GridNumberNotIn applies the NotIn predicate on the "gridNumber" field.

func GridNumberNotNil

func GridNumberNotNil() predicate.Order

GridNumberNotNil applies the NotNil predicate on the "gridNumber" field.

func ID

func ID(id int) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InAmount

func InAmount(v decimal.Decimal) predicate.Order

InAmount applies equality check predicate on the "inAmount" field. It's identical to InAmountEQ.

func InAmountContains

func InAmountContains(v decimal.Decimal) predicate.Order

InAmountContains applies the Contains predicate on the "inAmount" field.

func InAmountContainsFold

func InAmountContainsFold(v decimal.Decimal) predicate.Order

InAmountContainsFold applies the ContainsFold predicate on the "inAmount" field.

func InAmountEQ

func InAmountEQ(v decimal.Decimal) predicate.Order

InAmountEQ applies the EQ predicate on the "inAmount" field.

func InAmountEqualFold

func InAmountEqualFold(v decimal.Decimal) predicate.Order

InAmountEqualFold applies the EqualFold predicate on the "inAmount" field.

func InAmountGT

func InAmountGT(v decimal.Decimal) predicate.Order

InAmountGT applies the GT predicate on the "inAmount" field.

func InAmountGTE

func InAmountGTE(v decimal.Decimal) predicate.Order

InAmountGTE applies the GTE predicate on the "inAmount" field.

func InAmountHasPrefix

func InAmountHasPrefix(v decimal.Decimal) predicate.Order

InAmountHasPrefix applies the HasPrefix predicate on the "inAmount" field.

func InAmountHasSuffix

func InAmountHasSuffix(v decimal.Decimal) predicate.Order

InAmountHasSuffix applies the HasSuffix predicate on the "inAmount" field.

func InAmountIn

func InAmountIn(vs ...decimal.Decimal) predicate.Order

InAmountIn applies the In predicate on the "inAmount" field.

func InAmountLT

func InAmountLT(v decimal.Decimal) predicate.Order

InAmountLT applies the LT predicate on the "inAmount" field.

func InAmountLTE

func InAmountLTE(v decimal.Decimal) predicate.Order

InAmountLTE applies the LTE predicate on the "inAmount" field.

func InAmountNEQ

func InAmountNEQ(v decimal.Decimal) predicate.Order

InAmountNEQ applies the NEQ predicate on the "inAmount" field.

func InAmountNotIn

func InAmountNotIn(vs ...decimal.Decimal) predicate.Order

InAmountNotIn applies the NotIn predicate on the "inAmount" field.

func Nonce

func Nonce(v uint64) predicate.Order

Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.

func NonceEQ

func NonceEQ(v uint64) predicate.Order

NonceEQ applies the EQ predicate on the "nonce" field.

func NonceGT

func NonceGT(v uint64) predicate.Order

NonceGT applies the GT predicate on the "nonce" field.

func NonceGTE

func NonceGTE(v uint64) predicate.Order

NonceGTE applies the GTE predicate on the "nonce" field.

func NonceIn

func NonceIn(vs ...uint64) predicate.Order

NonceIn applies the In predicate on the "nonce" field.

func NonceLT

func NonceLT(v uint64) predicate.Order

NonceLT applies the LT predicate on the "nonce" field.

func NonceLTE

func NonceLTE(v uint64) predicate.Order

NonceLTE applies the LTE predicate on the "nonce" field.

func NonceNEQ

func NonceNEQ(v uint64) predicate.Order

NonceNEQ applies the NEQ predicate on the "nonce" field.

func NonceNotIn

func NonceNotIn(vs ...uint64) predicate.Order

NonceNotIn applies the NotIn predicate on the "nonce" 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 OutAmount

func OutAmount(v decimal.Decimal) predicate.Order

OutAmount applies equality check predicate on the "outAmount" field. It's identical to OutAmountEQ.

func OutAmountContains

func OutAmountContains(v decimal.Decimal) predicate.Order

OutAmountContains applies the Contains predicate on the "outAmount" field.

func OutAmountContainsFold

func OutAmountContainsFold(v decimal.Decimal) predicate.Order

OutAmountContainsFold applies the ContainsFold predicate on the "outAmount" field.

func OutAmountEQ

func OutAmountEQ(v decimal.Decimal) predicate.Order

OutAmountEQ applies the EQ predicate on the "outAmount" field.

func OutAmountEqualFold

func OutAmountEqualFold(v decimal.Decimal) predicate.Order

OutAmountEqualFold applies the EqualFold predicate on the "outAmount" field.

func OutAmountGT

func OutAmountGT(v decimal.Decimal) predicate.Order

OutAmountGT applies the GT predicate on the "outAmount" field.

func OutAmountGTE

func OutAmountGTE(v decimal.Decimal) predicate.Order

OutAmountGTE applies the GTE predicate on the "outAmount" field.

func OutAmountHasPrefix

func OutAmountHasPrefix(v decimal.Decimal) predicate.Order

OutAmountHasPrefix applies the HasPrefix predicate on the "outAmount" field.

func OutAmountHasSuffix

func OutAmountHasSuffix(v decimal.Decimal) predicate.Order

OutAmountHasSuffix applies the HasSuffix predicate on the "outAmount" field.

func OutAmountIn

func OutAmountIn(vs ...decimal.Decimal) predicate.Order

OutAmountIn applies the In predicate on the "outAmount" field.

func OutAmountLT

func OutAmountLT(v decimal.Decimal) predicate.Order

OutAmountLT applies the LT predicate on the "outAmount" field.

func OutAmountLTE

func OutAmountLTE(v decimal.Decimal) predicate.Order

OutAmountLTE applies the LTE predicate on the "outAmount" field.

func OutAmountNEQ

func OutAmountNEQ(v decimal.Decimal) predicate.Order

OutAmountNEQ applies the NEQ predicate on the "outAmount" field.

func OutAmountNotIn

func OutAmountNotIn(vs ...decimal.Decimal) predicate.Order

OutAmountNotIn applies the NotIn predicate on the "outAmount" field.

func Price

func Price(v decimal.Decimal) predicate.Order

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

func PriceContains

func PriceContains(v decimal.Decimal) predicate.Order

PriceContains applies the Contains predicate on the "price" field.

func PriceContainsFold

func PriceContainsFold(v decimal.Decimal) predicate.Order

PriceContainsFold applies the ContainsFold predicate on the "price" field.

func PriceEQ

func PriceEQ(v decimal.Decimal) predicate.Order

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

func PriceEqualFold

func PriceEqualFold(v decimal.Decimal) predicate.Order

PriceEqualFold applies the EqualFold predicate on the "price" field.

func PriceGT

func PriceGT(v decimal.Decimal) predicate.Order

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

func PriceGTE

func PriceGTE(v decimal.Decimal) predicate.Order

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

func PriceHasPrefix

func PriceHasPrefix(v decimal.Decimal) predicate.Order

PriceHasPrefix applies the HasPrefix predicate on the "price" field.

func PriceHasSuffix

func PriceHasSuffix(v decimal.Decimal) predicate.Order

PriceHasSuffix applies the HasSuffix predicate on the "price" field.

func PriceIn

func PriceIn(vs ...decimal.Decimal) predicate.Order

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

func PriceLT

func PriceLT(v decimal.Decimal) predicate.Order

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

func PriceLTE

func PriceLTE(v decimal.Decimal) predicate.Order

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

func PriceNEQ

func PriceNEQ(v decimal.Decimal) predicate.Order

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

func PriceNotIn

func PriceNotIn(vs ...decimal.Decimal) predicate.Order

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

func Profit

func Profit(v decimal.Decimal) predicate.Order

Profit applies equality check predicate on the "profit" field. It's identical to ProfitEQ.

func ProfitContains

func ProfitContains(v decimal.Decimal) predicate.Order

ProfitContains applies the Contains predicate on the "profit" field.

func ProfitContainsFold

func ProfitContainsFold(v decimal.Decimal) predicate.Order

ProfitContainsFold applies the ContainsFold predicate on the "profit" field.

func ProfitEQ

func ProfitEQ(v decimal.Decimal) predicate.Order

ProfitEQ applies the EQ predicate on the "profit" field.

func ProfitEqualFold

func ProfitEqualFold(v decimal.Decimal) predicate.Order

ProfitEqualFold applies the EqualFold predicate on the "profit" field.

func ProfitGT

func ProfitGT(v decimal.Decimal) predicate.Order

ProfitGT applies the GT predicate on the "profit" field.

func ProfitGTE

func ProfitGTE(v decimal.Decimal) predicate.Order

ProfitGTE applies the GTE predicate on the "profit" field.

func ProfitHasPrefix

func ProfitHasPrefix(v decimal.Decimal) predicate.Order

ProfitHasPrefix applies the HasPrefix predicate on the "profit" field.

func ProfitHasSuffix

func ProfitHasSuffix(v decimal.Decimal) predicate.Order

ProfitHasSuffix applies the HasSuffix predicate on the "profit" field.

func ProfitIn

func ProfitIn(vs ...decimal.Decimal) predicate.Order

ProfitIn applies the In predicate on the "profit" field.

func ProfitIsNil

func ProfitIsNil() predicate.Order

ProfitIsNil applies the IsNil predicate on the "profit" field.

func ProfitLT

func ProfitLT(v decimal.Decimal) predicate.Order

ProfitLT applies the LT predicate on the "profit" field.

func ProfitLTE

func ProfitLTE(v decimal.Decimal) predicate.Order

ProfitLTE applies the LTE predicate on the "profit" field.

func ProfitNEQ

func ProfitNEQ(v decimal.Decimal) predicate.Order

ProfitNEQ applies the NEQ predicate on the "profit" field.

func ProfitNotIn

func ProfitNotIn(vs ...decimal.Decimal) predicate.Order

ProfitNotIn applies the NotIn predicate on the "profit" field.

func ProfitNotNil

func ProfitNotNil() predicate.Order

ProfitNotNil applies the NotNil predicate on the "profit" field.

func Reason

func Reason(v string) predicate.Order

Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.

func ReasonContains

func ReasonContains(v string) predicate.Order

ReasonContains applies the Contains predicate on the "reason" field.

func ReasonContainsFold

func ReasonContainsFold(v string) predicate.Order

ReasonContainsFold applies the ContainsFold predicate on the "reason" field.

func ReasonEQ

func ReasonEQ(v string) predicate.Order

ReasonEQ applies the EQ predicate on the "reason" field.

func ReasonEqualFold

func ReasonEqualFold(v string) predicate.Order

ReasonEqualFold applies the EqualFold predicate on the "reason" field.

func ReasonGT

func ReasonGT(v string) predicate.Order

ReasonGT applies the GT predicate on the "reason" field.

func ReasonGTE

func ReasonGTE(v string) predicate.Order

ReasonGTE applies the GTE predicate on the "reason" field.

func ReasonHasPrefix

func ReasonHasPrefix(v string) predicate.Order

ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.

func ReasonHasSuffix

func ReasonHasSuffix(v string) predicate.Order

ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.

func ReasonIn

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

ReasonIn applies the In predicate on the "reason" field.

func ReasonLT

func ReasonLT(v string) predicate.Order

ReasonLT applies the LT predicate on the "reason" field.

func ReasonLTE

func ReasonLTE(v string) predicate.Order

ReasonLTE applies the LTE predicate on the "reason" field.

func ReasonNEQ

func ReasonNEQ(v string) predicate.Order

ReasonNEQ applies the NEQ predicate on the "reason" field.

func ReasonNotIn

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

ReasonNotIn applies the NotIn predicate on the "reason" field.

func StatusEQ

func StatusEQ(v Status) predicate.Order

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Order

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Order

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Order

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func StrategyId

func StrategyId(v string) predicate.Order

StrategyId applies equality check predicate on the "strategyId" field. It's identical to StrategyIdEQ.

func StrategyIdContains

func StrategyIdContains(v string) predicate.Order

StrategyIdContains applies the Contains predicate on the "strategyId" field.

func StrategyIdContainsFold

func StrategyIdContainsFold(v string) predicate.Order

StrategyIdContainsFold applies the ContainsFold predicate on the "strategyId" field.

func StrategyIdEQ

func StrategyIdEQ(v string) predicate.Order

StrategyIdEQ applies the EQ predicate on the "strategyId" field.

func StrategyIdEqualFold

func StrategyIdEqualFold(v string) predicate.Order

StrategyIdEqualFold applies the EqualFold predicate on the "strategyId" field.

func StrategyIdGT

func StrategyIdGT(v string) predicate.Order

StrategyIdGT applies the GT predicate on the "strategyId" field.

func StrategyIdGTE

func StrategyIdGTE(v string) predicate.Order

StrategyIdGTE applies the GTE predicate on the "strategyId" field.

func StrategyIdHasPrefix

func StrategyIdHasPrefix(v string) predicate.Order

StrategyIdHasPrefix applies the HasPrefix predicate on the "strategyId" field.

func StrategyIdHasSuffix

func StrategyIdHasSuffix(v string) predicate.Order

StrategyIdHasSuffix applies the HasSuffix predicate on the "strategyId" field.

func StrategyIdIn

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

StrategyIdIn applies the In predicate on the "strategyId" field.

func StrategyIdLT

func StrategyIdLT(v string) predicate.Order

StrategyIdLT applies the LT predicate on the "strategyId" field.

func StrategyIdLTE

func StrategyIdLTE(v string) predicate.Order

StrategyIdLTE applies the LTE predicate on the "strategyId" field.

func StrategyIdNEQ

func StrategyIdNEQ(v string) predicate.Order

StrategyIdNEQ applies the NEQ predicate on the "strategyId" field.

func StrategyIdNotIn

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

StrategyIdNotIn applies the NotIn predicate on the "strategyId" field.

func Symbol

func Symbol(v string) predicate.Order

Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.

func SymbolContains

func SymbolContains(v string) predicate.Order

SymbolContains applies the Contains predicate on the "symbol" field.

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.Order

SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.

func SymbolEQ

func SymbolEQ(v string) predicate.Order

SymbolEQ applies the EQ predicate on the "symbol" field.

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.Order

SymbolEqualFold applies the EqualFold predicate on the "symbol" field.

func SymbolGT

func SymbolGT(v string) predicate.Order

SymbolGT applies the GT predicate on the "symbol" field.

func SymbolGTE

func SymbolGTE(v string) predicate.Order

SymbolGTE applies the GTE predicate on the "symbol" field.

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.Order

SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.Order

SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.

func SymbolIn

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

SymbolIn applies the In predicate on the "symbol" field.

func SymbolLT

func SymbolLT(v string) predicate.Order

SymbolLT applies the LT predicate on the "symbol" field.

func SymbolLTE

func SymbolLTE(v string) predicate.Order

SymbolLTE applies the LTE predicate on the "symbol" field.

func SymbolNEQ

func SymbolNEQ(v string) predicate.Order

SymbolNEQ applies the NEQ predicate on the "symbol" field.

func SymbolNotIn

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

SymbolNotIn applies the NotIn predicate on the "symbol" field.

func Token

func Token(v string) predicate.Order

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.Order

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.Order

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.Order

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.Order

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.Order

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.Order

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Order

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Order

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

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

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.Order

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.Order

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.Order

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

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

TokenNotIn applies the NotIn predicate on the "token" field.

func TxHash

func TxHash(v string) predicate.Order

TxHash applies equality check predicate on the "txHash" field. It's identical to TxHashEQ.

func TxHashContains

func TxHashContains(v string) predicate.Order

TxHashContains applies the Contains predicate on the "txHash" field.

func TxHashContainsFold

func TxHashContainsFold(v string) predicate.Order

TxHashContainsFold applies the ContainsFold predicate on the "txHash" field.

func TxHashEQ

func TxHashEQ(v string) predicate.Order

TxHashEQ applies the EQ predicate on the "txHash" field.

func TxHashEqualFold

func TxHashEqualFold(v string) predicate.Order

TxHashEqualFold applies the EqualFold predicate on the "txHash" field.

func TxHashGT

func TxHashGT(v string) predicate.Order

TxHashGT applies the GT predicate on the "txHash" field.

func TxHashGTE

func TxHashGTE(v string) predicate.Order

TxHashGTE applies the GTE predicate on the "txHash" field.

func TxHashHasPrefix

func TxHashHasPrefix(v string) predicate.Order

TxHashHasPrefix applies the HasPrefix predicate on the "txHash" field.

func TxHashHasSuffix

func TxHashHasSuffix(v string) predicate.Order

TxHashHasSuffix applies the HasSuffix predicate on the "txHash" field.

func TxHashIn

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

TxHashIn applies the In predicate on the "txHash" field.

func TxHashLT

func TxHashLT(v string) predicate.Order

TxHashLT applies the LT predicate on the "txHash" field.

func TxHashLTE

func TxHashLTE(v string) predicate.Order

TxHashLTE applies the LTE predicate on the "txHash" field.

func TxHashNEQ

func TxHashNEQ(v string) predicate.Order

TxHashNEQ applies the NEQ predicate on the "txHash" field.

func TxHashNotIn

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

TxHashNotIn applies the NotIn predicate on the "txHash" field.

func TypeEQ

func TypeEQ(v Type) predicate.Order

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Order

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Order

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Order

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdateTime

func UpdateTime(v time.Time) predicate.Order

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Order

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Order

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Order

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

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

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Order

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Order

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Order

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

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

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 ByAccount

func ByAccount(opts ...sql.OrderTermOption) OrderOption

ByAccount orders the results by the account field.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByFinalPrice

func ByFinalPrice(opts ...sql.OrderTermOption) OrderOption

ByFinalPrice orders the results by the finalPrice field.

func ByGridBuyCost

func ByGridBuyCost(opts ...sql.OrderTermOption) OrderOption

ByGridBuyCost orders the results by the gridBuyCost field.

func ByGridId

func ByGridId(opts ...sql.OrderTermOption) OrderOption

ByGridId orders the results by the gridId field.

func ByGridNumber

func ByGridNumber(opts ...sql.OrderTermOption) OrderOption

ByGridNumber orders the results by the gridNumber field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInAmount

func ByInAmount(opts ...sql.OrderTermOption) OrderOption

ByInAmount orders the results by the inAmount field.

func ByNonce

func ByNonce(opts ...sql.OrderTermOption) OrderOption

ByNonce orders the results by the nonce field.

func ByOutAmount

func ByOutAmount(opts ...sql.OrderTermOption) OrderOption

ByOutAmount orders the results by the outAmount field.

func ByPrice

func ByPrice(opts ...sql.OrderTermOption) OrderOption

ByPrice orders the results by the price field.

func ByProfit

func ByProfit(opts ...sql.OrderTermOption) OrderOption

ByProfit orders the results by the profit field.

func ByReason

func ByReason(opts ...sql.OrderTermOption) OrderOption

ByReason orders the results by the reason field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByStrategyId

func ByStrategyId(opts ...sql.OrderTermOption) OrderOption

ByStrategyId orders the results by the strategyId field.

func BySymbol

func BySymbol(opts ...sql.OrderTermOption) OrderOption

BySymbol orders the results by the symbol field.

func ByToken

func ByToken(opts ...sql.OrderTermOption) OrderOption

ByToken orders the results by the token field.

func ByTxHash

func ByTxHash(opts ...sql.OrderTermOption) OrderOption

ByTxHash orders the results by the txHash field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending  Status = "pending"
	StatusClosed   Status = "closed"
	StatusRejected Status = "rejected"
)

Status values.

func (Status) String

func (s Status) String() string

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeBuy  Type = "buy"
	TypeSell Type = "sell"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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