grid

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

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
	// 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
)

Columns holds all SQL columns for grid fields.

Functions

func Account

func Account(v string) predicate.Grid

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

func AccountContains

func AccountContains(v string) predicate.Grid

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

func AccountContainsFold

func AccountContainsFold(v string) predicate.Grid

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

func AccountEQ

func AccountEQ(v string) predicate.Grid

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

func AccountEqualFold

func AccountEqualFold(v string) predicate.Grid

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

func AccountGT

func AccountGT(v string) predicate.Grid

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

func AccountGTE

func AccountGTE(v string) predicate.Grid

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

func AccountHasPrefix

func AccountHasPrefix(v string) predicate.Grid

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

func AccountHasSuffix

func AccountHasSuffix(v string) predicate.Grid

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

func AccountIn

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

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

func AccountLT

func AccountLT(v string) predicate.Grid

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

func AccountLTE

func AccountLTE(v string) predicate.Grid

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

func AccountNEQ

func AccountNEQ(v string) predicate.Grid

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

func AccountNotIn

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

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

func Amount

func Amount(v decimal.Decimal) predicate.Grid

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountContains

func AmountContains(v decimal.Decimal) predicate.Grid

AmountContains applies the Contains predicate on the "amount" field.

func AmountContainsFold

func AmountContainsFold(v decimal.Decimal) predicate.Grid

AmountContainsFold applies the ContainsFold predicate on the "amount" field.

func AmountEQ

func AmountEQ(v decimal.Decimal) predicate.Grid

AmountEQ applies the EQ predicate on the "amount" field.

func AmountEqualFold

func AmountEqualFold(v decimal.Decimal) predicate.Grid

AmountEqualFold applies the EqualFold predicate on the "amount" field.

func AmountGT

func AmountGT(v decimal.Decimal) predicate.Grid

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v decimal.Decimal) predicate.Grid

AmountGTE applies the GTE predicate on the "amount" field.

func AmountHasPrefix

func AmountHasPrefix(v decimal.Decimal) predicate.Grid

AmountHasPrefix applies the HasPrefix predicate on the "amount" field.

func AmountHasSuffix

func AmountHasSuffix(v decimal.Decimal) predicate.Grid

AmountHasSuffix applies the HasSuffix predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...decimal.Decimal) predicate.Grid

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v decimal.Decimal) predicate.Grid

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v decimal.Decimal) predicate.Grid

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v decimal.Decimal) predicate.Grid

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...decimal.Decimal) predicate.Grid

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.Grid) predicate.Grid

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Grid

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Grid

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Grid

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Grid

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Grid

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Grid

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Grid

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

func CreateTimeNotIn

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

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

func FinalPrice

func FinalPrice(v decimal.Decimal) predicate.Grid

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

func FinalPriceContains

func FinalPriceContains(v decimal.Decimal) predicate.Grid

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

func FinalPriceContainsFold

func FinalPriceContainsFold(v decimal.Decimal) predicate.Grid

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

func FinalPriceEQ

func FinalPriceEQ(v decimal.Decimal) predicate.Grid

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

func FinalPriceEqualFold

func FinalPriceEqualFold(v decimal.Decimal) predicate.Grid

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

func FinalPriceGT

func FinalPriceGT(v decimal.Decimal) predicate.Grid

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

func FinalPriceGTE

func FinalPriceGTE(v decimal.Decimal) predicate.Grid

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

func FinalPriceHasPrefix

func FinalPriceHasPrefix(v decimal.Decimal) predicate.Grid

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

func FinalPriceHasSuffix

func FinalPriceHasSuffix(v decimal.Decimal) predicate.Grid

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

func FinalPriceIn

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

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

func FinalPriceLT

func FinalPriceLT(v decimal.Decimal) predicate.Grid

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

func FinalPriceLTE

func FinalPriceLTE(v decimal.Decimal) predicate.Grid

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

func FinalPriceNEQ

func FinalPriceNEQ(v decimal.Decimal) predicate.Grid

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

func FinalPriceNotIn

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

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

func GUID

func GUID(v string) predicate.Grid

GUID applies equality check predicate on the "guid" field. It's identical to GUIDEQ.

func GUIDContains

func GUIDContains(v string) predicate.Grid

GUIDContains applies the Contains predicate on the "guid" field.

func GUIDContainsFold

func GUIDContainsFold(v string) predicate.Grid

GUIDContainsFold applies the ContainsFold predicate on the "guid" field.

func GUIDEQ

func GUIDEQ(v string) predicate.Grid

GUIDEQ applies the EQ predicate on the "guid" field.

func GUIDEqualFold

