Documentation
¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.Grid
- func AccountContains(v string) predicate.Grid
- func AccountContainsFold(v string) predicate.Grid
- func AccountEQ(v string) predicate.Grid
- func AccountEqualFold(v string) predicate.Grid
- func AccountGT(v string) predicate.Grid
- func AccountGTE(v string) predicate.Grid
- func AccountHasPrefix(v string) predicate.Grid
- func AccountHasSuffix(v string) predicate.Grid
- func AccountIn(vs ...string) predicate.Grid
- func AccountLT(v string) predicate.Grid
- func AccountLTE(v string) predicate.Grid
- func AccountNEQ(v string) predicate.Grid
- func AccountNotIn(vs ...string) predicate.Grid
- func Amount(v decimal.Decimal) predicate.Grid
- func AmountContains(v decimal.Decimal) predicate.Grid
- func AmountContainsFold(v decimal.Decimal) predicate.Grid
- func AmountEQ(v decimal.Decimal) predicate.Grid
- func AmountEqualFold(v decimal.Decimal) predicate.Grid
- func AmountGT(v decimal.Decimal) predicate.Grid
- func AmountGTE(v decimal.Decimal) predicate.Grid
- func AmountHasPrefix(v decimal.Decimal) predicate.Grid
- func AmountHasSuffix(v decimal.Decimal) predicate.Grid
- func AmountIn(vs ...decimal.Decimal) predicate.Grid
- func AmountLT(v decimal.Decimal) predicate.Grid
- func AmountLTE(v decimal.Decimal) predicate.Grid
- func AmountNEQ(v decimal.Decimal) predicate.Grid
- func AmountNotIn(vs ...decimal.Decimal) predicate.Grid
- func And(predicates ...predicate.Grid) predicate.Grid
- func CreateTime(v time.Time) predicate.Grid
- func CreateTimeEQ(v time.Time) predicate.Grid
- func CreateTimeGT(v time.Time) predicate.Grid
- func CreateTimeGTE(v time.Time) predicate.Grid
- func CreateTimeIn(vs ...time.Time) predicate.Grid
- func CreateTimeLT(v time.Time) predicate.Grid
- func CreateTimeLTE(v time.Time) predicate.Grid
- func CreateTimeNEQ(v time.Time) predicate.Grid
- func CreateTimeNotIn(vs ...time.Time) predicate.Grid
- func FinalPrice(v decimal.Decimal) predicate.Grid
- func FinalPriceContains(v decimal.Decimal) predicate.Grid
- func FinalPriceContainsFold(v decimal.Decimal) predicate.Grid
- func FinalPriceEQ(v decimal.Decimal) predicate.Grid
- func FinalPriceEqualFold(v decimal.Decimal) predicate.Grid
- func FinalPriceGT(v decimal.Decimal) predicate.Grid
- func FinalPriceGTE(v decimal.Decimal) predicate.Grid
- func FinalPriceHasPrefix(v decimal.Decimal) predicate.Grid
- func FinalPriceHasSuffix(v decimal.Decimal) predicate.Grid
- func FinalPriceIn(vs ...decimal.Decimal) predicate.Grid
- func FinalPriceLT(v decimal.Decimal) predicate.Grid
- func FinalPriceLTE(v decimal.Decimal) predicate.Grid
- func FinalPriceNEQ(v decimal.Decimal) predicate.Grid
- func FinalPriceNotIn(vs ...decimal.Decimal) predicate.Grid
- func GUID(v string) predicate.Grid
- func GUIDContains(v string) predicate.Grid
- func GUIDContainsFold(v string) predicate.Grid
- func GUIDEQ(v string) predicate.Grid
- func GUIDEqualFold(v string) predicate.Grid
- func GUIDGT(v string) predicate.Grid
- func GUIDGTE(v string) predicate.Grid
- func GUIDHasPrefix(v string) predicate.Grid
- func GUIDHasSuffix(v string) predicate.Grid
- func GUIDIn(vs ...string) predicate.Grid
- func GUIDLT(v string) predicate.Grid
- func GUIDLTE(v string) predicate.Grid
- func GUIDNEQ(v string) predicate.Grid
- func GUIDNotIn(vs ...string) predicate.Grid
- func GridNumber(v int) predicate.Grid
- func GridNumberEQ(v int) predicate.Grid
- func GridNumberGT(v int) predicate.Grid
- func GridNumberGTE(v int) predicate.Grid
- func GridNumberIn(vs ...int) predicate.Grid
- func GridNumberLT(v int) predicate.Grid
- func GridNumberLTE(v int) predicate.Grid
- func GridNumberNEQ(v int) predicate.Grid
- func GridNumberNotIn(vs ...int) predicate.Grid
- func ID(id int) predicate.Grid
- func IDEQ(id int) predicate.Grid
- func IDGT(id int) predicate.Grid
- func IDGTE(id int) predicate.Grid
- func IDIn(ids ...int) predicate.Grid
- func IDLT(id int) predicate.Grid
- func IDLTE(id int) predicate.Grid
- func IDNEQ(id int) predicate.Grid
- func IDNotIn(ids ...int) predicate.Grid
- func Not(p predicate.Grid) predicate.Grid
- func Or(predicates ...predicate.Grid) predicate.Grid
- func OrderPrice(v decimal.Decimal) predicate.Grid
- func OrderPriceContains(v decimal.Decimal) predicate.Grid
- func OrderPriceContainsFold(v decimal.Decimal) predicate.Grid
- func OrderPriceEQ(v decimal.Decimal) predicate.Grid
- func OrderPriceEqualFold(v decimal.Decimal) predicate.Grid
- func OrderPriceGT(v decimal.Decimal) predicate.Grid
- func OrderPriceGTE(v decimal.Decimal) predicate.Grid
- func OrderPriceHasPrefix(v decimal.Decimal) predicate.Grid
- func OrderPriceHasSuffix(v decimal.Decimal) predicate.Grid
- func OrderPriceIn(vs ...decimal.Decimal) predicate.Grid
- func OrderPriceLT(v decimal.Decimal) predicate.Grid
- func OrderPriceLTE(v decimal.Decimal) predicate.Grid
- func OrderPriceNEQ(v decimal.Decimal) predicate.Grid
- func OrderPriceNotIn(vs ...decimal.Decimal) predicate.Grid
- func Quantity(v decimal.Decimal) predicate.Grid
- func QuantityContains(v decimal.Decimal) predicate.Grid
- func QuantityContainsFold(v decimal.Decimal) predicate.Grid
- func QuantityEQ(v decimal.Decimal) predicate.Grid
- func QuantityEqualFold(v decimal.Decimal) predicate.Grid
- func QuantityGT(v decimal.Decimal) predicate.Grid
- func QuantityGTE(v decimal.Decimal) predicate.Grid
- func QuantityHasPrefix(v decimal.Decimal) predicate.Grid
- func QuantityHasSuffix(v decimal.Decimal) predicate.Grid
- func QuantityIn(vs ...decimal.Decimal) predicate.Grid
- func QuantityLT(v decimal.Decimal) predicate.Grid
- func QuantityLTE(v decimal.Decimal) predicate.Grid
- func QuantityNEQ(v decimal.Decimal) predicate.Grid
- func QuantityNotIn(vs ...decimal.Decimal) predicate.Grid
- func StatusEQ(v Status) predicate.Grid
- func StatusIn(vs ...Status) predicate.Grid
- func StatusNEQ(v Status) predicate.Grid
- func StatusNotIn(vs ...Status) predicate.Grid
- func StatusValidator(s Status) error
- func StrategyId(v string) predicate.Grid
- func StrategyIdContains(v string) predicate.Grid
- func StrategyIdContainsFold(v string) predicate.Grid
- func StrategyIdEQ(v string) predicate.Grid
- func StrategyIdEqualFold(v string) predicate.Grid
- func StrategyIdGT(v string) predicate.Grid
- func StrategyIdGTE(v string) predicate.Grid
- func StrategyIdHasPrefix(v string) predicate.Grid
- func StrategyIdHasSuffix(v string) predicate.Grid
- func StrategyIdIn(vs ...string) predicate.Grid
- func StrategyIdLT(v string) predicate.Grid
- func StrategyIdLTE(v string) predicate.Grid
- func StrategyIdNEQ(v string) predicate.Grid
- func StrategyIdNotIn(vs ...string) predicate.Grid
- func Symbol(v string) predicate.Grid
- func SymbolContains(v string) predicate.Grid
- func SymbolContainsFold(v string) predicate.Grid
- func SymbolEQ(v string) predicate.Grid
- func SymbolEqualFold(v string) predicate.Grid
- func SymbolGT(v string) predicate.Grid
- func SymbolGTE(v string) predicate.Grid
- func SymbolHasPrefix(v string) predicate.Grid
- func SymbolHasSuffix(v string) predicate.Grid
- func SymbolIn(vs ...string) predicate.Grid
- func SymbolLT(v string) predicate.Grid
- func SymbolLTE(v string) predicate.Grid
- func SymbolNEQ(v string) predicate.Grid
- func SymbolNotIn(vs ...string) predicate.Grid
- func Token(v string) predicate.Grid
- func TokenContains(v string) predicate.Grid
- func TokenContainsFold(v string) predicate.Grid
- func TokenEQ(v string) predicate.Grid
- func TokenEqualFold(v string) predicate.Grid
- func TokenGT(v string) predicate.Grid
- func TokenGTE(v string) predicate.Grid
- func TokenHasPrefix(v string) predicate.Grid
- func TokenHasSuffix(v string) predicate.Grid
- func TokenIn(vs ...string) predicate.Grid
- func TokenLT(v string) predicate.Grid
- func TokenLTE(v string) predicate.Grid
- func TokenNEQ(v string) predicate.Grid
- func TokenNotIn(vs ...string) predicate.Grid
- func UpdateTime(v time.Time) predicate.Grid
- func UpdateTimeEQ(v time.Time) predicate.Grid
- func UpdateTimeGT(v time.Time) predicate.Grid
- func UpdateTimeGTE(v time.Time) predicate.Grid
- func UpdateTimeIn(vs ...time.Time) predicate.Grid
- func UpdateTimeLT(v time.Time) predicate.Grid
- func UpdateTimeLTE(v time.Time) predicate.Grid
- func UpdateTimeNEQ(v time.Time) predicate.Grid
- func UpdateTimeNotIn(vs ...time.Time) predicate.Grid
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccount(opts ...sql.OrderTermOption) OrderOption
- func ByAmount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByFinalPrice(opts ...sql.OrderTermOption) OrderOption
- func ByGUID(opts ...sql.OrderTermOption) OrderOption
- func ByGridNumber(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrderPrice(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(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 ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the grid type in the database. Label = "grid" // 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" // FieldGUID holds the string denoting the guid field in the database. FieldGUID = "guid" // 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" // FieldStrategyId holds the string denoting the strategyid field in the database. FieldStrategyId = "strategy_id" // FieldGridNumber holds the string denoting the gridnumber field in the database. FieldGridNumber = "grid_number" // FieldOrderPrice holds the string denoting the orderprice field in the database. FieldOrderPrice = "order_price" // FieldFinalPrice holds the string denoting the finalprice field in the database. FieldFinalPrice = "final_price" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // Table holds the table name of the grid in the database. Table = "grids" )
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 // GUIDValidator is a validator for the "guid" field. It is called by the builders before save. GUIDValidator func(string) error // 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 // StrategyIdValidator is a validator for the "strategyId" field. It is called by the builders before save. StrategyIdValidator func(string) error // GridNumberValidator is a validator for the "gridNumber" field. It is called by the builders before save. GridNumberValidator func(int) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldGUID, FieldAccount, FieldToken, FieldSymbol, FieldStrategyId, FieldGridNumber, FieldOrderPrice, FieldFinalPrice, FieldAmount, FieldQuantity, FieldStatus, }
Columns holds all SQL columns for grid 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 Amount ¶
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountContains ¶
AmountContains applies the Contains predicate on the "amount" field.
func AmountContainsFold ¶
AmountContainsFold applies the ContainsFold predicate on the "amount" field.
func AmountEqualFold ¶
AmountEqualFold applies the EqualFold predicate on the "amount" field.
func AmountHasPrefix ¶
AmountHasPrefix applies the HasPrefix predicate on the "amount" field.
func AmountHasSuffix ¶
AmountHasSuffix applies the HasSuffix predicate on the "amount" field.
func AmountNotIn ¶
AmountNotIn applies the NotIn predicate on the "amount" 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 GUIDContains ¶
GUIDContains applies the Contains predicate on the "guid" field.
func GUIDContainsFold ¶
GUIDContainsFold applies the ContainsFold predicate on the "guid" field.
func GUIDEqualFold ¶
GUIDEqualFold applies the EqualFold predicate on the "guid" field.
func GUIDHasPrefix ¶
GUIDHasPrefix applies the HasPrefix predicate on the "guid" field.
func GUIDHasSuffix ¶
GUIDHasSuffix applies the HasSuffix predicate on the "guid" 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 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 OrderPrice ¶
OrderPrice applies equality check predicate on the "orderPrice" field. It's identical to OrderPriceEQ.
func OrderPriceContains ¶
OrderPriceContains applies the Contains predicate on the "orderPrice" field.
func OrderPriceContainsFold ¶
OrderPriceContainsFold applies the ContainsFold predicate on the "orderPrice" field.
func OrderPriceEQ ¶
OrderPriceEQ applies the EQ predicate on the "orderPrice" field.
func OrderPriceEqualFold ¶
OrderPriceEqualFold applies the EqualFold predicate on the "orderPrice" field.
func OrderPriceGT ¶
OrderPriceGT applies the GT predicate on the "orderPrice" field.
func OrderPriceGTE ¶
OrderPriceGTE applies the GTE predicate on the "orderPrice" field.
func OrderPriceHasPrefix ¶
OrderPriceHasPrefix applies the HasPrefix predicate on the "orderPrice" field.
func OrderPriceHasSuffix ¶
OrderPriceHasSuffix applies the HasSuffix predicate on the "orderPrice" field.
func OrderPriceIn ¶
OrderPriceIn applies the In predicate on the "orderPrice" field.
func OrderPriceLT ¶
OrderPriceLT applies the LT predicate on the "orderPrice" field.
func OrderPriceLTE ¶
OrderPriceLTE applies the LTE predicate on the "orderPrice" field.
func OrderPriceNEQ ¶
OrderPriceNEQ applies the NEQ predicate on the "orderPrice" field.
func OrderPriceNotIn ¶
OrderPriceNotIn applies the NotIn predicate on the "orderPrice" field.
func Quantity ¶
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityContains ¶
QuantityContains applies the Contains predicate on the "quantity" field.
func QuantityContainsFold ¶
QuantityContainsFold applies the ContainsFold predicate on the "quantity" field.
func QuantityEQ ¶
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityEqualFold ¶
QuantityEqualFold applies the EqualFold predicate on the "quantity" field.
func QuantityGT ¶
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityHasPrefix ¶
QuantityHasPrefix applies the HasPrefix predicate on the "quantity" field.
func QuantityHasSuffix ¶
QuantityHasSuffix applies the HasSuffix predicate on the "quantity" field.
func QuantityIn ¶
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
QuantityNotIn applies the NotIn predicate on the "quantity" 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 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 Grid queries.
func ByAccount ¶
func ByAccount(opts ...sql.OrderTermOption) OrderOption
ByAccount orders the results by the account field.
func ByAmount ¶
func ByAmount(opts ...sql.OrderTermOption) OrderOption
ByAmount orders the results by the amount 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 ByGUID ¶
func ByGUID(opts ...sql.OrderTermOption) OrderOption
ByGUID orders the results by the guid 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 ByOrderPrice ¶
func ByOrderPrice(opts ...sql.OrderTermOption) OrderOption
ByOrderPrice orders the results by the orderPrice field.
func ByQuantity ¶
func ByQuantity(opts ...sql.OrderTermOption) OrderOption
ByQuantity orders the results by the quantity 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 ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.