Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BarTimeRange) predicate.BarTimeRange
- func Count(v int) predicate.BarTimeRange
- func CountEQ(v int) predicate.BarTimeRange
- func CountGT(v int) predicate.BarTimeRange
- func CountGTE(v int) predicate.BarTimeRange
- func CountIn(vs ...int) predicate.BarTimeRange
- func CountLT(v int) predicate.BarTimeRange
- func CountLTE(v int) predicate.BarTimeRange
- func CountNEQ(v int) predicate.BarTimeRange
- func CountNotIn(vs ...int) predicate.BarTimeRange
- func End(v time.Time) predicate.BarTimeRange
- func EndEQ(v time.Time) predicate.BarTimeRange
- func EndGT(v time.Time) predicate.BarTimeRange
- func EndGTE(v time.Time) predicate.BarTimeRange
- func EndIn(vs ...time.Time) predicate.BarTimeRange
- func EndLT(v time.Time) predicate.BarTimeRange
- func EndLTE(v time.Time) predicate.BarTimeRange
- func EndNEQ(v time.Time) predicate.BarTimeRange
- func EndNotIn(vs ...time.Time) predicate.BarTimeRange
- func HasGroups() predicate.BarTimeRange
- func HasGroupsWith(preds ...predicate.BarGroup) predicate.BarTimeRange
- func HasInterval() predicate.BarTimeRange
- func HasIntervalWith(preds ...predicate.Interval) predicate.BarTimeRange
- func ID(id int) predicate.BarTimeRange
- func IDEQ(id int) predicate.BarTimeRange
- func IDGT(id int) predicate.BarTimeRange
- func IDGTE(id int) predicate.BarTimeRange
- func IDIn(ids ...int) predicate.BarTimeRange
- func IDLT(id int) predicate.BarTimeRange
- func IDLTE(id int) predicate.BarTimeRange
- func IDNEQ(id int) predicate.BarTimeRange
- func IDNotIn(ids ...int) predicate.BarTimeRange
- func IntervalID(v int) predicate.BarTimeRange
- func IntervalIDEQ(v int) predicate.BarTimeRange
- func IntervalIDIn(vs ...int) predicate.BarTimeRange
- func IntervalIDNEQ(v int) predicate.BarTimeRange
- func IntervalIDNotIn(vs ...int) predicate.BarTimeRange
- func Not(p predicate.BarTimeRange) predicate.BarTimeRange
- func Or(predicates ...predicate.BarTimeRange) predicate.BarTimeRange
- func Start(v time.Time) predicate.BarTimeRange
- func StartEQ(v time.Time) predicate.BarTimeRange
- func StartGT(v time.Time) predicate.BarTimeRange
- func StartGTE(v time.Time) predicate.BarTimeRange
- func StartIn(vs ...time.Time) predicate.BarTimeRange
- func StartLT(v time.Time) predicate.BarTimeRange
- func StartLTE(v time.Time) predicate.BarTimeRange
- func StartNEQ(v time.Time) predicate.BarTimeRange
- func StartNotIn(vs ...time.Time) predicate.BarTimeRange
- func StatusEQ(v Status) predicate.BarTimeRange
- func StatusIn(vs ...Status) predicate.BarTimeRange
- func StatusNEQ(v Status) predicate.BarTimeRange
- func StatusNotIn(vs ...Status) predicate.BarTimeRange
- func StatusValidator(s Status) error
- func UpdateTime(v time.Time) predicate.BarTimeRange
- func UpdateTimeEQ(v time.Time) predicate.BarTimeRange
- func UpdateTimeGT(v time.Time) predicate.BarTimeRange
- func UpdateTimeGTE(v time.Time) predicate.BarTimeRange
- func UpdateTimeIn(vs ...time.Time) predicate.BarTimeRange
- func UpdateTimeLT(v time.Time) predicate.BarTimeRange
- func UpdateTimeLTE(v time.Time) predicate.BarTimeRange
- func UpdateTimeNEQ(v time.Time) predicate.BarTimeRange
- func UpdateTimeNotIn(vs ...time.Time) predicate.BarTimeRange
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the bartimerange type in the database. Label = "bar_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" // FieldCount holds the string denoting the count field in the database. FieldCount = "count" // FieldIntervalID holds the string denoting the interval_id field in the database. FieldIntervalID = "interval_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // EdgeInterval holds the string denoting the interval edge name in mutations. EdgeInterval = "interval" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // Table holds the table name of the bartimerange in the database. Table = "bar_time_ranges" // IntervalTable is the table that holds the interval relation/edge. IntervalTable = "bar_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" // GroupsTable is the table that holds the groups relation/edge. GroupsTable = "bar_groups" // GroupsInverseTable is the table name for the BarGroup entity. // It exists in this package in order to avoid circular dependency with the "bargroup" package. GroupsInverseTable = "bar_groups" // GroupsColumn is the table column denoting the groups relation/edge. GroupsColumn = "time_range_id" )
const DefaultStatus = StatusPending
StatusPending is the default value of the Status enum.
Variables ¶
var ( // DefaultCount holds the default value on creation for the "count" field. DefaultCount int // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldStart, FieldEnd, FieldCount, FieldIntervalID, FieldStatus, FieldUpdateTime, }
Columns holds all SQL columns for bartimerange fields.
Functions ¶
func And ¶
func And(predicates ...predicate.BarTimeRange) predicate.BarTimeRange
And groups predicates with the AND operator between them.
func Count ¶
func Count(v int) predicate.BarTimeRange
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountEQ ¶
func CountEQ(v int) predicate.BarTimeRange
CountEQ applies the EQ predicate on the "count" field.
func CountGT ¶
func CountGT(v int) predicate.BarTimeRange
CountGT applies the GT predicate on the "count" field.
func CountGTE ¶
func CountGTE(v int) predicate.BarTimeRange
CountGTE applies the GTE predicate on the "count" field.
func CountIn ¶
func CountIn(vs ...int) predicate.BarTimeRange
CountIn applies the In predicate on the "count" field.
func CountLT ¶
func CountLT(v int) predicate.BarTimeRange
CountLT applies the LT predicate on the "count" field.
func CountLTE ¶
func CountLTE(v int) predicate.BarTimeRange
CountLTE applies the LTE predicate on the "count" field.
func CountNEQ ¶
func CountNEQ(v int) predicate.BarTimeRange
CountNEQ applies the NEQ predicate on the "count" field.
func CountNotIn ¶
func CountNotIn(vs ...int) predicate.BarTimeRange
CountNotIn applies the NotIn predicate on the "count" field.
func End ¶
func End(v time.Time) predicate.BarTimeRange
End applies equality check predicate on the "end" field. It's identical to EndEQ.
func EndEQ ¶
func EndEQ(v time.Time) predicate.BarTimeRange
EndEQ applies the EQ predicate on the "end" field.
func EndGT ¶
func EndGT(v time.Time) predicate.BarTimeRange
EndGT applies the GT predicate on the "end" field.
func EndGTE ¶
func EndGTE(v time.Time) predicate.BarTimeRange
EndGTE applies the GTE predicate on the "end" field.
func EndIn ¶
func EndIn(vs ...time.Time) predicate.BarTimeRange
EndIn applies the In predicate on the "end" field.
func EndLT ¶
func EndLT(v time.Time) predicate.BarTimeRange
EndLT applies the LT predicate on the "end" field.
func EndLTE ¶
func EndLTE(v time.Time) predicate.BarTimeRange
EndLTE applies the LTE predicate on the "end" field.
func EndNEQ ¶
func EndNEQ(v time.Time) predicate.BarTimeRange
EndNEQ applies the NEQ predicate on the "end" field.
func EndNotIn ¶
func EndNotIn(vs ...time.Time) predicate.BarTimeRange
EndNotIn applies the NotIn predicate on the "end" field.
func HasGroups ¶
func HasGroups() predicate.BarTimeRange
HasGroups applies the HasEdge predicate on the "groups" edge.
func HasGroupsWith ¶
func HasGroupsWith(preds ...predicate.BarGroup) predicate.BarTimeRange
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasInterval ¶
func HasInterval() predicate.BarTimeRange
HasInterval applies the HasEdge predicate on the "interval" edge.
func HasIntervalWith ¶
func HasIntervalWith(preds ...predicate.Interval) predicate.BarTimeRange
HasIntervalWith applies the HasEdge predicate on the "interval" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.BarTimeRange
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.BarTimeRange
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.BarTimeRange
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.BarTimeRange
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.BarTimeRange
IDNotIn applies the NotIn predicate on the ID field.
func IntervalID ¶
func IntervalID(v int) predicate.BarTimeRange
IntervalID applies equality check predicate on the "interval_id" field. It's identical to IntervalIDEQ.
func IntervalIDEQ ¶
func IntervalIDEQ(v int) predicate.BarTimeRange
IntervalIDEQ applies the EQ predicate on the "interval_id" field.
func IntervalIDIn ¶
func IntervalIDIn(vs ...int) predicate.BarTimeRange
IntervalIDIn applies the In predicate on the "interval_id" field.
func IntervalIDNEQ ¶
func IntervalIDNEQ(v int) predicate.BarTimeRange
IntervalIDNEQ applies the NEQ predicate on the "interval_id" field.
func IntervalIDNotIn ¶
func IntervalIDNotIn(vs ...int) predicate.BarTimeRange
IntervalIDNotIn applies the NotIn predicate on the "interval_id" field.
func Not ¶
func Not(p predicate.BarTimeRange) predicate.BarTimeRange
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.BarTimeRange) predicate.BarTimeRange
Or groups predicates with the OR operator between them.
func Start ¶
func Start(v time.Time) predicate.BarTimeRange
Start applies equality check predicate on the "start" field. It's identical to StartEQ.
func StartEQ ¶
func StartEQ(v time.Time) predicate.BarTimeRange
StartEQ applies the EQ predicate on the "start" field.
func StartGT ¶
func StartGT(v time.Time) predicate.BarTimeRange
StartGT applies the GT predicate on the "start" field.
func StartGTE ¶
func StartGTE(v time.Time) predicate.BarTimeRange
StartGTE applies the GTE predicate on the "start" field.
func StartIn ¶
func StartIn(vs ...time.Time) predicate.BarTimeRange
StartIn applies the In predicate on the "start" field.
func StartLT ¶
func StartLT(v time.Time) predicate.BarTimeRange
StartLT applies the LT predicate on the "start" field.
func StartLTE ¶
func StartLTE(v time.Time) predicate.BarTimeRange
StartLTE applies the LTE predicate on the "start" field.
func StartNEQ ¶
func StartNEQ(v time.Time) predicate.BarTimeRange
StartNEQ applies the NEQ predicate on the "start" field.
func StartNotIn ¶
func StartNotIn(vs ...time.Time) predicate.BarTimeRange
StartNotIn applies the NotIn predicate on the "start" field.
func StatusEQ ¶
func StatusEQ(v Status) predicate.BarTimeRange
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.BarTimeRange
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.BarTimeRange
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.BarTimeRange
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.BarTimeRange
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.BarTimeRange
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.BarTimeRange
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.BarTimeRange
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.BarTimeRange
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.BarTimeRange
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.BarTimeRange
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.BarTimeRange
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.BarTimeRange
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).