func GUIDEqualFold(v string) predicate.Grid

GUIDEqualFold applies the EqualFold predicate on the "guid" field.

func GUIDGT

func GUIDGT(v string) predicate.Grid

GUIDGT applies the GT predicate on the "guid" field.

func GUIDGTE

func GUIDGTE(v string) predicate.Grid

GUIDGTE applies the GTE predicate on the "guid" field.

func GUIDHasPrefix

func GUIDHasPrefix(v string) predicate.Grid

GUIDHasPrefix applies the HasPrefix predicate on the "guid" field.

func GUIDHasSuffix

func GUIDHasSuffix(v string) predicate.Grid

GUIDHasSuffix applies the HasSuffix predicate on the "guid" field.

func GUIDIn

func GUIDIn(vs ...string) predicate.Grid

GUIDIn applies the In predicate on the "guid" field.

func GUIDLT

func GUIDLT(v string) predicate.Grid

GUIDLT applies the LT predicate on the "guid" field.

func GUIDLTE

func GUIDLTE(v string) predicate.Grid

GUIDLTE applies the LTE predicate on the "guid" field.

func GUIDNEQ

func GUIDNEQ(v string) predicate.Grid

GUIDNEQ applies the NEQ predicate on the "guid" field.

func GUIDNotIn

func GUIDNotIn(vs ...string) predicate.Grid

GUIDNotIn applies the NotIn predicate on the "guid" field.

func GridNumber

func GridNumber(v int) predicate.Grid

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

func GridNumberEQ

func GridNumberEQ(v int) predicate.Grid

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

func GridNumberGT

func GridNumberGT(v int) predicate.Grid

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

func GridNumberGTE

func GridNumberGTE(v int) predicate.Grid

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

func GridNumberIn

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

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

func GridNumberLT

func GridNumberLT(v int) predicate.Grid

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

func GridNumberLTE

func GridNumberLTE(v int) predicate.Grid

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

func GridNumberNEQ

func GridNumberNEQ(v int) predicate.Grid

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

func GridNumberNotIn

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

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

func ID

func ID(id int) predicate.Grid

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Grid

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Grid

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Grid

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Grid

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Grid

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Grid

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Grid) predicate.Grid

Or groups predicates with the OR operator between them.

func OrderPrice

func OrderPrice(v decimal.Decimal) predicate.Grid

OrderPrice applies equality check predicate on the "orderPrice" field. It's identical to OrderPriceEQ.

func OrderPriceContains

func OrderPriceContains(v decimal.Decimal) predicate.Grid

OrderPriceContains applies the Contains predicate on the "orderPrice" field.

func OrderPriceContainsFold

func OrderPriceContainsFold(v decimal.Decimal) predicate.Grid

OrderPriceContainsFold applies the ContainsFold predicate on the "orderPrice" field.

func OrderPriceEQ

func OrderPriceEQ(v decimal.Decimal) predicate.Grid

OrderPriceEQ applies the EQ predicate on the "orderPrice" field.

func OrderPriceEqualFold

func OrderPriceEqualFold(v decimal.Decimal) predicate.Grid

OrderPriceEqualFold applies the EqualFold predicate on the "orderPrice" field.

func OrderPriceGT

func OrderPriceGT(v decimal.Decimal) predicate.Grid

OrderPriceGT applies the GT predicate on the "orderPrice" field.

func OrderPriceGTE

func OrderPriceGTE(v decimal.Decimal) predicate.Grid

OrderPriceGTE applies the GTE predicate on the "orderPrice" field.

func OrderPriceHasPrefix

func OrderPriceHasPrefix(v decimal.Decimal) predicate.Grid

OrderPriceHasPrefix applies the HasPrefix predicate on the "orderPrice" field.

func OrderPriceHasSuffix

func OrderPriceHasSuffix(v decimal.Decimal) predicate.Grid

OrderPriceHasSuffix applies the HasSuffix predicate on the "orderPrice" field.

func OrderPriceIn

func OrderPriceIn(vs ...decimal.Decimal) predicate.Grid

OrderPriceIn applies the In predicate on the "orderPrice" field.

func OrderPriceLT

func OrderPriceLT(v decimal.Decimal) predicate.Grid

OrderPriceLT applies the LT predicate on the "orderPrice" field.

func OrderPriceLTE

func OrderPriceLTE(v decimal.Decimal) predicate.Grid

OrderPriceLTE applies the LTE predicate on the "orderPrice" field.

func OrderPriceNEQ

func OrderPriceNEQ(v decimal.Decimal) predicate.Grid

OrderPriceNEQ applies the NEQ predicate on the "orderPrice" field.

func OrderPriceNotIn

