bartimerange

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

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

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

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

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

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 ID

func ID(id int) predicate.BarTimeRange

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.BarTimeRange

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.BarTimeRange

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.BarTimeRange

IDLT applies the LT 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

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

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

func StatusValidator(s Status) error

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending      Status = "pending"
	StatusCreated      Status = "created"
	StatusClean        Status = "clean"
	StatusConsolidated Status = "consolidated"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL