order

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 3 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"
	// FieldExchangeID holds the string denoting the exchange_id field in the database.
	FieldExchangeID = "exchange_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldSymbol holds the string denoting the symbol field in the database.
	FieldSymbol = "symbol"
	// FieldSide holds the string denoting the side field in the database.
	FieldSide = "side"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// FieldGroupID holds the string denoting the group_id field in the database.
	FieldGroupID = "group_id"
	// FieldStop holds the string denoting the stop field in the database.
	FieldStop = "stop"
	// Table holds the table name of the order in the database.
	Table = "orders"
)

Variables

Columns holds all SQL columns for order fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Order

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Order

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Order

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Order

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Order

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Order

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Order

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ExchangeID

func ExchangeID(v int64) predicate.Order

ExchangeID applies equality check predicate on the "exchange_id" field. It's identical to ExchangeIDEQ.

func ExchangeIDEQ

func ExchangeIDEQ(v int64) predicate.Order

ExchangeIDEQ applies the EQ predicate on the "exchange_id" field.

func ExchangeIDGT

func ExchangeIDGT(v int64) predicate.Order

ExchangeIDGT applies the GT predicate on the "exchange_id" field.

func ExchangeIDGTE

func ExchangeIDGTE(v int64) predicate.Order

ExchangeIDGTE applies the GTE predicate on the "exchange_id" field.

func ExchangeIDIn

func ExchangeIDIn(vs ...int64) predicate.Order

ExchangeIDIn applies the In predicate on the "exchange_id" field.

func ExchangeIDLT

func ExchangeIDLT(v int64) predicate.Order

ExchangeIDLT applies the LT predicate on the "exchange_id" field.

func ExchangeIDLTE

func ExchangeIDLTE(v int64) predicate.Order

ExchangeIDLTE applies the LTE predicate on the "exchange_id" field.

func ExchangeIDNEQ

func ExchangeIDNEQ(v int64) predicate.Order

ExchangeIDNEQ applies the NEQ predicate on the "exchange_id" field.

func ExchangeIDNotIn

func ExchangeIDNotIn(vs ...int64) predicate.Order

ExchangeIDNotIn applies the NotIn predicate on the "exchange_id" field.

func GroupID

func GroupID(v int64) predicate.Order

GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.

func GroupIDEQ

func GroupIDEQ(v int64) predicate.Order

GroupIDEQ applies the EQ predicate on the "group_id" field.

func GroupIDGT

func GroupIDGT(v int64) predicate.Order

GroupIDGT applies the GT predicate on the "group_id" field.

func GroupIDGTE

func GroupIDGTE(v int64) predicate.Order

GroupIDGTE applies the GTE predicate on the "group_id" field.

func GroupIDIn

func GroupIDIn(vs ...int64) predicate.Order

GroupIDIn applies the In predicate on the "group_id" field.

func GroupIDIsNil

func GroupIDIsNil() predicate.Order

GroupIDIsNil applies the IsNil predicate on the "group_id" field.

func GroupIDLT

func GroupIDLT(v int64) predicate.Order

GroupIDLT applies the LT predicate on the "group_id" field.

func GroupIDLTE

func GroupIDLTE(v int64) predicate.Order

GroupIDLTE applies the LTE predicate on the "group_id" field.

func GroupIDNEQ

func GroupIDNEQ(v int64) predicate.Order

GroupIDNEQ applies the NEQ predicate on the "group_id" field.

func GroupIDNotIn

func GroupIDNotIn(vs ...int64) predicate.Order

GroupIDNotIn applies the NotIn predicate on the "group_id" field.

func GroupIDNotNil

func GroupIDNotNil() predicate.Order

GroupIDNotNil applies the NotNil predicate on the "group_id" field.

func ID

func ID(id int64) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Order) predicate.Order

Or groups predicates with the OR operator between them.

func Price

func Price(v float64) predicate.Order

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

func PriceEQ

func PriceEQ(v float64) predicate.Order

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

func PriceGT

func PriceGT(v float64) predicate.Order

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

func PriceGTE

func PriceGTE(v float64) predicate.Order

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

func PriceIn

func PriceIn(vs ...float64) predicate.Order

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

func PriceLT

func PriceLT(v float64) predicate.Order

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

func PriceLTE

func PriceLTE(v float64) predicate.Order

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

func PriceNEQ