func OrderPriceNotIn(vs ...decimal.Decimal) predicate.Grid

OrderPriceNotIn applies the NotIn predicate on the "orderPrice" field.

func Quantity

func Quantity(v decimal.Decimal) predicate.Grid

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityContains

func QuantityContains(v decimal.Decimal) predicate.Grid

QuantityContains applies the Contains predicate on the "quantity" field.

func QuantityContainsFold

func QuantityContainsFold(v decimal.Decimal) predicate.Grid

QuantityContainsFold applies the ContainsFold predicate on the "quantity" field.

func QuantityEQ

func QuantityEQ(v decimal.Decimal) predicate.Grid

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityEqualFold

func QuantityEqualFold(v decimal.Decimal) predicate.Grid

QuantityEqualFold applies the EqualFold predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v decimal.Decimal) predicate.Grid

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v decimal.Decimal) predicate.Grid

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityHasPrefix

func QuantityHasPrefix(v decimal.Decimal) predicate.Grid

QuantityHasPrefix applies the HasPrefix predicate on the "quantity" field.

func QuantityHasSuffix

func QuantityHasSuffix(v decimal.Decimal) predicate.Grid

QuantityHasSuffix applies the HasSuffix predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...decimal.Decimal) predicate.Grid

QuantityIn applies the In predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v decimal.Decimal) predicate.Grid

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v decimal.Decimal) predicate.Grid

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v decimal.Decimal) predicate.Grid

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...decimal.Decimal) predicate.Grid

QuantityNotIn applies the NotIn predicate on the "quantity" field.

func StatusEQ

func StatusEQ(v Status) predicate.Grid

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Grid

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

func StatusNotIn

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

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.Grid

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

func StrategyIdContains

func StrategyIdContains(v string) predicate.Grid

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

func StrategyIdContainsFold

func StrategyIdContainsFold(v string) predicate.Grid

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

func StrategyIdEQ

func StrategyIdEQ(v string) predicate.Grid

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

func StrategyIdEqualFold

func StrategyIdEqualFold(v string) predicate.Grid

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

func StrategyIdGT

func StrategyIdGT(v string) predicate.Grid

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

func StrategyIdGTE

func StrategyIdGTE(v string) predicate.Grid

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

func StrategyIdHasPrefix

func StrategyIdHasPrefix(v string) predicate.Grid

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

func StrategyIdHasSuffix

func StrategyIdHasSuffix(v string) predicate.Grid

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

func StrategyIdIn

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

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

func StrategyIdLT

func StrategyIdLT(v string) predicate.Grid

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

func StrategyIdLTE

func StrategyIdLTE(v string) predicate.Grid

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

func StrategyIdNEQ

func StrategyIdNEQ(v string) predicate.Grid

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

func StrategyIdNotIn

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

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

func Symbol

func Symbol(v string) predicate.Grid

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

func SymbolContains

func SymbolContains(v string) predicate.Grid

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

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.Grid

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

func SymbolEQ

func SymbolEQ(v string) predicate.Grid

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

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.Grid

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

func SymbolGT

func SymbolGT(v string) predicate.Grid

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

func SymbolGTE

func SymbolGTE(v string) predicate.Grid

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

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.Grid

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

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.Grid

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

func SymbolIn

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

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

func SymbolLT

func SymbolLT(v string) predicate.Grid

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

func SymbolLTE

func SymbolLTE(v string) predicate.Grid

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

func SymbolNEQ

func SymbolNEQ(v string) predicate.Grid

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

func SymbolNotIn

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

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

func Token

func Token(v string) predicate.Grid

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

func TokenContains

func TokenContains(v string) predicate.Grid

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

func TokenContainsFold

func TokenContainsFold(v string) predicate.Grid

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

func TokenEQ

func TokenEQ(v string) predicate.Grid

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

func TokenEqualFold

func TokenEqualFold(v string) predicate.Grid

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

func TokenGT

func TokenGT(v string) predicate.Grid

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

func TokenGTE

func TokenGTE(v string) predicate.Grid

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

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Grid

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

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Grid

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

func TokenIn

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

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

func TokenLT

func TokenLT(v string) predicate.Grid

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

func TokenLTE

func TokenLTE(v string) predicate.Grid

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

func TokenNEQ

func TokenNEQ(v string) predicate.Grid

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

func TokenNotIn

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.Grid

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Grid

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Grid

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Grid

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Grid

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Grid

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Grid

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

func UpdateTimeNotIn

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

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 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.

type Status

type Status string

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

const (
	StatusBuying  Status = "buying"
	StatusSelling Status = "selling"
	StatusBought  Status = "bought"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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