tradetimerange

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for tradetimerange fields.

Functions

func And

And groups predicates with the AND operator between them.

func End

End applies equality check predicate on the "end" field. It's identical to EndEQ.

func EndEQ

EndEQ applies the EQ predicate on the "end" field.

func EndGT

EndGT applies the GT predicate on the "end" field.

func EndGTE

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

EndLT applies the LT predicate on the "end" field.

func EndLTE

EndLTE applies the LTE predicate on the "end" field.

func EndNEQ

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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Start

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

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