Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Interval
- func ActiveEQ(v bool) predicate.Interval
- func ActiveNEQ(v bool) predicate.Interval
- func And(predicates ...predicate.Interval) predicate.Interval
- func DataSourceID(v int) predicate.Interval
- func DataSourceIDEQ(v int) predicate.Interval
- func DataSourceIDIn(vs ...int) predicate.Interval
- func DataSourceIDNEQ(v int) predicate.Interval
- func DataSourceIDNotIn(vs ...int) predicate.Interval
- func HasBars() predicate.Interval
- func HasBarsWith(preds ...predicate.BarTimeRange) predicate.Interval
- func HasDataSource() predicate.Interval
- func HasDataSourceWith(preds ...predicate.DataSource) predicate.Interval
- func HasStock() predicate.Interval
- func HasStockWith(preds ...predicate.Entity) predicate.Interval
- func HasTrades() predicate.Interval
- func HasTradesWith(preds ...predicate.TradeTimeRange) predicate.Interval
- func ID(id int) predicate.Interval
- func IDEQ(id int) predicate.Interval
- func IDGT(id int) predicate.Interval
- func IDGTE(id int) predicate.Interval
- func IDIn(ids ...int) predicate.Interval
- func IDLT(id int) predicate.Interval
- func IDLTE(id int) predicate.Interval
- func IDNEQ(id int) predicate.Interval
- func IDNotIn(ids ...int) predicate.Interval
- func IntervalEQ(v Interval) predicate.Interval
- func IntervalIn(vs ...Interval) predicate.Interval
- func IntervalNEQ(v Interval) predicate.Interval
- func IntervalNotIn(vs ...Interval) predicate.Interval
- func IntervalValidator(i Interval) error
- func Not(p predicate.Interval) predicate.Interval
- func Or(predicates ...predicate.Interval) predicate.Interval
- func StockID(v int) predicate.Interval
- func StockIDEQ(v int) predicate.Interval
- func StockIDIn(vs ...int) predicate.Interval
- func StockIDNEQ(v int) predicate.Interval
- func StockIDNotIn(vs ...int) predicate.Interval
- func ValidColumn(column string) bool
- type Interval
Constants ¶
const ( // Label holds the string label denoting the interval type in the database. Label = "interval" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldInterval holds the string denoting the interval field in the database. FieldInterval = "interval" // FieldStockID holds the string denoting the stock_id field in the database. FieldStockID = "stock_id" // FieldDataSourceID holds the string denoting the data_source_id field in the database. FieldDataSourceID = "data_source_id" // EdgeDataSource holds the string denoting the data_source edge name in mutations. EdgeDataSource = "data_source" // EdgeStock holds the string denoting the stock edge name in mutations. EdgeStock = "stock" // EdgeBars holds the string denoting the bars edge name in mutations. EdgeBars = "bars" // EdgeTrades holds the string denoting the trades edge name in mutations. EdgeTrades = "trades" // Table holds the table name of the interval in the database. Table = "intervals" // DataSourceTable is the table that holds the data_source relation/edge. DataSourceTable = "intervals" // DataSourceInverseTable is the table name for the DataSource entity. // It exists in this package in order to avoid circular dependency with the "datasource" package. DataSourceInverseTable = "data_sources" // DataSourceColumn is the table column denoting the data_source relation/edge. DataSourceColumn = "data_source_id" // StockTable is the table that holds the stock relation/edge. StockTable = "intervals" // StockInverseTable is the table name for the Entity entity. // It exists in this package in order to avoid circular dependency with the "entity" package. StockInverseTable = "entities" // StockColumn is the table column denoting the stock relation/edge. StockColumn = "stock_id" // BarsTable is the table that holds the bars relation/edge. BarsTable = "bar_time_ranges" // BarsInverseTable is the table name for the BarTimeRange entity. // It exists in this package in order to avoid circular dependency with the "bartimerange" package. BarsInverseTable = "bar_time_ranges" // BarsColumn is the table column denoting the bars relation/edge. BarsColumn = "interval_id" // TradesTable is the table that holds the trades relation/edge. TradesTable = "trade_time_ranges" // TradesInverseTable is the table name for the TradeTimeRange entity. // It exists in this package in order to avoid circular dependency with the "tradetimerange" package. TradesInverseTable = "trade_time_ranges" // TradesColumn is the table column denoting the trades relation/edge. TradesColumn = "interval_id" )
Variables ¶
var Columns = []string{ FieldID, FieldActive, FieldInterval, FieldStockID, FieldDataSourceID, }
Columns holds all SQL columns for interval fields.
var ( // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool )
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func DataSourceID ¶
DataSourceID applies equality check predicate on the "data_source_id" field. It's identical to DataSourceIDEQ.
func DataSourceIDEQ ¶
DataSourceIDEQ applies the EQ predicate on the "data_source_id" field.
func DataSourceIDIn ¶
DataSourceIDIn applies the In predicate on the "data_source_id" field.
func DataSourceIDNEQ ¶
DataSourceIDNEQ applies the NEQ predicate on the "data_source_id" field.
func DataSourceIDNotIn ¶
DataSourceIDNotIn applies the NotIn predicate on the "data_source_id" field.
func HasBarsWith ¶
func HasBarsWith(preds ...predicate.BarTimeRange) predicate.Interval
HasBarsWith applies the HasEdge predicate on the "bars" edge with a given conditions (other predicates).
func HasDataSource ¶
HasDataSource applies the HasEdge predicate on the "data_source" edge.
func HasDataSourceWith ¶
func HasDataSourceWith(preds ...predicate.DataSource) predicate.Interval
HasDataSourceWith applies the HasEdge predicate on the "data_source" edge with a given conditions (other predicates).
func HasStockWith ¶
HasStockWith applies the HasEdge predicate on the "stock" edge with a given conditions (other predicates).
func HasTradesWith ¶
func HasTradesWith(preds ...predicate.TradeTimeRange) predicate.Interval
HasTradesWith applies the HasEdge predicate on the "trades" edge with a given conditions (other predicates).
func IntervalEQ ¶
IntervalEQ applies the EQ predicate on the "interval" field.
func IntervalIn ¶
IntervalIn applies the In predicate on the "interval" field.
func IntervalNEQ ¶
IntervalNEQ applies the NEQ predicate on the "interval" field.
func IntervalNotIn ¶
IntervalNotIn applies the NotIn predicate on the "interval" field.
func IntervalValidator ¶
IntervalValidator is a validator for the "interval" field enum values. It is called by the builders before save.
func StockID ¶
StockID applies equality check predicate on the "stock_id" field. It's identical to StockIDEQ.
func StockIDNEQ ¶
StockIDNEQ applies the NEQ predicate on the "stock_id" field.
func StockIDNotIn ¶
StockIDNotIn applies the NotIn predicate on the "stock_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).