Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.StudyPlan) predicate.StudyPlan
- func Code(v string) predicate.StudyPlan
- func CodeContains(v string) predicate.StudyPlan
- func CodeContainsFold(v string) predicate.StudyPlan
- func CodeEQ(v string) predicate.StudyPlan
- func CodeEqualFold(v string) predicate.StudyPlan
- func CodeGT(v string) predicate.StudyPlan
- func CodeGTE(v string) predicate.StudyPlan
- func CodeHasPrefix(v string) predicate.StudyPlan
- func CodeHasSuffix(v string) predicate.StudyPlan
- func CodeIn(vs ...string) predicate.StudyPlan
- func CodeIsNil() predicate.StudyPlan
- func CodeLT(v string) predicate.StudyPlan
- func CodeLTE(v string) predicate.StudyPlan
- func CodeNEQ(v string) predicate.StudyPlan
- func CodeNotIn(vs ...string) predicate.StudyPlan
- func CodeNotNil() predicate.StudyPlan
- func HasAuthor() predicate.StudyPlan
- func HasAuthorWith(preds ...predicate.User) predicate.StudyPlan
- func HasMilestones() predicate.StudyPlan
- func HasMilestonesWith(preds ...predicate.Milestone) predicate.StudyPlan
- func ID(id int) predicate.StudyPlan
- func IDEQ(id int) predicate.StudyPlan
- func IDGT(id int) predicate.StudyPlan
- func IDGTE(id int) predicate.StudyPlan
- func IDIn(ids ...int) predicate.StudyPlan
- func IDLT(id int) predicate.StudyPlan
- func IDLTE(id int) predicate.StudyPlan
- func IDNEQ(id int) predicate.StudyPlan
- func IDNotIn(ids ...int) predicate.StudyPlan
- func Name(v string) predicate.StudyPlan
- func NameContains(v string) predicate.StudyPlan
- func NameContainsFold(v string) predicate.StudyPlan
- func NameEQ(v string) predicate.StudyPlan
- func NameEqualFold(v string) predicate.StudyPlan
- func NameGT(v string) predicate.StudyPlan
- func NameGTE(v string) predicate.StudyPlan
- func NameHasPrefix(v string) predicate.StudyPlan
- func NameHasSuffix(v string) predicate.StudyPlan
- func NameIn(vs ...string) predicate.StudyPlan
- func NameLT(v string) predicate.StudyPlan
- func NameLTE(v string) predicate.StudyPlan
- func NameNEQ(v string) predicate.StudyPlan
- func NameNotIn(vs ...string) predicate.StudyPlan
- func Not(p predicate.StudyPlan) predicate.StudyPlan
- func Or(predicates ...predicate.StudyPlan) predicate.StudyPlan
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMilestones(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMilestonesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the studyplan type in the database. Label = "study_plan" // 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" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeMilestones holds the string denoting the milestones edge name in mutations. EdgeMilestones = "milestones" // Table holds the table name of the studyplan in the database. Table = "study_plans" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "study_plans" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "study_plan_author" // MilestonesTable is the table that holds the milestones relation/edge. MilestonesTable = "milestones" // MilestonesInverseTable is the table name for the Milestone entity. // It exists in this package in order to avoid circular dependency with the "milestone" package. MilestonesInverseTable = "milestones" // MilestonesColumn is the table column denoting the milestones relation/edge. MilestonesColumn = "study_plan_milestones" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldCode, }
Columns holds all SQL columns for studyplan fields.
var ForeignKeys = []string{
"study_plan_author",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "study_plans" 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 CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeNotNil ¶
CodeNotNil applies the NotNil predicate on the "code" field.
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasMilestones ¶
HasMilestones applies the HasEdge predicate on the "milestones" edge.
func HasMilestonesWith ¶
HasMilestonesWith applies the HasEdge predicate on the "milestones" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the StudyPlan queries.
func ByAuthorField ¶
func ByAuthorField(field string, opts ...sql.OrderTermOption) OrderOption
ByAuthorField orders the results by author field.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMilestones ¶
func ByMilestones(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMilestones orders the results by milestones terms.
func ByMilestonesCount ¶
func ByMilestonesCount(opts ...sql.OrderTermOption) OrderOption
ByMilestonesCount orders the results by milestones count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.