Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TradeRecord) predicate.TradeRecord
- func HasConditions() predicate.TradeRecord
- func HasConditionsWith(preds ...predicate.TradeCondition) predicate.TradeRecord
- func HasCorrection() predicate.TradeRecord
- func HasCorrectionWith(preds ...predicate.TradeCorrection) predicate.TradeRecord
- func HasExchange() predicate.TradeRecord
- func HasExchangeWith(preds ...predicate.Exchange) predicate.TradeRecord
- func HasTimeRange() predicate.TradeRecord
- func HasTimeRangeWith(preds ...predicate.TradeTimeRange) predicate.TradeRecord
- func ID(id int) predicate.TradeRecord
- func IDEQ(id int) predicate.TradeRecord
- func IDGT(id int) predicate.TradeRecord
- func IDGTE(id int) predicate.TradeRecord
- func IDIn(ids ...int) predicate.TradeRecord
- func IDLT(id int) predicate.TradeRecord
- func IDLTE(id int) predicate.TradeRecord
- func IDNEQ(id int) predicate.TradeRecord
- func IDNotIn(ids ...int) predicate.TradeRecord
- func Not(p predicate.TradeRecord) predicate.TradeRecord
- func Or(predicates ...predicate.TradeRecord) predicate.TradeRecord
- func Price(v float64) predicate.TradeRecord
- func PriceEQ(v float64) predicate.TradeRecord
- func PriceGT(v float64) predicate.TradeRecord
- func PriceGTE(v float64) predicate.TradeRecord
- func PriceIn(vs ...float64) predicate.TradeRecord
- func PriceLT(v float64) predicate.TradeRecord
- func PriceLTE(v float64) predicate.TradeRecord
- func PriceNEQ(v float64) predicate.TradeRecord
- func PriceNotIn(vs ...float64) predicate.TradeRecord
- func TimeRangeID(v int) predicate.TradeRecord
- func TimeRangeIDEQ(v int) predicate.TradeRecord
- func TimeRangeIDIn(vs ...int) predicate.TradeRecord
- func TimeRangeIDNEQ(v int) predicate.TradeRecord
- func TimeRangeIDNotIn(vs ...int) predicate.TradeRecord
- func Timestamp(v time.Time) predicate.TradeRecord
- func TimestampEQ(v time.Time) predicate.TradeRecord
- func TimestampGT(v time.Time) predicate.TradeRecord
- func TimestampGTE(v time.Time) predicate.TradeRecord
- func TimestampIn(vs ...time.Time) predicate.TradeRecord
- func TimestampLT(v time.Time) predicate.TradeRecord
- func TimestampLTE(v time.Time) predicate.TradeRecord
- func TimestampNEQ(v time.Time) predicate.TradeRecord
- func TimestampNotIn(vs ...time.Time) predicate.TradeRecord
- func ValidColumn(column string) bool
- func Volume(v int32) predicate.TradeRecord
- func VolumeEQ(v int32) predicate.TradeRecord
- func VolumeGT(v int32) predicate.TradeRecord
- func VolumeGTE(v int32) predicate.TradeRecord
- func VolumeIn(vs ...int32) predicate.TradeRecord
- func VolumeLT(v int32) predicate.TradeRecord
- func VolumeLTE(v int32) predicate.TradeRecord
- func VolumeNEQ(v int32) predicate.TradeRecord
- func VolumeNotIn(vs ...int32) predicate.TradeRecord
Constants ¶
const ( // Label holds the string label denoting the traderecord type in the database. Label = "trade_record" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPrice holds the string denoting the price field in the database. FieldPrice = "price" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldVolume holds the string denoting the volume field in the database. FieldVolume = "volume" // FieldTimeRangeID holds the string denoting the time_range_id field in the database. FieldTimeRangeID = "time_range_id" // EdgeTimeRange holds the string denoting the time_range edge name in mutations. EdgeTimeRange = "time_range" // EdgeConditions holds the string denoting the conditions edge name in mutations. EdgeConditions = "conditions" // EdgeCorrection holds the string denoting the correction edge name in mutations. EdgeCorrection = "correction" // EdgeExchange holds the string denoting the exchange edge name in mutations. EdgeExchange = "exchange" // Table holds the table name of the traderecord in the database. Table = "trade_records" // TimeRangeTable is the table that holds the time_range relation/edge. TimeRangeTable = "trade_records" // TimeRangeInverseTable is the table name for the TradeTimeRange entity. // It exists in this package in order to avoid circular dependency with the "tradetimerange" package. TimeRangeInverseTable = "trade_time_ranges" // TimeRangeColumn is the table column denoting the time_range relation/edge. TimeRangeColumn = "time_range_id" // ConditionsTable is the table that holds the conditions relation/edge. The primary key declared below. ConditionsTable = "trade_record_conditions" // ConditionsInverseTable is the table name for the TradeCondition entity. // It exists in this package in order to avoid circular dependency with the "tradecondition" package. ConditionsInverseTable = "trade_conditions" // CorrectionTable is the table that holds the correction relation/edge. The primary key declared below. CorrectionTable = "trade_record_correction" // CorrectionInverseTable is the table name for the TradeCorrection entity. // It exists in this package in order to avoid circular dependency with the "tradecorrection" package. CorrectionInverseTable = "trade_corrections" // ExchangeTable is the table that holds the exchange relation/edge. ExchangeTable = "exchanges" // ExchangeInverseTable is the table name for the Exchange entity. // It exists in this package in order to avoid circular dependency with the "exchange" package. ExchangeInverseTable = "exchanges" // ExchangeColumn is the table column denoting the exchange relation/edge. ExchangeColumn = "trade_record_exchange" )
Variables ¶
var ( // ConditionsPrimaryKey and ConditionsColumn2 are the table columns denoting the // primary key for the conditions relation (M2M). ConditionsPrimaryKey = []string{"trade_record_id", "trade_condition_id"} // CorrectionPrimaryKey and CorrectionColumn2 are the table columns denoting the // primary key for the correction relation (M2M). CorrectionPrimaryKey = []string{"trade_record_id", "trade_correction_id"} )
var Columns = []string{ FieldID, FieldPrice, FieldTimestamp, FieldVolume, FieldTimeRangeID, }
Columns holds all SQL columns for traderecord fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TradeRecord) predicate.TradeRecord
And groups predicates with the AND operator between them.
func HasConditions ¶
func HasConditions() predicate.TradeRecord
HasConditions applies the HasEdge predicate on the "conditions" edge.
func HasConditionsWith ¶
func HasConditionsWith(preds ...predicate.TradeCondition) predicate.TradeRecord
HasConditionsWith applies the HasEdge predicate on the "conditions" edge with a given conditions (other predicates).
func HasCorrection ¶
func HasCorrection() predicate.TradeRecord
HasCorrection applies the HasEdge predicate on the "correction" edge.
func HasCorrectionWith ¶
func HasCorrectionWith(preds ...predicate.TradeCorrection) predicate.TradeRecord
HasCorrectionWith applies the HasEdge predicate on the "correction" edge with a given conditions (other predicates).
func HasExchange ¶
func HasExchange() predicate.TradeRecord
HasExchange applies the HasEdge predicate on the "exchange" edge.
func HasExchangeWith ¶
func HasExchangeWith(preds ...predicate.Exchange) predicate.TradeRecord
HasExchangeWith applies the HasEdge predicate on the "exchange" edge with a given conditions (other predicates).
func HasTimeRange ¶
func HasTimeRange() predicate.TradeRecord
HasTimeRange applies the HasEdge predicate on the "time_range" edge.
func HasTimeRangeWith ¶
func HasTimeRangeWith(preds ...predicate.TradeTimeRange) predicate.TradeRecord
HasTimeRangeWith applies the HasEdge predicate on the "time_range" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.TradeRecord
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.TradeRecord
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.TradeRecord
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.TradeRecord
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.TradeRecord
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TradeRecord) predicate.TradeRecord
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TradeRecord) predicate.TradeRecord
Or groups predicates with the OR operator between them.
func Price ¶
func Price(v float64) predicate.TradeRecord
Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
func PriceEQ ¶
func PriceEQ(v float64) predicate.TradeRecord
PriceEQ applies the EQ predicate on the "price" field.
func PriceGT ¶
func PriceGT(v float64) predicate.TradeRecord
PriceGT applies the GT predicate on the "price" field.
func PriceGTE ¶
func PriceGTE(v float64) predicate.TradeRecord
PriceGTE applies the GTE predicate on the "price" field.
func PriceIn ¶
func PriceIn(vs ...float64) predicate.TradeRecord
PriceIn applies the In predicate on the "price" field.
func PriceLT ¶
func PriceLT(v float64) predicate.TradeRecord
PriceLT applies the LT predicate on the "price" field.
func PriceLTE ¶
func PriceLTE(v float64) predicate.TradeRecord
PriceLTE applies the LTE predicate on the "price" field.
func PriceNEQ ¶
func PriceNEQ(v float64) predicate.TradeRecord
PriceNEQ applies the NEQ predicate on the "price" field.
func PriceNotIn ¶
func PriceNotIn(vs ...float64) predicate.TradeRecord
PriceNotIn applies the NotIn predicate on the "price" field.
func TimeRangeID ¶
func TimeRangeID(v int) predicate.TradeRecord
TimeRangeID applies equality check predicate on the "time_range_id" field. It's identical to TimeRangeIDEQ.
func TimeRangeIDEQ ¶
func TimeRangeIDEQ(v int) predicate.TradeRecord
TimeRangeIDEQ applies the EQ predicate on the "time_range_id" field.
func TimeRangeIDIn ¶
func TimeRangeIDIn(vs ...int) predicate.TradeRecord
TimeRangeIDIn applies the In predicate on the "time_range_id" field.
func TimeRangeIDNEQ ¶
func TimeRangeIDNEQ(v int) predicate.TradeRecord
TimeRangeIDNEQ applies the NEQ predicate on the "time_range_id" field.
func TimeRangeIDNotIn ¶
func TimeRangeIDNotIn(vs ...int) predicate.TradeRecord
TimeRangeIDNotIn applies the NotIn predicate on the "time_range_id" field.
func Timestamp ¶
func Timestamp(v time.Time) predicate.TradeRecord
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
func TimestampEQ(v time.Time) predicate.TradeRecord
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
func TimestampGT(v time.Time) predicate.TradeRecord
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
func TimestampGTE(v time.Time) predicate.TradeRecord
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
func TimestampIn(vs ...time.Time) predicate.TradeRecord
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
func TimestampLT(v time.Time) predicate.TradeRecord
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
func TimestampLTE(v time.Time) predicate.TradeRecord
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
func TimestampNEQ(v time.Time) predicate.TradeRecord
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
func TimestampNotIn(vs ...time.Time) predicate.TradeRecord
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Volume ¶
func Volume(v int32) predicate.TradeRecord
Volume applies equality check predicate on the "volume" field. It's identical to VolumeEQ.
func VolumeEQ ¶
func VolumeEQ(v int32) predicate.TradeRecord
VolumeEQ applies the EQ predicate on the "volume" field.
func VolumeGT ¶
func VolumeGT(v int32) predicate.TradeRecord
VolumeGT applies the GT predicate on the "volume" field.
func VolumeGTE ¶
func VolumeGTE(v int32) predicate.TradeRecord
VolumeGTE applies the GTE predicate on the "volume" field.
func VolumeIn ¶
func VolumeIn(vs ...int32) predicate.TradeRecord
VolumeIn applies the In predicate on the "volume" field.
func VolumeLT ¶
func VolumeLT(v int32) predicate.TradeRecord
VolumeLT applies the LT predicate on the "volume" field.
func VolumeLTE ¶
func VolumeLTE(v int32) predicate.TradeRecord
VolumeLTE applies the LTE predicate on the "volume" field.
func VolumeNEQ ¶
func VolumeNEQ(v int32) predicate.TradeRecord
VolumeNEQ applies the NEQ predicate on the "volume" field.
func VolumeNotIn ¶
func VolumeNotIn(vs ...int32) predicate.TradeRecord
VolumeNotIn applies the NotIn predicate on the "volume" field.
Types ¶
This section is empty.