Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Milestone) predicate.Milestone
- func HasStudyPlan() predicate.Milestone
- func HasStudyPlanWith(preds ...predicate.StudyPlan) predicate.Milestone
- func ID(id int) predicate.Milestone
- func IDEQ(id int) predicate.Milestone
- func IDGT(id int) predicate.Milestone
- func IDGTE(id int) predicate.Milestone
- func IDIn(ids ...int) predicate.Milestone
- func IDLT(id int) predicate.Milestone
- func IDLTE(id int) predicate.Milestone
- func IDNEQ(id int) predicate.Milestone
- func IDNotIn(ids ...int) predicate.Milestone
- func Name(v string) predicate.Milestone
- func NameContains(v string) predicate.Milestone
- func NameContainsFold(v string) predicate.Milestone
- func NameEQ(v string) predicate.Milestone
- func NameEqualFold(v string) predicate.Milestone
- func NameGT(v string) predicate.Milestone
- func NameGTE(v string) predicate.Milestone
- func NameHasPrefix(v string) predicate.Milestone
- func NameHasSuffix(v string) predicate.Milestone
- func NameIn(vs ...string) predicate.Milestone
- func NameLT(v string) predicate.Milestone
- func NameLTE(v string) predicate.Milestone
- func NameNEQ(v string) predicate.Milestone
- func NameNotIn(vs ...string) predicate.Milestone
- func Not(p predicate.Milestone) predicate.Milestone
- func Or(predicates ...predicate.Milestone) predicate.Milestone
- func TargetCompletionTime(v time.Time) predicate.Milestone
- func TargetCompletionTimeEQ(v time.Time) predicate.Milestone
- func TargetCompletionTimeGT(v time.Time) predicate.Milestone
- func TargetCompletionTimeGTE(v time.Time) predicate.Milestone
- func TargetCompletionTimeIn(vs ...time.Time) predicate.Milestone
- func TargetCompletionTimeLT(v time.Time) predicate.Milestone
- func TargetCompletionTimeLTE(v time.Time) predicate.Milestone
- func TargetCompletionTimeNEQ(v time.Time) predicate.Milestone
- func TargetCompletionTimeNotIn(vs ...time.Time) predicate.Milestone
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldName, FieldTargetCompletionTime, }
Columns holds all SQL columns for milestone fields.
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.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func HasStudyPlan ¶
HasStudyPlan applies the HasEdge predicate on the "study_plan" edge.
func HasStudyPlanWith ¶
HasStudyPlanWith applies the HasEdge predicate on the "study_plan" 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 TargetCompletionTime ¶
TargetCompletionTime applies equality check predicate on the "target_completion_time" field. It's identical to TargetCompletionTimeEQ.
func TargetCompletionTimeEQ ¶
TargetCompletionTimeEQ applies the EQ predicate on the "target_completion_time" field.
func TargetCompletionTimeGT ¶
TargetCompletionTimeGT applies the GT predicate on the "target_completion_time" field.
func TargetCompletionTimeGTE ¶
TargetCompletionTimeGTE applies the GTE predicate on the "target_completion_time" field.
func TargetCompletionTimeIn ¶
TargetCompletionTimeIn applies the In predicate on the "target_completion_time" field.
func TargetCompletionTimeLT ¶
TargetCompletionTimeLT applies the LT predicate on the "target_completion_time" field.
func TargetCompletionTimeLTE ¶
TargetCompletionTimeLTE applies the LTE predicate on the "target_completion_time" field.
func TargetCompletionTimeNEQ ¶
TargetCompletionTimeNEQ applies the NEQ predicate on the "target_completion_time" field.
func TargetCompletionTimeNotIn ¶
TargetCompletionTimeNotIn applies the NotIn predicate on the "target_completion_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.