Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Run) predicate.Run
- func CreatedAt(v time.Time) predicate.Run
- func CreatedAtEQ(v time.Time) predicate.Run
- func CreatedAtGT(v time.Time) predicate.Run
- func CreatedAtGTE(v time.Time) predicate.Run
- func CreatedAtIn(vs ...time.Time) predicate.Run
- func CreatedAtLT(v time.Time) predicate.Run
- func CreatedAtLTE(v time.Time) predicate.Run
- func CreatedAtNEQ(v time.Time) predicate.Run
- func CreatedAtNotIn(vs ...time.Time) predicate.Run
- func EndedAt(v time.Time) predicate.Run
- func EndedAtEQ(v time.Time) predicate.Run
- func EndedAtGT(v time.Time) predicate.Run
- func EndedAtGTE(v time.Time) predicate.Run
- func EndedAtIn(vs ...time.Time) predicate.Run
- func EndedAtIsNil() predicate.Run
- func EndedAtLT(v time.Time) predicate.Run
- func EndedAtLTE(v time.Time) predicate.Run
- func EndedAtNEQ(v time.Time) predicate.Run
- func EndedAtNotIn(vs ...time.Time) predicate.Run
- func EndedAtNotNil() predicate.Run
- func Error(v string) predicate.Run
- func ErrorContains(v string) predicate.Run
- func ErrorContainsFold(v string) predicate.Run
- func ErrorEQ(v string) predicate.Run
- func ErrorEqualFold(v string) predicate.Run
- func ErrorGT(v string) predicate.Run
- func ErrorGTE(v string) predicate.Run
- func ErrorHasPrefix(v string) predicate.Run
- func ErrorHasSuffix(v string) predicate.Run
- func ErrorIn(vs ...string) predicate.Run
- func ErrorIsNil() predicate.Run
- func ErrorLT(v string) predicate.Run
- func ErrorLTE(v string) predicate.Run
- func ErrorNEQ(v string) predicate.Run
- func ErrorNotIn(vs ...string) predicate.Run
- func ErrorNotNil() predicate.Run
- func HasCurrentStep() predicate.Run
- func HasCurrentStepWith(preds ...predicate.StepRun) predicate.Run
- func HasProject() predicate.Run
- func HasProjectWith(preds ...predicate.Project) predicate.Run
- func HasSteps() predicate.Run
- func HasStepsWith(preds ...predicate.StepRun) predicate.Run
- func HasTemplate() predicate.Run
- func HasTemplateWith(preds ...predicate.Template) predicate.Run
- func ID(id string) predicate.Run
- func IDEQ(id string) predicate.Run
- func IDGT(id string) predicate.Run
- func IDGTE(id string) predicate.Run
- func IDIn(ids ...string) predicate.Run
- func IDLT(id string) predicate.Run
- func IDLTE(id string) predicate.Run
- func IDNEQ(id string) predicate.Run
- func IDNotIn(ids ...string) predicate.Run
- func Name(v string) predicate.Run
- func NameContains(v string) predicate.Run
- func NameContainsFold(v string) predicate.Run
- func NameEQ(v string) predicate.Run
- func NameEqualFold(v string) predicate.Run
- func NameGT(v string) predicate.Run
- func NameGTE(v string) predicate.Run
- func NameHasPrefix(v string) predicate.Run
- func NameHasSuffix(v string) predicate.Run
- func NameIn(vs ...string) predicate.Run
- func NameLT(v string) predicate.Run
- func NameLTE(v string) predicate.Run
- func NameNEQ(v string) predicate.Run
- func NameNotIn(vs ...string) predicate.Run
- func Not(p predicate.Run) predicate.Run
- func Or(predicates ...predicate.Run) predicate.Run
- func StartAt(v time.Time) predicate.Run
- func StartAtEQ(v time.Time) predicate.Run
- func StartAtGT(v time.Time) predicate.Run
- func StartAtGTE(v time.Time) predicate.Run
- func StartAtIn(vs ...time.Time) predicate.Run
- func StartAtIsNil() predicate.Run
- func StartAtLT(v time.Time) predicate.Run
- func StartAtLTE(v time.Time) predicate.Run
- func StartAtNEQ(v time.Time) predicate.Run
- func StartAtNotIn(vs ...time.Time) predicate.Run
- func StartAtNotNil() predicate.Run
- func StartedAt(v time.Time) predicate.Run
- func StartedAtEQ(v time.Time) predicate.Run
- func StartedAtGT(v time.Time) predicate.Run
- func StartedAtGTE(v time.Time) predicate.Run
- func StartedAtIn(vs ...time.Time) predicate.Run
- func StartedAtIsNil() predicate.Run
- func StartedAtLT(v time.Time) predicate.Run
- func StartedAtLTE(v time.Time) predicate.Run
- func StartedAtNEQ(v time.Time) predicate.Run
- func StartedAtNotIn(vs ...time.Time) predicate.Run
- func StartedAtNotNil() predicate.Run
- func StatusEQ(v Status) predicate.Run
- func StatusIn(vs ...Status) predicate.Run
- func StatusNEQ(v Status) predicate.Run
- func StatusNotIn(vs ...Status) predicate.Run
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Run
- func UpdatedAtEQ(v time.Time) predicate.Run
- func UpdatedAtGT(v time.Time) predicate.Run
- func UpdatedAtGTE(v time.Time) predicate.Run
- func UpdatedAtIn(vs ...time.Time) predicate.Run
- func UpdatedAtLT(v time.Time) predicate.Run
- func UpdatedAtLTE(v time.Time) predicate.Run
- func UpdatedAtNEQ(v time.Time) predicate.Run
- func UpdatedAtNotIn(vs ...time.Time) predicate.Run
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the run type in the database. Label = "run" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldStartedAt holds the string denoting the startedat field in the database. FieldStartedAt = "started_at" // FieldEndedAt holds the string denoting the endedat field in the database. FieldEndedAt = "ended_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldStartAt holds the string denoting the startat field in the database. FieldStartAt = "start_at" // FieldError holds the string denoting the error field in the database. FieldError = "error" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeTemplate holds the string denoting the template edge name in mutations. EdgeTemplate = "template" // EdgeCurrentStep holds the string denoting the currentstep edge name in mutations. EdgeCurrentStep = "currentStep" // EdgeSteps holds the string denoting the steps edge name in mutations. EdgeSteps = "steps" // Table holds the table name of the run in the database. Table = "runs" // ProjectTable is the table the holds the project relation/edge. ProjectTable = "runs" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_runs" // TemplateTable is the table the holds the template relation/edge. TemplateTable = "templates" // TemplateInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplateInverseTable = "templates" // TemplateColumn is the table column denoting the template relation/edge. TemplateColumn = "run_template" // CurrentStepTable is the table the holds the currentStep relation/edge. CurrentStepTable = "runs" // CurrentStepInverseTable is the table name for the StepRun entity. // It exists in this package in order to avoid circular dependency with the "steprun" package. CurrentStepInverseTable = "step_runs" // CurrentStepColumn is the table column denoting the currentStep relation/edge. CurrentStepColumn = "run_current_step" // StepsTable is the table the holds the steps relation/edge. StepsTable = "step_runs" // StepsInverseTable is the table name for the StepRun entity. // It exists in this package in order to avoid circular dependency with the "steprun" package. StepsInverseTable = "step_runs" // StepsColumn is the table column denoting the steps relation/edge. StepsColumn = "run_steps" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldStartedAt, FieldEndedAt, FieldName, FieldStartAt, FieldError, }
Columns holds all SQL columns for run fields.
var ForeignKeys = []string{
"project_runs",
"run_current_step",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Run type.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func EndedAt ¶
EndedAt applies equality check predicate on the "endedAt" field. It's identical to EndedAtEQ.
func EndedAtGTE ¶
EndedAtGTE applies the GTE predicate on the "endedAt" field.
func EndedAtIsNil ¶
EndedAtIsNil applies the IsNil predicate on the "endedAt" field.
func EndedAtLTE ¶
EndedAtLTE applies the LTE predicate on the "endedAt" field.
func EndedAtNEQ ¶
EndedAtNEQ applies the NEQ predicate on the "endedAt" field.
func EndedAtNotIn ¶
EndedAtNotIn applies the NotIn predicate on the "endedAt" field.
func EndedAtNotNil ¶
EndedAtNotNil applies the NotNil predicate on the "endedAt" field.
func Error ¶
Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func ErrorContains ¶
ErrorContains applies the Contains predicate on the "error" field.
func ErrorContainsFold ¶
ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorEqualFold ¶
ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorHasPrefix ¶
ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasSuffix ¶
ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorIsNil ¶
ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorNotIn ¶
ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotNil ¶
ErrorNotNil applies the NotNil predicate on the "error" field.
func HasCurrentStep ¶
HasCurrentStep applies the HasEdge predicate on the "currentStep" edge.
func HasCurrentStepWith ¶
HasCurrentStepWith applies the HasEdge predicate on the "currentStep" edge with a given conditions (other predicates).
func HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasStepsWith ¶
HasStepsWith applies the HasEdge predicate on the "steps" edge with a given conditions (other predicates).
func HasTemplate ¶
HasTemplate applies the HasEdge predicate on the "template" edge.
func HasTemplateWith ¶
HasTemplateWith applies the HasEdge predicate on the "template" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func StartAt ¶
StartAt applies equality check predicate on the "startAt" field. It's identical to StartAtEQ.
func StartAtGTE ¶
StartAtGTE applies the GTE predicate on the "startAt" field.
func StartAtIsNil ¶
StartAtIsNil applies the IsNil predicate on the "startAt" field.
func StartAtLTE ¶
StartAtLTE applies the LTE predicate on the "startAt" field.
func StartAtNEQ ¶
StartAtNEQ applies the NEQ predicate on the "startAt" field.
func StartAtNotIn ¶
StartAtNotIn applies the NotIn predicate on the "startAt" field.
func StartAtNotNil ¶
StartAtNotNil applies the NotNil predicate on the "startAt" field.
func StartedAt ¶
StartedAt applies equality check predicate on the "startedAt" field. It's identical to StartedAtEQ.
func StartedAtEQ ¶
StartedAtEQ applies the EQ predicate on the "startedAt" field.
func StartedAtGT ¶
StartedAtGT applies the GT predicate on the "startedAt" field.
func StartedAtGTE ¶
StartedAtGTE applies the GTE predicate on the "startedAt" field.
func StartedAtIn ¶
StartedAtIn applies the In predicate on the "startedAt" field.
func StartedAtIsNil ¶
StartedAtIsNil applies the IsNil predicate on the "startedAt" field.
func StartedAtLT ¶
StartedAtLT applies the LT predicate on the "startedAt" field.
func StartedAtLTE ¶
StartedAtLTE applies the LTE predicate on the "startedAt" field.
func StartedAtNEQ ¶
StartedAtNEQ applies the NEQ predicate on the "startedAt" field.
func StartedAtNotIn ¶
StartedAtNotIn applies the NotIn predicate on the "startedAt" field.
func StartedAtNotNil ¶
StartedAtNotNil applies the NotNil predicate on the "startedAt" field.
func StatusNotIn ¶
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
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.