func PriceNEQ(v float64) predicate.Order

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

func PriceNotIn

func PriceNotIn(vs ...float64) predicate.Order

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

func Quantity

func Quantity(v float64) predicate.Order

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

func QuantityEQ

func QuantityEQ(v float64) predicate.Order

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

func QuantityGT

func QuantityGT(v float64) predicate.Order

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

func QuantityGTE

func QuantityGTE(v float64) predicate.Order

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

func QuantityIn

func QuantityIn(vs ...float64) predicate.Order

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

func QuantityLT

func QuantityLT(v float64) predicate.Order

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

func QuantityLTE

func QuantityLTE(v float64) predicate.Order

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

func QuantityNEQ

func QuantityNEQ(v float64) predicate.Order

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

func QuantityNotIn

func QuantityNotIn(vs ...float64) predicate.Order

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

func Side

func Side(v string) predicate.Order

Side applies equality check predicate on the "side" field. It's identical to SideEQ.

func SideContains

func SideContains(v string) predicate.Order

SideContains applies the Contains predicate on the "side" field.

func SideContainsFold

func SideContainsFold(v string) predicate.Order

SideContainsFold applies the ContainsFold predicate on the "side" field.

func SideEQ

func SideEQ(v string) predicate.Order

SideEQ applies the EQ predicate on the "side" field.

func SideEqualFold

func SideEqualFold(v string) predicate.Order

SideEqualFold applies the EqualFold predicate on the "side" field.

func SideGT

func SideGT(v string) predicate.Order

SideGT applies the GT predicate on the "side" field.

func SideGTE

func SideGTE(v string) predicate.Order

SideGTE applies the GTE predicate on the "side" field.

func SideHasPrefix

func SideHasPrefix(v string) predicate.Order

SideHasPrefix applies the HasPrefix predicate on the "side" field.

func SideHasSuffix

func SideHasSuffix(v string) predicate.Order

SideHasSuffix applies the HasSuffix predicate on the "side" field.

func SideIn

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

SideIn applies the In predicate on the "side" field.

func SideLT

func SideLT(v string) predicate.Order

SideLT applies the LT predicate on the "side" field.

func SideLTE

func SideLTE(v string) predicate.Order

SideLTE applies the LTE predicate on the "side" field.

func SideNEQ

func SideNEQ(v string) predicate.Order

SideNEQ applies the NEQ predicate on the "side" field.

func SideNotIn

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

SideNotIn applies the NotIn predicate on the "side" field.

func Status

func Status(v string) predicate.Order

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Order

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Order

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Order

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Order

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Order

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Order

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Order

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Order

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

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

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

func StatusLT

func StatusLT(v string) predicate.Order

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Order

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Order

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

func StatusNotIn

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

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

func Stop

func Stop(v float64) predicate.Order

Stop applies equality check predicate on the "stop" field. It's identical to StopEQ.

func StopEQ

func StopEQ(v float64) predicate.Order

StopEQ applies the EQ predicate on the "stop" field.

func StopGT

func StopGT(v float64) predicate.Order

StopGT applies the GT predicate on the "stop" field.

func StopGTE

func StopGTE(v float64) predicate.Order

StopGTE applies the GTE predicate on the "stop" field.

func StopIn

func StopIn(vs ...float64) predicate.Order

StopIn applies the In predicate on the "stop" field.

func StopIsNil

func StopIsNil() predicate.Order

StopIsNil applies the IsNil predicate on the "stop" field.

func StopLT

func StopLT(v float64) predicate.Order

StopLT applies the LT predicate on the "stop" field.

func StopLTE

func StopLTE(v float64) predicate.Order

StopLTE applies the LTE predicate on the "stop" field.

func StopNEQ

func StopNEQ(v float64) predicate.Order

StopNEQ applies the NEQ predicate on the "stop" field.

func StopNotIn

func StopNotIn(vs ...float64) predicate.Order

StopNotIn applies the NotIn predicate on the "stop" field.

func StopNotNil

func StopNotNil() predicate.Order

StopNotNil applies the NotNil predicate on the "stop" 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 Type

func Type(v string) predicate.Order

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Order

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Order

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Order

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.Order

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Order

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Order

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Order

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Order

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

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

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

func TypeLT

func TypeLT(v string) predicate.Order

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Order

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Order

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

func TypeNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Order

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Order

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Order

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Order

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Order

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Order

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Order

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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