Documentation
¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.Order
- func AccountContains(v string) predicate.Order
- func AccountContainsFold(v string) predicate.Order
- func AccountEQ(v string) predicate.Order
- func AccountEqualFold(v string) predicate.Order
- func AccountGT(v string) predicate.Order
- func AccountGTE(v string) predicate.Order
- func AccountHasPrefix(v string) predicate.Order
- func AccountHasSuffix(v string) predicate.Order
- func AccountIn(vs ...string) predicate.Order
- func AccountLT(v string) predicate.Order
- func AccountLTE(v string) predicate.Order
- func AccountNEQ(v string) predicate.Order
- func AccountNotIn(vs ...string) predicate.Order
- func And(predicates ...predicate.Order) predicate.Order
- func CreateTime(v time.Time) predicate.Order
- func CreateTimeEQ(v time.Time) predicate.Order
- func CreateTimeGT(v time.Time) predicate.Order
- func CreateTimeGTE(v time.Time) predicate.Order
- func CreateTimeIn(vs ...time.Time) predicate.Order
- func CreateTimeLT(v time.Time) predicate.Order
- func CreateTimeLTE(v time.Time) predicate.Order
- func CreateTimeNEQ(v time.Time) predicate.Order
- func CreateTimeNotIn(vs ...time.Time) predicate.Order
- func FinalPrice(v decimal.Decimal) predicate.Order
- func FinalPriceContains(v decimal.Decimal) predicate.Order
- func FinalPriceContainsFold(v decimal.Decimal) predicate.Order
- func FinalPriceEQ(v decimal.Decimal) predicate.Order
- func FinalPriceEqualFold(v decimal.Decimal) predicate.Order
- func FinalPriceGT(v decimal.Decimal) predicate.Order
- func FinalPriceGTE(v decimal.Decimal) predicate.Order
- func FinalPriceHasPrefix(v decimal.Decimal) predicate.Order
- func FinalPriceHasSuffix(v decimal.Decimal) predicate.Order
- func FinalPriceIn(vs ...decimal.Decimal) predicate.Order
- func FinalPriceLT(v decimal.Decimal) predicate.Order
- func FinalPriceLTE(v decimal.Decimal) predicate.Order
- func FinalPriceNEQ(v decimal.Decimal) predicate.Order
- func FinalPriceNotIn(vs ...decimal.Decimal) predicate.Order
- func GridBuyCost(v decimal.Decimal) predicate.Order
- func GridBuyCostContains(v decimal.Decimal) predicate.Order
- func GridBuyCostContainsFold(v decimal.Decimal) predicate.Order
- func GridBuyCostEQ(v decimal.Decimal) predicate.Order
- func GridBuyCostEqualFold(v decimal.Decimal) predicate.Order
- func GridBuyCostGT(v decimal.Decimal) predicate.Order
- func GridBuyCostGTE(v decimal.Decimal) predicate.Order
- func GridBuyCostHasPrefix(v decimal.Decimal) predicate.Order
- func GridBuyCostHasSuffix(v decimal.Decimal) predicate.Order
- func GridBuyCostIn(vs ...decimal.Decimal) predicate.Order
- func GridBuyCostIsNil() predicate.Order
- func GridBuyCostLT(v decimal.Decimal) predicate.Order
- func GridBuyCostLTE(v decimal.Decimal) predicate.Order
- func GridBuyCostNEQ(v decimal.Decimal) predicate.Order
- func GridBuyCostNotIn(vs ...decimal.Decimal) predicate.Order
- func GridBuyCostNotNil() predicate.Order
- func GridId(v string) predicate.Order
- func GridIdContains(v string) predicate.Order
- func GridIdContainsFold(v string) predicate.Order
- func GridIdEQ(v string) predicate.Order
- func GridIdEqualFold(v string) predicate.Order
- func GridIdGT(v string) predicate.Order
- func GridIdGTE(v string) predicate.Order
- func GridIdHasPrefix(v string) predicate.Order
- func GridIdHasSuffix(v string) predicate.Order
- func GridIdIn(vs ...string) predicate.Order
- func GridIdIsNil() predicate.Order
- func GridIdLT(v string) predicate.Order
- func GridIdLTE(v string) predicate.Order
- func GridIdNEQ(v string) predicate.Order
- func GridIdNotIn(vs ...string) predicate.Order
- func GridIdNotNil() predicate.Order
- func GridNumber(v int) predicate.Order
- func GridNumberEQ(v int) predicate.Order
- func GridNumberGT(v int) predicate.Order
- func GridNumberGTE(v int) predicate.Order
- func GridNumberIn(vs ...int) predicate.Order
- func GridNumberIsNil() predicate.Order
- func GridNumberLT(v int) predicate.Order
- func GridNumberLTE(v int) predicate.Order
- func GridNumberNEQ(v int) predicate.Order
- func GridNumberNotIn(vs ...int) predicate.Order
- func GridNumberNotNil() predicate.Order
- func ID(id int) predicate.Order
- func IDEQ(id int) predicate.Order
- func IDGT(id int) predicate.Order
- func IDGTE(id int) predicate.Order
- func IDIn(ids ...int) predicate.Order
- func IDLT(id int) predicate.Order
- func IDLTE(id int) predicate.Order
- func IDNEQ(id int) predicate.Order
- func IDNotIn(ids ...int) predicate.Order
- func InAmount(v decimal.Decimal) predicate.Order
- func InAmountContains(v decimal.Decimal) predicate.Order
- func InAmountContainsFold(v decimal.Decimal) predicate.Order
- func InAmountEQ(v decimal.Decimal) predicate.Order
- func InAmountEqualFold(v decimal.Decimal) predicate.Order
- func InAmountGT(v decimal.Decimal) predicate.Order
- func InAmountGTE(v decimal.Decimal) predicate.Order
- func InAmountHasPrefix(v decimal.Decimal) predicate.Order
- func InAmountHasSuffix(v decimal.Decimal) predicate.Order
- func InAmountIn(vs ...decimal.Decimal) predicate.Order
- func InAmountLT(v decimal.Decimal) predicate.Order
- func InAmountLTE(v decimal.Decimal) predicate.Order
- func InAmountNEQ(v decimal.Decimal) predicate.Order
- func InAmountNotIn(vs ...decimal.Decimal) predicate.Order
- func Nonce(v uint64) predicate.Order
- func NonceEQ(v uint64) predicate.Order
- func NonceGT(v uint64) predicate.Order
- func NonceGTE(v uint64) predicate.Order
- func NonceIn(vs ...uint64) predicate.Order
- func NonceLT(v uint64) predicate.Order
- func NonceLTE(v uint64) predicate.Order
- func NonceNEQ(v uint64) predicate.Order
- func NonceNotIn(vs ...uint64) predicate.Order
- func Not(p predicate.Order) predicate.Order
- func Or(predicates ...predicate.Order) predicate.Order
- func OutAmount(v decimal.Decimal) predicate.Order
- func OutAmountContains(v decimal.Decimal) predicate.Order
- func OutAmountContainsFold(v decimal.Decimal) predicate.Order
- func OutAmountEQ(v decimal.Decimal) predicate.Order
- func OutAmountEqualFold(v decimal.Decimal) predicate.Order
- func OutAmountGT(v decimal.Decimal) predicate.Order
- func OutAmountGTE(v decimal.Decimal) predicate.Order
- func OutAmountHasPrefix(v decimal.Decimal) predicate.Order
- func OutAmountHasSuffix(v decimal.Decimal) predicate.Order
- func OutAmountIn(vs ...decimal.Decimal) predicate.Order
- func OutAmountLT(v decimal.Decimal) predicate.Order
- func OutAmountLTE(v decimal.Decimal) predicate.Order
- func OutAmountNEQ(v decimal.Decimal) predicate.Order
- func OutAmountNotIn(vs ...decimal.Decimal) predicate.Order
- func Price(v decimal.Decimal) predicate.Order
- func PriceContains(v decimal.Decimal) predicate.Order
- func PriceContainsFold(v decimal.Decimal) predicate.Order
- func PriceEQ(v decimal.Decimal) predicate.Order
- func PriceEqualFold(v decimal.Decimal) predicate.Order
- func PriceGT(v decimal.Decimal) predicate.Order
- func PriceGTE(v decimal.Decimal) predicate.Order
- func PriceHasPrefix(v decimal.Decimal) predicate.Order
- func PriceHasSuffix(v decimal.Decimal) predicate.Order
- func PriceIn(vs ...decimal.Decimal) predicate.Order
- func PriceLT(v decimal.Decimal) predicate.Order
- func PriceLTE(v decimal.Decimal) predicate.Order
- func PriceNEQ(v decimal.Decimal) predicate.Order
- func PriceNotIn(vs ...decimal.Decimal) predicate.Order
- func Profit(v decimal.Decimal) predicate.Order
- func ProfitContains(v decimal.Decimal) predicate.Order
- func ProfitContainsFold(v decimal.Decimal) predicate.Order
- func ProfitEQ(v decimal.Decimal) predicate.Order
- func ProfitEqualFold(v decimal.Decimal) predicate.Order
- func ProfitGT(v decimal.Decimal) predicate.Order
- func ProfitGTE(v decimal.Decimal) predicate.Order
- func ProfitHasPrefix(v decimal.Decimal) predicate.Order
- func ProfitHasSuffix(v decimal.Decimal) predicate.Order
- func ProfitIn(vs ...decimal.Decimal) predicate.Order
- func ProfitIsNil() predicate.Order
- func ProfitLT(v decimal.Decimal) predicate.Order
- func ProfitLTE(v decimal.Decimal) predicate.Order
- func ProfitNEQ(v decimal.Decimal) predicate.Order
- func ProfitNotIn(vs ...decimal.Decimal) predicate.Order
- func ProfitNotNil() predicate.Order
- func Reason(v string) predicate.Order
- func ReasonContains(v string) predicate.Order
- func ReasonContainsFold(v string) predicate.Order
- func ReasonEQ(v string) predicate.Order
- func ReasonEqualFold(v string) predicate.Order
- func ReasonGT(v string) predicate.Order
- func ReasonGTE(v string) predicate.Order
- func ReasonHasPrefix(v string) predicate.Order
- func ReasonHasSuffix(v string) predicate.Order
- func ReasonIn(vs ...string) predicate.Order
- func ReasonLT(v string) predicate.Order
- func ReasonLTE(v string) predicate.Order
- func ReasonNEQ(v string) predicate.Order
- func ReasonNotIn(vs ...string) predicate.Order
- func StatusEQ(v Status) predicate.Order
- func StatusIn(vs ...Status) predicate.Order
- func StatusNEQ(v Status) predicate.Order
- func StatusNotIn(vs ...Status) predicate.Order
- func StatusValidator(s Status) error
- func StrategyId(v string) predicate.Order
- func StrategyIdContains(v string) predicate.Order
- func StrategyIdContainsFold(v string) predicate.Order
- func StrategyIdEQ(v string) predicate.Order
- func StrategyIdEqualFold(v string) predicate.Order
- func StrategyIdGT(v string) predicate.Order
- func StrategyIdGTE(v string) predicate.Order
- func StrategyIdHasPrefix(v string) predicate.Order
- func StrategyIdHasSuffix(v string) predicate.Order
- func StrategyIdIn(vs ...string) predicate.Order
- func StrategyIdLT(v string) predicate.Order
- func StrategyIdLTE(v string) predicate.Order
- func StrategyIdNEQ(v string) predicate.Order
- func StrategyIdNotIn(vs ...string) predicate.Order
- func Symbol(v string) predicate.Order
- func SymbolContains(v string) predicate.Order
- func SymbolContainsFold(v string) predicate.Order
- func SymbolEQ(v string) predicate.Order
- func SymbolEqualFold(v string) predicate.Order
- func SymbolGT(v string) predicate.Order
- func SymbolGTE(v string) predicate.Order
- func SymbolHasPrefix(v string) predicate.Order
- func SymbolHasSuffix(v string) predicate.Order
- func SymbolIn(vs ...string) predicate.Order
- func SymbolLT(v string) predicate.Order
- func SymbolLTE(v string) predicate.Order
- func SymbolNEQ(v string) predicate.Order
- func SymbolNotIn(vs ...string) predicate.Order
- func Token(v string) predicate.Order
- func TokenContains(v string) predicate.Order
- func TokenContainsFold(v string) predicate.Order
- func TokenEQ(v string) predicate.Order
- func TokenEqualFold(v string) predicate.Order
- func TokenGT(v string) predicate.Order
- func TokenGTE(v string) predicate.Order
- func TokenHasPrefix(v string) predicate.Order
- func TokenHasSuffix(v string) predicate.Order
- func TokenIn(vs ...string) predicate.Order
- func TokenLT(v string) predicate.Order
- func TokenLTE(v string) predicate.Order
- func TokenNEQ(v string) predicate.Order
- func TokenNotIn(vs ...string) predicate.Order
- func TxHash(v string) predicate.Order
- func TxHashContains(v string) predicate.Order
- func TxHashContainsFold(v string) predicate.Order
- func TxHashEQ(v string) predicate.Order
- func TxHashEqualFold(v string) predicate.Order
- func TxHashGT(v string) predicate.Order
- func TxHashGTE(v string) predicate.Order
- func TxHashHasPrefix(v string) predicate.Order
- func TxHashHasSuffix(v string) predicate.Order
- func TxHashIn(vs ...string) predicate.Order
- func TxHashLT(v string) predicate.Order
- func TxHashLTE(v string) predicate.Order
- func TxHashNEQ(v string) predicate.Order
- func TxHashNotIn(vs ...string) predicate.Order
- func TypeEQ(v Type) predicate.Order
- func TypeIn(vs ...Type) predicate.Order
- func TypeNEQ(v Type) predicate.Order
- func TypeNotIn(vs ...Type) predicate.Order
- func TypeValidator(_type Type) error
- func UpdateTime(v time.Time) predicate.Order
- func UpdateTimeEQ(v time.Time) predicate.Order
- func UpdateTimeGT(v time.Time) predicate.Order
- func UpdateTimeGTE(v time.Time) predicate.Order
- func UpdateTimeIn(vs ...time.Time) predicate.Order
- func UpdateTimeLT(v time.Time) predicate.Order
- func UpdateTimeLTE(v time.Time) predicate.Order
- func UpdateTimeNEQ(v time.Time) predicate.Order
- func UpdateTimeNotIn(vs ...time.Time) predicate.Order
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByFinalPrice(opts ...sql.OrderTermOption) OrderOption
- func ByGridBuyCost(opts ...sql.OrderTermOption) OrderOption
- func ByGridId(opts ...sql.OrderTermOption) OrderOption
- func ByGridNumber(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInAmount(opts ...sql.OrderTermOption) OrderOption
- func ByNonce(opts ...sql.OrderTermOption) OrderOption
- func ByOutAmount(opts ...sql.OrderTermOption) OrderOption
- func ByPrice(opts ...sql.OrderTermOption) OrderOption
- func ByProfit(opts ...sql.OrderTermOption) OrderOption
- func ByReason(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStrategyId(opts ...sql.OrderTermOption) OrderOption
- func BySymbol(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByTxHash(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type Status
- type Type
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 = "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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldAccount, FieldToken, FieldSymbol, FieldGridId, FieldGridNumber, FieldGridBuyCost, FieldStrategyId, FieldType, FieldPrice, FieldFinalPrice, FieldInAmount, FieldOutAmount, FieldStatus, FieldNonce, FieldTxHash, FieldReason, FieldProfit, }
Columns holds all SQL columns for order fields.
Functions ¶
func Account ¶
Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
func AccountContains ¶
AccountContains applies the Contains predicate on the "account" field.
func AccountContainsFold ¶
AccountContainsFold applies the ContainsFold predicate on the "account" field.
func AccountEqualFold ¶
AccountEqualFold applies the EqualFold predicate on the "account" field.
func AccountGTE ¶
AccountGTE applies the GTE predicate on the "account" field.
func AccountHasPrefix ¶
AccountHasPrefix applies the HasPrefix predicate on the "account" field.
func AccountHasSuffix ¶
AccountHasSuffix applies the HasSuffix predicate on the "account" field.
func AccountLTE ¶
AccountLTE applies the LTE predicate on the "account" field.
func AccountNEQ ¶
AccountNEQ applies the NEQ predicate on the "account" field.
func AccountNotIn ¶
AccountNotIn applies the NotIn predicate on the "account" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func FinalPrice ¶
FinalPrice applies equality check predicate on the "finalPrice" field. It's identical to FinalPriceEQ.
func FinalPriceContains ¶
FinalPriceContains applies the Contains predicate on the "finalPrice" field.
func FinalPriceContainsFold ¶
FinalPriceContainsFold applies the ContainsFold predicate on the "finalPrice" field.
func FinalPriceEQ ¶
FinalPriceEQ applies the EQ predicate on the "finalPrice" field.
func FinalPriceEqualFold ¶
FinalPriceEqualFold applies the EqualFold predicate on the "finalPrice" field.
func FinalPriceGT ¶
FinalPriceGT applies the GT predicate on the "finalPrice" field.
func FinalPriceGTE ¶
FinalPriceGTE applies the GTE predicate on the "finalPrice" field.
func FinalPriceHasPrefix ¶
FinalPriceHasPrefix applies the HasPrefix predicate on the "finalPrice" field.
func FinalPriceHasSuffix ¶
FinalPriceHasSuffix applies the HasSuffix predicate on the "finalPrice" field.
func FinalPriceIn ¶
FinalPriceIn applies the In predicate on the "finalPrice" field.
func FinalPriceLT ¶
FinalPriceLT applies the LT predicate on the "finalPrice" field.
func FinalPriceLTE ¶
FinalPriceLTE applies the LTE predicate on the "finalPrice" field.
func FinalPriceNEQ ¶
FinalPriceNEQ applies the NEQ predicate on the "finalPrice" field.
func FinalPriceNotIn ¶
FinalPriceNotIn applies the NotIn predicate on the "finalPrice" field.
func GridBuyCost ¶
GridBuyCost applies equality check predicate on the "gridBuyCost" field. It's identical to GridBuyCostEQ.
func GridBuyCostContains ¶
GridBuyCostContains applies the Contains predicate on the "gridBuyCost" field.
func GridBuyCostContainsFold ¶
GridBuyCostContainsFold applies the ContainsFold predicate on the "gridBuyCost" field.
func GridBuyCostEQ ¶
GridBuyCostEQ applies the EQ predicate on the "gridBuyCost" field.
func GridBuyCostEqualFold ¶
GridBuyCostEqualFold applies the EqualFold predicate on the "gridBuyCost" field.
func GridBuyCostGT ¶
GridBuyCostGT applies the GT predicate on the "gridBuyCost" field.
func GridBuyCostGTE ¶
GridBuyCostGTE applies the GTE predicate on the "gridBuyCost" field.
func GridBuyCostHasPrefix ¶
GridBuyCostHasPrefix applies the HasPrefix predicate on the "gridBuyCost" field.
func GridBuyCostHasSuffix ¶
GridBuyCostHasSuffix applies the HasSuffix predicate on the "gridBuyCost" field.
func GridBuyCostIn ¶
GridBuyCostIn applies the In predicate on the "gridBuyCost" field.
func GridBuyCostIsNil ¶
GridBuyCostIsNil applies the IsNil predicate on the "gridBuyCost" field.
func GridBuyCostLT ¶
GridBuyCostLT applies the LT predicate on the "gridBuyCost" field.
func GridBuyCostLTE ¶
GridBuyCostLTE applies the LTE predicate on the "gridBuyCost" field.
func GridBuyCostNEQ ¶
GridBuyCostNEQ applies the NEQ predicate on the "gridBuyCost" field.
func GridBuyCostNotIn ¶
GridBuyCostNotIn applies the NotIn predicate on the "gridBuyCost" field.
func GridBuyCostNotNil ¶
GridBuyCostNotNil applies the NotNil predicate on the "gridBuyCost" field.
func GridId ¶
GridId applies equality check predicate on the "gridId" field. It's identical to GridIdEQ.
func GridIdContains ¶
GridIdContains applies the Contains predicate on the "gridId" field.
func GridIdContainsFold ¶
GridIdContainsFold applies the ContainsFold predicate on the "gridId" field.
func GridIdEqualFold ¶
GridIdEqualFold applies the EqualFold predicate on the "gridId" field.
func GridIdHasPrefix ¶
GridIdHasPrefix applies the HasPrefix predicate on the "gridId" field.
func GridIdHasSuffix ¶
GridIdHasSuffix applies the HasSuffix predicate on the "gridId" field.
func GridIdIsNil ¶
GridIdIsNil applies the IsNil predicate on the "gridId" field.
func GridIdNotIn ¶
GridIdNotIn applies the NotIn predicate on the "gridId" field.
func GridIdNotNil ¶
GridIdNotNil applies the NotNil predicate on the "gridId" field.
func GridNumber ¶
GridNumber applies equality check predicate on the "gridNumber" field. It's identical to GridNumberEQ.
func GridNumberEQ ¶
GridNumberEQ applies the EQ predicate on the "gridNumber" field.
func GridNumberGT ¶
GridNumberGT applies the GT predicate on the "gridNumber" field.
func GridNumberGTE ¶
GridNumberGTE applies the GTE predicate on the "gridNumber" field.
func GridNumberIn ¶
GridNumberIn applies the In predicate on the "gridNumber" field.
func GridNumberIsNil ¶
GridNumberIsNil applies the IsNil predicate on the "gridNumber" field.
func GridNumberLT ¶
GridNumberLT applies the LT predicate on the "gridNumber" field.
func GridNumberLTE ¶
GridNumberLTE applies the LTE predicate on the "gridNumber" field.
func GridNumberNEQ ¶
GridNumberNEQ applies the NEQ predicate on the "gridNumber" field.
func GridNumberNotIn ¶
GridNumberNotIn applies the NotIn predicate on the "gridNumber" field.
func GridNumberNotNil ¶
GridNumberNotNil applies the NotNil predicate on the "gridNumber" field.
func InAmount ¶
InAmount applies equality check predicate on the "inAmount" field. It's identical to InAmountEQ.
func InAmountContains ¶
InAmountContains applies the Contains predicate on the "inAmount" field.
func InAmountContainsFold ¶
InAmountContainsFold applies the ContainsFold predicate on the "inAmount" field.
func InAmountEQ ¶
InAmountEQ applies the EQ predicate on the "inAmount" field.
func InAmountEqualFold ¶
InAmountEqualFold applies the EqualFold predicate on the "inAmount" field.
func InAmountGT ¶
InAmountGT applies the GT predicate on the "inAmount" field.
func InAmountGTE ¶
InAmountGTE applies the GTE predicate on the "inAmount" field.
func InAmountHasPrefix ¶
InAmountHasPrefix applies the HasPrefix predicate on the "inAmount" field.
func InAmountHasSuffix ¶
InAmountHasSuffix applies the HasSuffix predicate on the "inAmount" field.
func InAmountIn ¶
InAmountIn applies the In predicate on the "inAmount" field.
func InAmountLT ¶
InAmountLT applies the LT predicate on the "inAmount" field.
func InAmountLTE ¶
InAmountLTE applies the LTE predicate on the "inAmount" field.
func InAmountNEQ ¶
InAmountNEQ applies the NEQ predicate on the "inAmount" field.
func InAmountNotIn ¶
InAmountNotIn applies the NotIn predicate on the "inAmount" field.
func Nonce ¶
Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.
func NonceNotIn ¶
NonceNotIn applies the NotIn predicate on the "nonce" field.
func OutAmount ¶
OutAmount applies equality check predicate on the "outAmount" field. It's identical to OutAmountEQ.
func OutAmountContains ¶
OutAmountContains applies the Contains predicate on the "outAmount" field.
func OutAmountContainsFold ¶
OutAmountContainsFold applies the ContainsFold predicate on the "outAmount" field.
func OutAmountEQ ¶
OutAmountEQ applies the EQ predicate on the "outAmount" field.
func OutAmountEqualFold ¶
OutAmountEqualFold applies the EqualFold predicate on the "outAmount" field.
func OutAmountGT ¶
OutAmountGT applies the GT predicate on the "outAmount" field.
func OutAmountGTE ¶
OutAmountGTE applies the GTE predicate on the "outAmount" field.
func OutAmountHasPrefix ¶
OutAmountHasPrefix applies the HasPrefix predicate on the "outAmount" field.
func OutAmountHasSuffix ¶
OutAmountHasSuffix applies the HasSuffix predicate on the "outAmount" field.
func OutAmountIn ¶
OutAmountIn applies the In predicate on the "outAmount" field.
func OutAmountLT ¶
OutAmountLT applies the LT predicate on the "outAmount" field.
func OutAmountLTE ¶
OutAmountLTE applies the LTE predicate on the "outAmount" field.
func OutAmountNEQ ¶
OutAmountNEQ applies the NEQ predicate on the "outAmount" field.
func OutAmountNotIn ¶
OutAmountNotIn applies the NotIn predicate on the "outAmount" field.
func Price ¶
Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
func PriceContains ¶
PriceContains applies the Contains predicate on the "price" field.
func PriceContainsFold ¶
PriceContainsFold applies the ContainsFold predicate on the "price" field.
func PriceEqualFold ¶
PriceEqualFold applies the EqualFold predicate on the "price" field.
func PriceHasPrefix ¶
PriceHasPrefix applies the HasPrefix predicate on the "price" field.
func PriceHasSuffix ¶
PriceHasSuffix applies the HasSuffix predicate on the "price" field.
func PriceNotIn ¶
PriceNotIn applies the NotIn predicate on the "price" field.
func Profit ¶
Profit applies equality check predicate on the "profit" field. It's identical to ProfitEQ.
func ProfitContains ¶
ProfitContains applies the Contains predicate on the "profit" field.
func ProfitContainsFold ¶
ProfitContainsFold applies the ContainsFold predicate on the "profit" field.
func ProfitEqualFold ¶
ProfitEqualFold applies the EqualFold predicate on the "profit" field.
func ProfitHasPrefix ¶
ProfitHasPrefix applies the HasPrefix predicate on the "profit" field.
func ProfitHasSuffix ¶
ProfitHasSuffix applies the HasSuffix predicate on the "profit" field.
func ProfitIsNil ¶
ProfitIsNil applies the IsNil predicate on the "profit" field.
func ProfitNotIn ¶
ProfitNotIn applies the NotIn predicate on the "profit" field.
func ProfitNotNil ¶
ProfitNotNil applies the NotNil predicate on the "profit" field.
func Reason ¶
Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
func ReasonContains ¶
ReasonContains applies the Contains predicate on the "reason" field.
func ReasonContainsFold ¶
ReasonContainsFold applies the ContainsFold predicate on the "reason" field.
func ReasonEqualFold ¶
ReasonEqualFold applies the EqualFold predicate on the "reason" field.
func ReasonHasPrefix ¶
ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.
func ReasonHasSuffix ¶
ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.
func ReasonNotIn ¶
ReasonNotIn applies the NotIn predicate on the "reason" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func StrategyId ¶
StrategyId applies equality check predicate on the "strategyId" field. It's identical to StrategyIdEQ.
func StrategyIdContains ¶
StrategyIdContains applies the Contains predicate on the "strategyId" field.
func StrategyIdContainsFold ¶
StrategyIdContainsFold applies the ContainsFold predicate on the "strategyId" field.
func StrategyIdEQ ¶
StrategyIdEQ applies the EQ predicate on the "strategyId" field.
func StrategyIdEqualFold ¶
StrategyIdEqualFold applies the EqualFold predicate on the "strategyId" field.
func StrategyIdGT ¶
StrategyIdGT applies the GT predicate on the "strategyId" field.
func StrategyIdGTE ¶
StrategyIdGTE applies the GTE predicate on the "strategyId" field.
func StrategyIdHasPrefix ¶
StrategyIdHasPrefix applies the HasPrefix predicate on the "strategyId" field.
func StrategyIdHasSuffix ¶
StrategyIdHasSuffix applies the HasSuffix predicate on the "strategyId" field.
func StrategyIdIn ¶
StrategyIdIn applies the In predicate on the "strategyId" field.
func StrategyIdLT ¶
StrategyIdLT applies the LT predicate on the "strategyId" field.
func StrategyIdLTE ¶
StrategyIdLTE applies the LTE predicate on the "strategyId" field.
func StrategyIdNEQ ¶
StrategyIdNEQ applies the NEQ predicate on the "strategyId" field.
func StrategyIdNotIn ¶
StrategyIdNotIn applies the NotIn predicate on the "strategyId" field.
func Symbol ¶
Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.
func SymbolContains ¶
SymbolContains applies the Contains predicate on the "symbol" field.
func SymbolContainsFold ¶
SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.
func SymbolEqualFold ¶
SymbolEqualFold applies the EqualFold predicate on the "symbol" field.
func SymbolHasPrefix ¶
SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.
func SymbolHasSuffix ¶
SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.
func SymbolNotIn ¶
SymbolNotIn applies the NotIn predicate on the "symbol" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func TxHash ¶
TxHash applies equality check predicate on the "txHash" field. It's identical to TxHashEQ.
func TxHashContains ¶
TxHashContains applies the Contains predicate on the "txHash" field.
func TxHashContainsFold ¶
TxHashContainsFold applies the ContainsFold predicate on the "txHash" field.
func TxHashEqualFold ¶
TxHashEqualFold applies the EqualFold predicate on the "txHash" field.
func TxHashHasPrefix ¶
TxHashHasPrefix applies the HasPrefix predicate on the "txHash" field.
func TxHashHasSuffix ¶
TxHashHasSuffix applies the HasSuffix predicate on the "txHash" field.
func TxHashNotIn ¶
TxHashNotIn applies the NotIn predicate on the "txHash" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 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.