Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Major) predicate.Major
- func Code(v string) predicate.Major
- func CodeContains(v string) predicate.Major
- func CodeContainsFold(v string) predicate.Major
- func CodeEQ(v string) predicate.Major
- func CodeEqualFold(v string) predicate.Major
- func CodeGT(v string) predicate.Major
- func CodeGTE(v string) predicate.Major
- func CodeHasPrefix(v string) predicate.Major
- func CodeHasSuffix(v string) predicate.Major
- func CodeIn(vs ...string) predicate.Major
- func CodeLT(v string) predicate.Major
- func CodeLTE(v string) predicate.Major
- func CodeNEQ(v string) predicate.Major
- func CodeNotIn(vs ...string) predicate.Major
- func Description(v string) predicate.Major
- func DescriptionContains(v string) predicate.Major
- func DescriptionContainsFold(v string) predicate.Major
- func DescriptionEQ(v string) predicate.Major
- func DescriptionEqualFold(v string) predicate.Major
- func DescriptionGT(v string) predicate.Major
- func DescriptionGTE(v string) predicate.Major
- func DescriptionHasPrefix(v string) predicate.Major
- func DescriptionHasSuffix(v string) predicate.Major
- func DescriptionIn(vs ...string) predicate.Major
- func DescriptionLT(v string) predicate.Major
- func DescriptionLTE(v string) predicate.Major
- func DescriptionNEQ(v string) predicate.Major
- func DescriptionNotIn(vs ...string) predicate.Major
- func EnrollmentType(v string) predicate.Major
- func EnrollmentTypeContains(v string) predicate.Major
- func EnrollmentTypeContainsFold(v string) predicate.Major
- func EnrollmentTypeEQ(v string) predicate.Major
- func EnrollmentTypeEqualFold(v string) predicate.Major
- func EnrollmentTypeGT(v string) predicate.Major
- func EnrollmentTypeGTE(v string) predicate.Major
- func EnrollmentTypeHasPrefix(v string) predicate.Major
- func EnrollmentTypeHasSuffix(v string) predicate.Major
- func EnrollmentTypeIn(vs ...string) predicate.Major
- func EnrollmentTypeLT(v string) predicate.Major
- func EnrollmentTypeLTE(v string) predicate.Major
- func EnrollmentTypeNEQ(v string) predicate.Major
- func EnrollmentTypeNotIn(vs ...string) predicate.Major
- func HasClass() predicate.Major
- func HasClassWith(preds ...predicate.Class) predicate.Major
- func HasDepartment() predicate.Major
- func HasDepartmentWith(preds ...predicate.Department) predicate.Major
- func HasStudent() predicate.Major
- func HasStudentWith(preds ...predicate.Student) predicate.Major
- func ID(id int) predicate.Major
- func IDEQ(id int) predicate.Major
- func IDGT(id int) predicate.Major
- func IDGTE(id int) predicate.Major
- func IDIn(ids ...int) predicate.Major
- func IDLT(id int) predicate.Major
- func IDLTE(id int) predicate.Major
- func IDNEQ(id int) predicate.Major
- func IDNotIn(ids ...int) predicate.Major
- func IsMajorCategory(v bool) predicate.Major
- func IsMajorCategoryEQ(v bool) predicate.Major
- func IsMajorCategoryNEQ(v bool) predicate.Major
- func MajorCategory(v string) predicate.Major
- func MajorCategoryContains(v string) predicate.Major
- func MajorCategoryContainsFold(v string) predicate.Major
- func MajorCategoryEQ(v string) predicate.Major
- func MajorCategoryEqualFold(v string) predicate.Major
- func MajorCategoryGT(v string) predicate.Major
- func MajorCategoryGTE(v string) predicate.Major
- func MajorCategoryHasPrefix(v string) predicate.Major
- func MajorCategoryHasSuffix(v string) predicate.Major
- func MajorCategoryIn(vs ...string) predicate.Major
- func MajorCategoryLT(v string) predicate.Major
- func MajorCategoryLTE(v string) predicate.Major
- func MajorCategoryNEQ(v string) predicate.Major
- func MajorCategoryNotIn(vs ...string) predicate.Major
- func Name(v string) predicate.Major
- func NameContains(v string) predicate.Major
- func NameContainsFold(v string) predicate.Major
- func NameEQ(v string) predicate.Major
- func NameEqualFold(v string) predicate.Major
- func NameGT(v string) predicate.Major
- func NameGTE(v string) predicate.Major
- func NameHasPrefix(v string) predicate.Major
- func NameHasSuffix(v string) predicate.Major
- func NameIn(vs ...string) predicate.Major
- func NameLT(v string) predicate.Major
- func NameLTE(v string) predicate.Major
- func NameNEQ(v string) predicate.Major
- func NameNotIn(vs ...string) predicate.Major
- func Not(p predicate.Major) predicate.Major
- func Or(predicates ...predicate.Major) predicate.Major
- func SpecialType(v string) predicate.Major
- func SpecialTypeContains(v string) predicate.Major
- func SpecialTypeContainsFold(v string) predicate.Major
- func SpecialTypeEQ(v string) predicate.Major
- func SpecialTypeEqualFold(v string) predicate.Major
- func SpecialTypeGT(v string) predicate.Major
- func SpecialTypeGTE(v string) predicate.Major
- func SpecialTypeHasPrefix(v string) predicate.Major
- func SpecialTypeHasSuffix(v string) predicate.Major
- func SpecialTypeIn(vs ...string) predicate.Major
- func SpecialTypeLT(v string) predicate.Major
- func SpecialTypeLTE(v string) predicate.Major
- func SpecialTypeNEQ(v string) predicate.Major
- func SpecialTypeNotIn(vs ...string) predicate.Major
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the major type in the database. Label = "major" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldSpecialType holds the string denoting the special_type field in the database. FieldSpecialType = "special_type" // FieldEnrollmentType holds the string denoting the enrollment_type field in the database. FieldEnrollmentType = "enrollment_type" // FieldIsMajorCategory holds the string denoting the is_major_category field in the database. FieldIsMajorCategory = "is_major_category" // FieldMajorCategory holds the string denoting the major_category field in the database. FieldMajorCategory = "major_category" // EdgeDepartment holds the string denoting the department edge name in mutations. EdgeDepartment = "department" // EdgeStudent holds the string denoting the student edge name in mutations. EdgeStudent = "student" // EdgeClass holds the string denoting the class edge name in mutations. EdgeClass = "class" // Table holds the table name of the major in the database. Table = "majors" // DepartmentTable is the table that holds the department relation/edge. DepartmentTable = "majors" // DepartmentInverseTable is the table name for the Department entity. // It exists in this package in order to avoid circular dependency with the "department" package. DepartmentInverseTable = "departments" // DepartmentColumn is the table column denoting the department relation/edge. DepartmentColumn = "major_department" // StudentTable is the table that holds the student relation/edge. StudentTable = "students" // StudentInverseTable is the table name for the Student entity. // It exists in this package in order to avoid circular dependency with the "student" package. StudentInverseTable = "students" // StudentColumn is the table column denoting the student relation/edge. StudentColumn = "student_major" // ClassTable is the table that holds the class relation/edge. ClassTable = "classes" // ClassInverseTable is the table name for the Class entity. // It exists in this package in order to avoid circular dependency with the "class" package. ClassInverseTable = "classes" // ClassColumn is the table column denoting the class relation/edge. ClassColumn = "class_major" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldCode, FieldDescription, FieldSpecialType, FieldEnrollmentType, FieldIsMajorCategory, FieldMajorCategory, }
Columns holds all SQL columns for major fields.
var ForeignKeys = []string{
"major_department",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "majors" table and are not defined as standalone fields in the schema.
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func EnrollmentType ¶
EnrollmentType applies equality check predicate on the "enrollment_type" field. It's identical to EnrollmentTypeEQ.
func EnrollmentTypeContains ¶
EnrollmentTypeContains applies the Contains predicate on the "enrollment_type" field.
func EnrollmentTypeContainsFold ¶
EnrollmentTypeContainsFold applies the ContainsFold predicate on the "enrollment_type" field.
func EnrollmentTypeEQ ¶
EnrollmentTypeEQ applies the EQ predicate on the "enrollment_type" field.
func EnrollmentTypeEqualFold ¶
EnrollmentTypeEqualFold applies the EqualFold predicate on the "enrollment_type" field.
func EnrollmentTypeGT ¶
EnrollmentTypeGT applies the GT predicate on the "enrollment_type" field.
func EnrollmentTypeGTE ¶
EnrollmentTypeGTE applies the GTE predicate on the "enrollment_type" field.
func EnrollmentTypeHasPrefix ¶
EnrollmentTypeHasPrefix applies the HasPrefix predicate on the "enrollment_type" field.
func EnrollmentTypeHasSuffix ¶
EnrollmentTypeHasSuffix applies the HasSuffix predicate on the "enrollment_type" field.
func EnrollmentTypeIn ¶
EnrollmentTypeIn applies the In predicate on the "enrollment_type" field.
func EnrollmentTypeLT ¶
EnrollmentTypeLT applies the LT predicate on the "enrollment_type" field.
func EnrollmentTypeLTE ¶
EnrollmentTypeLTE applies the LTE predicate on the "enrollment_type" field.
func EnrollmentTypeNEQ ¶
EnrollmentTypeNEQ applies the NEQ predicate on the "enrollment_type" field.
func EnrollmentTypeNotIn ¶
EnrollmentTypeNotIn applies the NotIn predicate on the "enrollment_type" field.
func HasClassWith ¶
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasDepartment ¶
HasDepartment applies the HasEdge predicate on the "department" edge.
func HasDepartmentWith ¶
func HasDepartmentWith(preds ...predicate.Department) predicate.Major
HasDepartmentWith applies the HasEdge predicate on the "department" edge with a given conditions (other predicates).
func HasStudent ¶
HasStudent applies the HasEdge predicate on the "student" edge.
func HasStudentWith ¶
HasStudentWith applies the HasEdge predicate on the "student" edge with a given conditions (other predicates).
func IsMajorCategory ¶
IsMajorCategory applies equality check predicate on the "is_major_category" field. It's identical to IsMajorCategoryEQ.
func IsMajorCategoryEQ ¶
IsMajorCategoryEQ applies the EQ predicate on the "is_major_category" field.
func IsMajorCategoryNEQ ¶
IsMajorCategoryNEQ applies the NEQ predicate on the "is_major_category" field.
func MajorCategory ¶
MajorCategory applies equality check predicate on the "major_category" field. It's identical to MajorCategoryEQ.
func MajorCategoryContains ¶
MajorCategoryContains applies the Contains predicate on the "major_category" field.
func MajorCategoryContainsFold ¶
MajorCategoryContainsFold applies the ContainsFold predicate on the "major_category" field.
func MajorCategoryEQ ¶
MajorCategoryEQ applies the EQ predicate on the "major_category" field.
func MajorCategoryEqualFold ¶
MajorCategoryEqualFold applies the EqualFold predicate on the "major_category" field.
func MajorCategoryGT ¶
MajorCategoryGT applies the GT predicate on the "major_category" field.
func MajorCategoryGTE ¶
MajorCategoryGTE applies the GTE predicate on the "major_category" field.
func MajorCategoryHasPrefix ¶
MajorCategoryHasPrefix applies the HasPrefix predicate on the "major_category" field.
func MajorCategoryHasSuffix ¶
MajorCategoryHasSuffix applies the HasSuffix predicate on the "major_category" field.
func MajorCategoryIn ¶
MajorCategoryIn applies the In predicate on the "major_category" field.
func MajorCategoryLT ¶
MajorCategoryLT applies the LT predicate on the "major_category" field.
func MajorCategoryLTE ¶
MajorCategoryLTE applies the LTE predicate on the "major_category" field.
func MajorCategoryNEQ ¶
MajorCategoryNEQ applies the NEQ predicate on the "major_category" field.
func MajorCategoryNotIn ¶
MajorCategoryNotIn applies the NotIn predicate on the "major_category" field.
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 SpecialType ¶
SpecialType applies equality check predicate on the "special_type" field. It's identical to SpecialTypeEQ.
func SpecialTypeContains ¶
SpecialTypeContains applies the Contains predicate on the "special_type" field.
func SpecialTypeContainsFold ¶
SpecialTypeContainsFold applies the ContainsFold predicate on the "special_type" field.
func SpecialTypeEQ ¶
SpecialTypeEQ applies the EQ predicate on the "special_type" field.
func SpecialTypeEqualFold ¶
SpecialTypeEqualFold applies the EqualFold predicate on the "special_type" field.
func SpecialTypeGT ¶
SpecialTypeGT applies the GT predicate on the "special_type" field.
func SpecialTypeGTE ¶
SpecialTypeGTE applies the GTE predicate on the "special_type" field.
func SpecialTypeHasPrefix ¶
SpecialTypeHasPrefix applies the HasPrefix predicate on the "special_type" field.
func SpecialTypeHasSuffix ¶
SpecialTypeHasSuffix applies the HasSuffix predicate on the "special_type" field.
func SpecialTypeIn ¶
SpecialTypeIn applies the In predicate on the "special_type" field.
func SpecialTypeLT ¶
SpecialTypeLT applies the LT predicate on the "special_type" field.
func SpecialTypeLTE ¶
SpecialTypeLTE applies the LTE predicate on the "special_type" field.
func SpecialTypeNEQ ¶
SpecialTypeNEQ applies the NEQ predicate on the "special_type" field.
func SpecialTypeNotIn ¶
SpecialTypeNotIn applies the NotIn predicate on the "special_type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.