milestone

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the milestone type in the database.
	Label = "milestone"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTargetCompletionTime holds the string denoting the target_completion_time field in the database.
	FieldTargetCompletionTime = "target_completion_time"
	// EdgeStudyPlan holds the string denoting the study_plan edge name in mutations.
	EdgeStudyPlan = "study_plan"
	// Table holds the table name of the milestone in the database.
	Table = "milestones"
	// StudyPlanTable is the table that holds the study_plan relation/edge.
	StudyPlanTable = "milestones"
	// StudyPlanInverseTable is the table name for the StudyPlan entity.
	// It exists in this package in order to avoid circular dependency with the "studyplan" package.
	StudyPlanInverseTable = "study_plans"
	// StudyPlanColumn is the table column denoting the study_plan relation/edge.
	StudyPlanColumn = "study_plan_milestones"
)

Variables

Columns holds all SQL columns for milestone fields.

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

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

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Milestone) predicate.Milestone

And groups predicates with the AND operator between them.

func HasStudyPlan

func HasStudyPlan() predicate.Milestone

HasStudyPlan applies the HasEdge predicate on the "study_plan" edge.

func HasStudyPlanWith

func HasStudyPlanWith(preds ...predicate.StudyPlan) predicate.Milestone

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

func ID

func ID(id int) predicate.Milestone

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Milestone

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Milestone

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Milestone

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Milestone

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Milestone

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Milestone

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Milestone

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Milestone

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Milestone

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Milestone

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Milestone

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Milestone

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Milestone

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Milestone

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Milestone

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Milestone

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Milestone

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Milestone

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Milestone

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Milestone

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Milestone) predicate.Milestone

Or groups predicates with the OR operator between them.

func TargetCompletionTime

func TargetCompletionTime(v time.Time) predicate.Milestone

TargetCompletionTime applies equality check predicate on the "target_completion_time" field. It's identical to TargetCompletionTimeEQ.

func TargetCompletionTimeEQ

func TargetCompletionTimeEQ(v time.Time) predicate.Milestone

TargetCompletionTimeEQ applies the EQ predicate on the "target_completion_time" field.

func TargetCompletionTimeGT

func TargetCompletionTimeGT(v time.Time) predicate.Milestone

TargetCompletionTimeGT applies the GT predicate on the "target_completion_time" field.

func TargetCompletionTimeGTE

func TargetCompletionTimeGTE(v time.Time) predicate.Milestone

TargetCompletionTimeGTE applies the GTE predicate on the "target_completion_time" field.

func TargetCompletionTimeIn

func TargetCompletionTimeIn(vs ...time.Time) predicate.Milestone

TargetCompletionTimeIn applies the In predicate on the "target_completion_time" field.

func TargetCompletionTimeLT

func TargetCompletionTimeLT(v time.Time) predicate.Milestone

TargetCompletionTimeLT applies the LT predicate on the "target_completion_time" field.

func TargetCompletionTimeLTE

func TargetCompletionTimeLTE(v time.Time) predicate.Milestone

TargetCompletionTimeLTE applies the LTE predicate on the "target_completion_time" field.

func TargetCompletionTimeNEQ

func TargetCompletionTimeNEQ(v time.Time) predicate.Milestone

TargetCompletionTimeNEQ applies the NEQ predicate on the "target_completion_time" field.

func TargetCompletionTimeNotIn

func TargetCompletionTimeNotIn(vs ...time.Time) predicate.Milestone

TargetCompletionTimeNotIn applies the NotIn predicate on the "target_completion_time" 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 Milestone queries.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByStudyPlanField

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

ByStudyPlanField orders the results by study_plan field.

func ByTargetCompletionTime

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

ByTargetCompletionTime orders the results by the target_completion_time field.

Jump to

Keyboard shortcuts

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