Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TradeTimeRange) predicate.TradeTimeRange
- func End(v time.Time) predicate.TradeTimeRange
- func EndEQ(v time.Time) predicate.TradeTimeRange
- func EndGT(v time.Time) predicate.TradeTimeRange
- func EndGTE(v time.Time) predicate.TradeTimeRange
- func EndIn(vs ...time.Time) predicate.TradeTimeRange
- func EndLT(v time.Time) predicate.TradeTimeRange
- func EndLTE(v time.Time) predicate.TradeTimeRange
- func EndNEQ(v time.Time) predicate.TradeTimeRange
- func EndNotIn(vs ...time.Time) predicate.TradeTimeRange
- func HasInterval() predicate.TradeTimeRange
- func HasIntervalWith(preds ...predicate.Interval) predicate.TradeTimeRange
- func HasRecords() predicate.TradeTimeRange
- func HasRecordsWith(preds ...predicate.TradeRecord) predicate.TradeTimeRange
- func ID(id int) predicate.TradeTimeRange
- func IDEQ(id int) predicate.TradeTimeRange
- func IDGT(id int) predicate.TradeTimeRange
- func IDGTE(id int) predicate.TradeTimeRange
- func IDIn(ids ...int) predicate.TradeTimeRange
- func IDLT(id int) predicate.TradeTimeRange
- func IDLTE(id int) predicate.TradeTimeRange
- func IDNEQ(id int) predicate.TradeTimeRange
- func IDNotIn(ids ...int) predicate.TradeTimeRange
- func IntervalID(v int) predicate.TradeTimeRange
- func IntervalIDEQ(v int) predicate.TradeTimeRange
- func IntervalIDIn(vs ...int) predicate.TradeTimeRange
- func IntervalIDNEQ(v int) predicate.TradeTimeRange
- func IntervalIDNotIn(vs ...int) predicate.TradeTimeRange
- func Not(p predicate.TradeTimeRange) predicate.TradeTimeRange
- func Or(predicates ...predicate.TradeTimeRange) predicate.TradeTimeRange
- func Start(v time.Time) predicate.TradeTimeRange
- func StartEQ(v time.Time) predicate.TradeTimeRange
- func StartGT(v time.Time) predicate.TradeTimeRange
- func StartGTE(v time.Time) predicate.TradeTimeRange
- func StartIn(vs ...time.Time) predicate.TradeTimeRange
- func StartLT(v time.Time) predicate.TradeTimeRange
- func StartLTE(v time.Time) predicate.TradeTimeRange
- func StartNEQ(v time.Time) predicate.TradeTimeRange
- func StartNotIn(vs ...time.Time) predicate.TradeTimeRange
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the tradetimerange type in the database. Label = "trade_time_range" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldStart holds the string denoting the start field in the database. FieldStart = "start" // FieldEnd holds the string denoting the end field in the database. FieldEnd = "end" // FieldIntervalID holds the string denoting the interval_id field in the database. FieldIntervalID = "interval_id" // EdgeInterval holds the string denoting the interval edge name in mutations. EdgeInterval = "interval" // EdgeRecords holds the string denoting the records edge name in mutations. EdgeRecords = "records" // Table holds the table name of the tradetimerange in the database. Table = "trade_time_ranges" // IntervalTable is the table that holds the interval relation/edge. IntervalTable = "trade_time_ranges" // IntervalInverseTable is the table name for the Interval entity. // It exists in this package in order to avoid circular dependency with the "interval" package. IntervalInverseTable = "intervals" // IntervalColumn is the table column denoting the interval relation/edge. IntervalColumn = "interval_id" // RecordsTable is the table that holds the records relation/edge. RecordsTable = "trade_records" // RecordsInverseTable is the table name for the TradeRecord entity. // It exists in this package in order to avoid circular dependency with the "traderecord" package. RecordsInverseTable = "trade_records" // RecordsColumn is the table column denoting the records relation/edge. RecordsColumn = "time_range_id" )
Variables ¶
var Columns = []string{ FieldID, FieldStart, FieldEnd, FieldIntervalID, }
Columns holds all SQL columns for tradetimerange fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TradeTimeRange) predicate.TradeTimeRange
And groups predicates with the AND operator between them.
func End ¶
func End(v time.Time) predicate.TradeTimeRange
End applies equality check predicate on the "end" field. It's identical to EndEQ.
func EndEQ ¶
func EndEQ(v time.Time) predicate.TradeTimeRange
EndEQ applies the EQ predicate on the "end" field.
func EndGT ¶
func EndGT(v time.Time) predicate.TradeTimeRange
EndGT applies the GT predicate on the "end" field.
func EndGTE ¶
func EndGTE(v time.Time) predicate.TradeTimeRange
EndGTE applies the GTE predicate on the "end" field.
func EndIn ¶
func EndIn(vs ...time.Time) predicate.TradeTimeRange
EndIn applies the In predicate on the "end" field.
func EndLT ¶
func EndLT(v time.Time) predicate.TradeTimeRange
EndLT applies the LT predicate on the "end" field.
func EndLTE ¶
func EndLTE(v time.Time) predicate.TradeTimeRange
EndLTE applies the LTE predicate on the "end" field.
func EndNEQ ¶
func EndNEQ(v time.Time) predicate.TradeTimeRange
EndNEQ applies the NEQ predicate on the "end" field.
func EndNotIn ¶
func EndNotIn(vs ...time.Time) predicate.TradeTimeRange
EndNotIn applies the NotIn predicate on the "end" field.
func HasInterval ¶
func HasInterval() predicate.TradeTimeRange
HasInterval applies the HasEdge predicate on the "interval" edge.
func HasIntervalWith ¶
func HasIntervalWith(preds ...predicate.Interval) predicate.TradeTimeRange
HasIntervalWith applies the HasEdge predicate on the "interval" edge with a given conditions (other predicates).
func HasRecords ¶
func HasRecords() predicate.TradeTimeRange
HasRecords applies the HasEdge predicate on the "records" edge.
func HasRecordsWith ¶
func HasRecordsWith(preds ...predicate.TradeRecord) predicate.TradeTimeRange
HasRecordsWith applies the HasEdge predicate on the "records" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.TradeTimeRange
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.TradeTimeRange
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.TradeTimeRange
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.TradeTimeRange
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.TradeTimeRange
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.TradeTimeRange
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.TradeTimeRange
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.TradeTimeRange
IDNotIn applies the NotIn predicate on the ID field.
func IntervalID ¶
func IntervalID(v int) predicate.TradeTimeRange
IntervalID applies equality check predicate on the "interval_id" field. It's identical to IntervalIDEQ.
func IntervalIDEQ ¶
func IntervalIDEQ(v int) predicate.TradeTimeRange
IntervalIDEQ applies the EQ predicate on the "interval_id" field.
func IntervalIDIn ¶
func IntervalIDIn(vs ...int) predicate.TradeTimeRange
IntervalIDIn applies the In predicate on the "interval_id" field.
func IntervalIDNEQ ¶
func IntervalIDNEQ(v int) predicate.TradeTimeRange
IntervalIDNEQ applies the NEQ predicate on the "interval_id" field.
func IntervalIDNotIn ¶
func IntervalIDNotIn(vs ...int) predicate.TradeTimeRange
IntervalIDNotIn applies the NotIn predicate on the "interval_id" field.
func Not ¶
func Not(p predicate.TradeTimeRange) predicate.TradeTimeRange
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TradeTimeRange) predicate.TradeTimeRange
Or groups predicates with the OR operator between them.
func Start ¶
func Start(v time.Time) predicate.TradeTimeRange
Start applies equality check predicate on the "start" field. It's identical to StartEQ.
func StartEQ ¶
func StartEQ(v time.Time) predicate.TradeTimeRange
StartEQ applies the EQ predicate on the "start" field.
func StartGT ¶
func StartGT(v time.Time) predicate.TradeTimeRange
StartGT applies the GT predicate on the "start" field.
func StartGTE ¶
func StartGTE(v time.Time) predicate.TradeTimeRange
StartGTE applies the GTE predicate on the "start" field.
func StartIn ¶
func StartIn(vs ...time.Time) predicate.TradeTimeRange
StartIn applies the In predicate on the "start" field.
func StartLT ¶
func StartLT(v time.Time) predicate.TradeTimeRange
StartLT applies the LT predicate on the "start" field.
func StartLTE ¶
func StartLTE(v time.Time) predicate.TradeTimeRange
StartLTE applies the LTE predicate on the "start" field.
func StartNEQ ¶
func StartNEQ(v time.Time) predicate.TradeTimeRange
StartNEQ applies the NEQ predicate on the "start" field.
func StartNotIn ¶
func StartNotIn(vs ...time.Time) predicate.TradeTimeRange
StartNotIn applies the NotIn predicate on the "start" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.