history

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the history type in the database.
	Label = "history"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMtime holds the string denoting the mtime field in the database.
	FieldMtime = "mtime"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldDefinition holds the string denoting the definition field in the database.
	FieldDefinition = "definition"
	// EdgeJob holds the string denoting the job edge name in mutations.
	EdgeJob = "job"
	// Table holds the table name of the history in the database.
	Table = "history"
	// JobTable is the table that holds the job relation/edge.
	JobTable = "history"
	// JobInverseTable is the table name for the Job entity.
	// It exists in this package in order to avoid circular dependency with the "job" package.
	JobInverseTable = "job"
	// JobColumn is the table column denoting the job relation/edge.
	JobColumn = "job_history"
)

Variables

Columns holds all SQL columns for history fields.

View Source
var ForeignKeys = []string{
	"job_history",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "history" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.History) predicate.History

And groups predicates with the AND operator between them.

func DefinitionIsNil

func DefinitionIsNil() predicate.History

DefinitionIsNil applies the IsNil predicate on the "definition" field.

func DefinitionNotNil

func DefinitionNotNil() predicate.History

DefinitionNotNil applies the NotNil predicate on the "definition" field.

func HasJob

func HasJob() predicate.History

HasJob applies the HasEdge predicate on the "job" edge.

func HasJobWith

func HasJobWith(preds ...predicate.Job) predicate.History

HasJobWith applies the HasEdge predicate on the "job" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.History

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.History

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.History

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.History

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.History

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.History

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.History

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.History

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.History

IDNotIn applies the NotIn predicate on the ID field.

func Mtime

func Mtime(v time.Time) predicate.History

Mtime applies equality check predicate on the "mtime" field. It's identical to MtimeEQ.

func MtimeEQ

func MtimeEQ(v time.Time) predicate.History

MtimeEQ applies the EQ predicate on the "mtime" field.

func MtimeGT

func MtimeGT(v time.Time) predicate.History

MtimeGT applies the GT predicate on the "mtime" field.

func MtimeGTE

func MtimeGTE(v time.Time) predicate.History

MtimeGTE applies the GTE predicate on the "mtime" field.

func MtimeIn

func MtimeIn(vs ...time.Time) predicate.History

MtimeIn applies the In predicate on the "mtime" field.

func MtimeLT

func MtimeLT(v time.Time) predicate.History

MtimeLT applies the LT predicate on the "mtime" field.

func MtimeLTE

func MtimeLTE(v time.Time) predicate.History

MtimeLTE applies the LTE predicate on the "mtime" field.

func MtimeNEQ

func MtimeNEQ(v time.Time) predicate.History

MtimeNEQ applies the NEQ predicate on the "mtime" field.

func MtimeNotIn

func MtimeNotIn(vs ...time.Time) predicate.History

MtimeNotIn applies the NotIn predicate on the "mtime" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.History) predicate.History

Or groups predicates with the OR operator between them.

func StatusIsNil

func StatusIsNil() predicate.History

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.History

StatusNotNil applies the NotNil predicate on the "status" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the History queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByJobField

func ByJobField(field string, opts ...sql.OrderTermOption) OrderOption

ByJobField orders the results by job field.

func ByMtime

func ByMtime(opts ...sql.OrderTermOption) OrderOption

ByMtime orders the results by the mtime field.

Jump to

Keyboard shortcuts

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